Open a window with no menu, toolbar or statusTag(s): Language

<SCRIPT Language = "JavaScript"> 
function simpleDialog(msg) { 
features = 
   'toolbar=no, location=no, directories=no, status=no, menubar=no, ' +
   'scrollbars=no, resizable=no, width=200, height=100' 
dlg = ("","Dialog",features) 
dlg.document.write ("<HTML><BODY bgColor='black' text='white'>") 
dlg.document.write ("<H2><CENTER>",msg,"</CENTER></H2>") 
dlg.document.write ("<FORM><CENTER>") 
  ("<INPUT type='button' value='OK' onClick = 'self.close()'>") 
dlg.document.write ("</CENTER></FORM></BODY></HTML>") 

<INPUT type='button' value = 'test simple dialog' 
onClick = 'simpleDialog("Click to close")'> 

Try it :

Note : By default with Firefox, you cannot alter browser window status bar using javascript. In Firefox v1.5, this can be changed via Tools/Options/Content/Enable JavaScript/Advanced = Allow scripts to change status bar text and Hide the status bar
blog comments powered by Disqus