Firefox popup code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pstation
    Confirmed User
    • Jul 2003
    • 1135

    #1

    Firefox popup code

    Came up with this last night, doesn't do me much good however since 97% of my traffic is IE. So i'm sure someone else might be able to make good use of this.

    Code:
    <html>
    <head>
    <script language="javascript">
    function popup(url){
    var formId = "form" + Math.floor(Math.random()*100001);
    document.write("<form name=\"" + formId + "\" method=\"GET\" action=\"" + url + "\" target=\"_blank\"></form>");
    document.forms[formId].submit();
    }
    </script>
    </head>
    <body>
    <script>
    popup("http://www.google.com/");
    </script>
    </body></html>
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #2
    heh funny method
    hatisblack at yahoo.com

    Comment

    Working...