Generating Popup Windows as Modeless Dialog Boxes


How to generate popup windows as modeless dialog boxes?



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
*  Copyright (C) 2007 All rights reserved.
function pShowModelessDialog() {
   fyicenterVal = window.showModelessDialog('popup_blocke...
      'dialogLeft:100px; dialogTop:100px; dialogWidth:480...

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, 7835👍, 0💬