Join WhatsApp ChannelJoin Now

How to open URL in a new window In JavaScript

Hi,

Today, i we will show you how to open URL in a new window in javascript. This article will give you simple example of how to open URL in a new window in javascript. you will learn how to open URL in a new window in javascript. So let’s follow few step to create example of how to open URL in a new window in javascript.

How to open URL in a new window In JavaScript

Example:

<!DOCTYPE html>
<html>
<head>
    <title>How to open URL in a new window In JavaScript  - codeplaners.com</title>
</head>
<body>
    <h1>codeplaners.com</h1>
    <button onclick="getLink();">Click me</button>
    <script type="text/javascript">
        function getLink() {
            window.open("https://codeplaners.com/","mywindow","status=1,toolbar=1");
        }
    </script>
</body>
</html>

Recommended Posts