1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Popup/under Script

Discussion in 'HTML & JavaScript' started by dukeofism, Jan 24, 2010.

  1. dukeofism

    dukeofism Junior Member

    Joined:
    Dec 14, 2009
    Messages:
    183
    Likes Received:
    79
    Can anyone point me in the direction to creating a pop up/ under script for my site. I have been working on one combining php/java script, but it seems that this generally gets blocked. Is there a way to have popups appear that do not get blocked?

    Here is my attempt:

    Code:
    <html>
    <head>
    <?php
    $count=0;
    while( $count< 3)
    {
    	echo "<script>
    		win".$count."=window.open('http://www.url-to-open.html')
    		win".$count.".blur()
    		window.focus()
    	</script>";
    	$count++;
    }
    ?>
    </head>
    <body>
    <h1>Window 1</h1>
    </body>
    </html>
    So after looking around doing a bit more research, I have decided that most likely I want to use javascript and onclick to create the pop ups.
    Is it possible to have a user click a link, open X popUNDERS and then in the main window direct the user to the intended link?

    Any help is greatly appreciated!
     
    Last edited: Jan 24, 2010
  2. dukeofism

    dukeofism Junior Member

    Joined:
    Dec 14, 2009
    Messages:
    183
    Likes Received:
    79
    Still looking for help on this topic...
     
  3. eshera

    eshera Registered Member

    Joined:
    Nov 13, 2008
    Messages:
    58
    Likes Received:
    108
    Do you mean something like hxxp://xxx.exitsplash.c0m? If you do, I have written code like this myself, just let me know if I can help.

    -she
     
  4. eshera

    eshera Registered Member

    Joined:
    Nov 13, 2008
    Messages:
    58
    Likes Received:
    108
    I think they charge 67 bucks, don't bother.:rolleyes: