SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    click event not working on ff

    hey guys, i have some problem with click event on FF5 beta. Hope, some one can help this..this has been working fine on all the browsers, suddenly it stopped working on ff 5 beta. Below is the code:
    <script language="JavaScript">
    function redirect () { setTimeout("gonow()",5000); }
    function gonow () {
    var anchor1 = document.createElement("a");
    if(!anchor1.click) {
    window.location.href = "http://google.com";
    return;
    }
    anchor1.setAttribute("href", "http://google.com");
    anchor1.style.display = "none";
    document.getElementById("interstitial-box").appendChild(anchor1);
    anchor1.click();
    }
    </script>

    Thanks in advance

  2. #2
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when i call the function redirect() it is not redirected to google.com site.


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
  •