Generating Popup Windows as Modeless Dialog Boxes

Q

How to generate popup windows as modeless dialog boxes?

✍: FYIcenter.com

A

If you want to generate a popup window as a modeless dialog box, you can use the window.showModelessDialog() method. See the following JavaScript code outline:

<a href="javascript:pShowModalDialog();">Click your ...
...
<script language="JavaScript">
/*
*  Popup Blocker Test - P_SHOWMODELESSDIALOG
*  - Popup Windows in Forms of Modeless Dialog Boxes
*
*  A popup window shows up in the form of a modeless dialog
*  box. JavaScript codes implemented to call the
*  showModelessDialog method.
* 
*  Version of 2007.01.01
*  Download at http://sqa.fyicenter.com/tools/
*  Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pShowModelessDialog() {
   fyicenterVal = window.showModelessDialog('popup_blocke...
      'dialogLeft:100px; dialogTop:100px; dialogWidth:480...
}
</script>

You can also visit Popup Blocker Test - P_SHOWMODELESSDIALOG page to get the complete source code and to see how it works.

2007-01-17, 10779🔥, 0💬