Open URL in New Window (Without Triggering Pop-Up Blocker)

/ Published in: JavaScript
Save to your folder(s)

Javascript to open a URL in a new window without triggering a browser's pop-up blocker. (May not work in callbacks, but not sure why.)

Copy this code and paste it in your HTML
  1. var newWin =;
  2. newWin.location = href;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.