How to open a new window in JavaScript

{0 Comments}

To open a new window in JavaScript we will use window. Open function where we pass desired URL  As a parameter which will open a new window and with given URL 

 HTML |  copy code |? 
1
<script>
2
function open() 
3
{
4
window.open("http://error.txtwheel.com");
5
}
6
</script>
7
<input type="button" value="Open Window" onclick="open()">
8

Leave a Comment

Your email address will not be published.