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>
<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