Jquery: Trigger Link with New Window and skip popup blocker
<script type="text/javascript">
var form = $("<form></form>");
form.attr(
{
id : "newform",
action : "https://google.nl",
method : "GET",
target : "_blank" // Open in new window/tab
});
$("body").append(form);
$("#newform").submit();
$("#newform").remove();
</script>
Written by Lee May
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Open new window with jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#