Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: closing modal dialog box


Message #1 by "Bill Robinson" <bill.robinson@s...> on Thu, 25 Oct 2001 14:24:46
Bill,

window.close() should do the trick.  NOTE: window.close() with parentheses,
since it's a method


/Robert


-----Original Message-----
From: Bill Robinson [mailto:bill.robinson@s...] 
Sent: den 25 oktober 2001 16:25
To: JavaScript HowTo
Subject: [javascript_howto] closing modal dialog box


I am opening up a modal popup dialog window using window.showModalDialog.

I have a button in the dialog window, that I would like to be able to 
close the window in its onclick() event. I have tried window.close, but 
htis doesn't seem to work.

Any suggestions would be greatly appreciated.

Thanks,

Bill Robinson
$subst('Email.Unsub')

  Return to Index