Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
head
>
<
script
>
function
openWin() {
window.open(
"http://www.w3schools.com"
);
}
<
/script
>
<
/head
>
<
body
>
<
form
>
<
input
type
="button"
value
="Open Window"
onclick
="openWin()"
>
<
/form
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <head> <script> function openWin() { window.open("http://www.w3schools.com"); } </script> </head> <body> <form> <input type="button" value="Open Window" onclick="openWin()"> </form> </body> </html>
Result:
Privacy Policy