How to Open multiple windows with one click ?

by THavamani 2012-09-03 09:56:28

<font color=#FF0080>
Run this code and then click the button,
Two windows will be opened at a time..</font>


<!DOCTYPE html>
<html>
<head>
<script>
function open_win()
{
window.open("http://www.microsoft.com/");
window.open("http://www.w3schools.com/");
}
</script>
</head>

<body>
<form>

// click this button to open multiple windows..

<input type="button" value="Open Windows" onclick="open_win()">
</form>
</body>
</html>

Tagged in:

1063
like
0
dislike
0
mail
flag

You must LOGIN to add comments