Jquery Open Link in New Window Example

Jquery Open Link in New Window Example

In this post we will give you information about Jquery Open Link in New Window Example. Hear we will give you detail about Jquery Open Link in New Window ExampleAnd how to use it also give you demo for it if it is necessary.

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().

Syntax:

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

Use:

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

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

Example:

<!DOCTYPE html>

<html>

<head>

<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>

</head>

<body>

<button >Click Me</button>

<script type="text/javascript">

$(".btn2").click(function(){

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

})

</script>

</body>

</html>

I hope it can help you…

Hope this code and post will helped you for implement Jquery Open Link in New Window Example. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

3  +  2  =  

We accept paid advance and paid guest Posting on our Site : Contact US