javascript question??????

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • milkhead
    Confirmed User
    • Sep 2009
    • 186

    #1

    javascript question??????

    I am working on a project that requires me to use JavaScript ?buttons and etc? and when doing so I found that ie does not pass the refer to another page when you click a link. I did some researcher and found this script, but I am not sure how to implement or how to use so maybe there is someone who can help, how do I make this work?

    <script type="text/javascript" >
    function redirect(url) {
    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
    var referLink = document.createElement('a');
    referLink.href = url;
    document.body.appendChild(referLink);
    referLink.click();
    } else {
    location.href = url;
    }
    }
    </script>
  • lucas131
    ¯\_(ツ)_/¯
    • Aug 2004
    • 11475

    #2
    hey looks i am a post under you, and i have 21 views on my personal photos, now you are talking biz and you have 5 views ... have luck man!

    Comment

    • My Fucking Traffic
      So Fucking Banned
      • Jun 2004
      • 996

      #3
      Originally posted by lucas131
      hey looks i am a post under you, and i have 21 views on my personal photos, now you are talking biz and you have 5 views ... have luck man!

      Comment

      Working...