Sunday, January 12, 2014

Window object 4) open()

open() opens the new window in the browser.

<html>
<head>
<script type="text/javascript">
function site()
{
open("http://javascripttution.blogspot.in");
}
</script>
</head>
<body>
<input type="button" value="MyBlog" onclick="site()"/>
</body>
</html>

No comments:

Post a Comment