Basic methods for opening popup window in javascript?
Ask by Amit Singh
Updated 21 Sep 2020
1) Using Window.Open() and
2) Using Window.showModalDialog()
The Syntax for using these methods are
. Window.Open(URL,WindowName,Window Features)
Example:
window.open ("http://www.dotnetfunda.com","mywindow","status=1,toolbar=1");. window.showModalDialog(URL,WindowName,ModalDialog Features)
for example:
window.showModalDialog("http://www.mindstick.com", "mywindow","dialogWidth:400px;dialogHeight:395px");