faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

157 of 209 people (75%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How to open a modal window?

Jun 28th, 2000 07:29
Martin Honnen, Carles Zaragoza, http://developer.netscape.com/viewsource/goodman_modal/goodman_modal.html


IE4/5 have
  var r = showModalDialog('url', argumentsObject, 'featureString');

NN4 has a undocumented modal feature for the window.open function but 
this requires trusted script:
  netscape.security.PrivilegeManager.enablePrivilege
('UniversalBrowserWrite');
  var w = open ('http://www.faqts.com', 'faqts', 
      'modal=1,width=300,height=300,rezisable=1,scrollbars=1');

The given goodman url has a cross browser modal window simulation.

It seems that NN6 has
  openDialog('url', 'windowName', 'modal=1,width=300,height=300')