ANyone know why this ez javascript isnt working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxweekxx
    Confirmed User
    • Oct 2002
    • 6780

    #1

    ANyone know why this ez javascript isnt working?

    <head>
    <script language="javascript"><!--document.myform.submit()
    //-->
    </script>
    </head>
    <body>
    <form action="site2.html" method="get"></form>
    Please Wait
    </body>

    Basically this is supposed to take the user to site2.html automatically as they hit my site.. but it isnt working..
    _________________
    I am the best
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #2
    You're trying to execute javascript on a form that isn't created yet.
    This is me on facebook
    This is me on twitter

    Comment

    • xxweekxx
      Confirmed User
      • Oct 2002
      • 6780

      #3
      can u post a simple script i can use here.. all i want to do is move the user to a new page automatically.... im doing this cuz i tried php refresh, meta refresh, and they all lose referrer information..

      basically i want to bounce a user from site a to site b Automatically and retain header information.. Please post the javascript?
      _________________
      I am the best

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        Try this:

        <script type="text/javascript">location.href="site2.html";</script>
        This is me on facebook
        This is me on twitter

        Comment

        • xxweekxx
          Confirmed User
          • Oct 2002
          • 6780

          #5
          stuart how many percent of people would u say have javascript enabled?
          _________________
          I am the best

          Comment

          • grumpy
            Too lazy to set a custom title
            • Jan 2002
            • 9870

            #6
            70.474 99,02% have javascript enabled

            btw you will never get a referer that way.
            Don't let greediness blur your vision | You gotta let some shit slide
            icq - 441-456-888

            Comment

            • xxweekxx
              Confirmed User
              • Oct 2002
              • 6780

              #7
              How do u do an auto redirect like from site a>b automatically but maintain referrer?

              Im trying to use this for some affiliate networks BUT i want my referrer to show and its not showing
              _________________
              I am the best

              Comment

              • xxweekxx
                Confirmed User
                • Oct 2002
                • 6780

                #8
                Originally posted by StuartD
                Try this:

                <script type="text/javascript">location.href="site2.html";</script>

                Works in IE but firefox just doesnt load shit
                _________________
                I am the best

                Comment

                Working...