Window open() Method - Open an about:blank page in a new window: - Javascript Browser Object Model

Javascript examples for Browser Object Model:Window open

Description

Window open() Method - Open an about:blank page in a new window:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {/*from  ww  w .j  a v  a  2  s .c o m*/
    var myWindow = window.open("", "", "width=200,height=100");
}
</script>

</body>
</html>

Related Tutorials