Javascript

Topic: JS Window

Basic methods for opening a PopUp window using Javascript?

There are 2 different simple ways using javascript.they are1) Using Window.Open() and2) Using Window.showModalDialog()The Syntax for using these methods are. Window.Open(URL,WindowName,Window Features)Sample example:window.open ("http://www.dotnetfunda.com","mywindow","status=1,toolbar=1");. window.showModalDialog(URL,WindowName,ModalDialog Features)Sample Example:window.showModalDialog("http://www.dotnetfunda.com", "mywindow","dialogWidth:400px;dialogHeight:395px");

Browse random answers: