Updated on Kisan Patel
This tutorial will explain you how to open a popup window using JavaScript, you need to use window.open
javascript method.
window.open("http://www.google.com", "Name of window", "width=400,height=300");
The Javascript window.open
method accept three parameters:
Example:
<script language="javascript" type="text/javascript"> function TestFunction() { window.open("http://www.google.com", "", "width=400,height=300"); } </script> <input type="button" id="btnTest" onclick="TestFunction()" value="Click me to open popup" />
See the Pen RPdqzP by Kisan (@pka246) on CodePen.