you are in: codestackercodes [RSS] → tag: popup [RSS]

detecting popup blockers Delicious Email

show/hide lines
   1  var win = window.open(...);
   2  if(win == null || typeof(win) == "undefined" || (win == null && win.outerWidth == 0) || (win != null && win.outerHeight == 0) || win.test == "undefined") {
   3  // popup blocked :(
   4  }
created by leozera — 17 November 2011 — get a short url — tags: javascript popup embed

unobstrusive popup Delicious Email

http://www.quirksmode.org/js/popup.html

show/hide lines
   1     function popup(url) {
   2          newWindow = window.open(url, 'name', 'height=400,width=335,scrollbars=yes');
   3          if (window.focus) { newWindow.focus() }
   4              return false;
   5      }
   6  
   7  // <a href="link.html" onclick="popup('link.html');">Link</a>
created by leozera — 22 August 2009 — get a short url — tags: html javascript popup embed