Launch a popunder using Javascript that has a default browser setup


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



Copy this code and paste it in your HTML
  1. //Get required href
  2. sHref = "http://zoocha.com";
  3.  
  4. //Open window and then blur
  5. window.open(sHref,"_blank","toolbar=1,location=1,directories=1,scrollbars=1,resizable=1,status=1,menubar=1").blur();
  6.  
  7. //Forces current window to stay on top
  8. window.focus();

URL: http://daipratt.co.uk

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.