JavaScript Open a page using window.open() method

<!DOCTYPE html>
<html>
<body>
<p>In this example we can able to see how the winow.open method is used to open a new window page in JavaScript </p>
<button onclick="openNewWindow()" id="btnClick">Click</button>
<script>
function openNewWindow() {
window.open("https://mlty1s3y9cfm.i.optimole.com/KU6gzRQ-izvJLdpv/w:auto/h:auto/q:mauto/https://codeone.in/images/javascript.jpg");
}
</script>
</body>
</html>

Leave a Reply

Your email address will not be published.