JQuery Open Link in New Window Example

By Hardik Savani July 20, 2023 Category : jQuery

Here, i will tech you how to open link in new window on click event using jquery. we will do it using jquery open link in new window not tab. you can see a simple example of open url in new window using window.open() in jquery.

I written full example that will help you how to one new window like new chrome browser, firefox etc on click event. so let's see bellow example:

You can see bellow syntax for window.open().


window.open(URL, name, specs, replace)


window.open("https://www.itsolutionstuff.com", "mywindow", "status=1,toolbar=1");

You can see bellow full example so you will be understand how it works:


<!DOCTYPE html>



<title>Jquery Open Link in New Window Example - ItSolutionStuff.com</title>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>



<button class="btn2">Click Me</button>

<script type="text/javascript">


window.open("https://www.itsolutionstuff.com", "mywindow", "status=1,toolbar=1");





I hope it can help you...

Tags :