SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The 2nd window.open doesn't work properly

    Hello to everybody,
    The following code works in htlm, but when I convert to js the Ie pop-up Blocker inhibits the execution of the 2nd [window.open].
    Is there a way to pass over, since it is the visitor that decide to open the
    link.
    Basically I would like to open a popup and at the same run the counter.htm for ShinyStats statistics. The counter.htm is setup to close immediatly.
    Or can you please suggest other procedure to open a popup and launch a statistics counter?
    Thanks in Advance.
    Regards
    JohnbBi


    document.write('<a href="#"
    onclick="window.open(\'http://www.boffenigo.it/deu/prezzi.htm\');
    window.open(\'cl_01/counter.htm\',\'newwin\',\'toolbar=no,location=no,
    width=1,height=1\')"><img title="Preise-prezzi-rates" border="0"
    src="../icons/prezzi.gif" width="20" height="20"></a><br>');

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    One click allows one new window to open. It is to be expected that popup blockers would block any additional windows - otherwise someone could set up one link opening a billion new windows.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok. Clear.
    Since I would like to know how many visitor will click on a link I can use a redirect function on the file counter.htm to the link/popup.
    However since I have many links it is a time consuming procedure if I have to change something.
    Do you a possibile solutions to open a popup and know how many click the link got with ShinyStats?

    Thanks again.
    Regads
    JohnBi


Bookmarks

Posting Permissions

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