Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 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
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    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; 10-12-2006 at 03:51 PM.

  • #3
    New Coder
    Join Date
    Jun 2006
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:

    Code:
    <html>
    <head>
    <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 }
    	</style>
    	<script type="text/javascript">
    		function countdown() {
    			setTimeout('pop()',90000);
    		}
    		function pop() {
    			document.getElementById('pop').style.visibility = "visible";
    			setTimeout('popunder()',300);
    		}
    		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";
    		}
    	</script>
    </head>
    
    <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>
            <p>Content</p>
    	<p>Content</p>
    	<p>Content</p>
    	<p>Content</p>
    </div>
    
    <div id="wrap">
    	<div id="wrap2">
    	</div>
    </div>
    
    </body>
    </html>
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •