dElmARk Admin
Posts : 92 Join date : 09/04/2012
| Subject: [JS] New Window (window.open) Fri Feb 28, 2014 7:48 pm | |
| - Code:
-
<html> <head> <script> function google(){ window.open("http://google.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true); } function youtube(){ window.open("http://youtube.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true); } function yahoo(){ window.open("http://yahoo.com", '_blank', 'left=0,top=0,width=500,height=500,resizable=false', true); } </script> <center> <input onclick="google()" value="Google" type="button"><br> <input onclick="youtube()" value="Youtube" type="button"><br> <input onclick="yahoo()" value="Yahoo" type="button"> </center> </head> </html> | |
|