Who is online? 53 guests and 0 members
Member login | Become a member
home » blogs » mohit » Open a New Window in JavaScript
posted 11/18/2009 by mohit
In this blog I will explain how to open a new window in JavaScript.
Example:-
<html> <head> <script type="text/javascript"> function openWin() { window.open("http://www.google.co.in/", "newWin", "status,width=500,height=500,top=300,left=300"); } </script> </head> <body> <form> <input type="button" value="Open window" onclick="openWin()"> </form> </body> </html> </html>
window.open() takes three parameters:-
Mohit Kumar
mohit (Member since: 9/24/2009)
View mohit 's profile
Comment (No HTML)
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address: