Web Analytics Made Easy -
StatCounter popup that is not blocked ??? - CodingForum


No announcement yet.

popup that is not blocked ???

  • Filter
  • Time
  • Show
Clear All
new posts

  • popup that is not blocked ???

    Hi! Is it possible to create a popup that won't be blocked? It's extremely important to me at this time.

  • #2
    Popups triggered by a manual user action, such as onclick, typically aren't blocked.

    That said, it's always possible that some users may have settings which specify that all attempts at triggering a new window are to be blocked (or rerouted). It's considered wise (and user-friendly) not to put anything absolutely critical into a new window.
    Last edited by Bill Posters; Oct 12, 2006, 10:51 AM.
    Why you should validate your code before asking for help...


    • #3
      My popup works on the onload event, so it's blocked. Not every user know how to show this popup even it is disabled, so I'm trying to find a some way...

      I found a code, here:

      <style type="text/css">
      		html, body, #wrap { height:100% ; margin:0 ; overflow:hidden ; padding:0 ; width:100% }
      		a img { border:none }
      		a { text-decoration:none }
      		p { margin:0 ; padding:.5em 0 }
      		#wrap { background:#FFF ; color:#000 ; overflow:auto }
      			#wrap2 { padding-top:21px }
      		#pop { background:#DEDEFF ; border:2px solid #039 ; color:#000 ; left:100px ; position:absolute ; top:100px ; visibility:hidden ; width:200px }
      			#pop div { font-weight:bold ; text-align:right }
      		#close { background:#808080 ; font-weight:bold ; position:absolute ; right:0 ; text-align:right ; width:100% }
      			#close a span, #pop div a span  { background:#C00 ; color:#FFF ; padding:0 .5em }
      	<script type="text/javascript">
      		function countdown() {
      		function pop() {
      			document.getElementById('pop').style.visibility = "visible";
      		function popunder() {
      			document.getElementById('pop').style.visibility = "hidden";
      		function toggle() {
      			document.getElementById('close').style.display = "none";
      			document.getElementById('wrap').style.display = "none";
      			document.getElementById('pop').style.visibility = "visible";
      <body id="home" onload="javascript:toggle();">
      <div id="close"><a href="javascript: self.close ()">X</a></div>
      <div id="pop">
      	<div><a href="javascript: self.close ()">X</a></div>
      <div id="wrap">
      	<div id="wrap2">
      the problem is that I can't figure out how to close this window? any ideas? Somehow I need to disable a popup showing function, is that possible? slef.close doesn't work