Prev Demo
JavaScript
>
Opening Popup Window
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Opening popup window</h1> <script> function TestFunction() { window.open("http://www.dotnetfunda.com", "", "width=500,height=500"); } </script> <p>Click the below button to open a new window</p> <input type="button" id="btnTest" onclick="TestFunction()" value="Click me" /> </body> </html>
Note: We DO NOT save your trial code in our database.
Output