• Pass url to open a window then refresh to a new pa

    Home » Forums » Developers, developers, developers » Web design and development » Pass url to open a window then refresh to a new pa

    Author
    Topic
    #398820

    I’m looking for any help on passing a URL parameter to open a page then have that page refresh with the new passed URL.

    The way this would be used is on a links page:

    For instance, there is a link to CNN.com with the url http://www.cnn.com.
    When you click on that link I would like it to open a new window saying something like, “X Company does not endorse, approve, certify, or control this external site and does not guarantee the accuracy, completeness, efficiency, timeliness, or accurate sequencing of the information contained therein. You will automatically be redirected to your destination within 10 seconds. If you are not redirected, please click here.”

    After about 10 seconds I would like it to refresh to the passed URL. I would also like the “please click here” link on that page to be active with the correct URL that was passed.

    Any help would be grealy appreciated!
    Thanks in advance!

    Viewing 9 reply threads
    Author
    Replies
    • #765576

      Would something like this from the JavaScript Source do?

    • #765577

      Would something like this from the JavaScript Source do?

    • #765578

      Yes, this on your links page:

      http://www.cnn.com

      then on the cnn.html like this:

      wopr.com

      Blah blah blah blah

      THat will show this page for 15 seconds and then go to cnn.com

      Is this what you wanted?

      • #765586

        Thanks for the input guys but as far as I can tell I’d still be required to create a separate file for every link. Ideally I would like some kind of ONCLICK function that would pass a URL to a single page. Something like:

        onClick=RedirectLink(http://www.cnn.com);>

        That would open a page in a new window that would dynamically forward me to the correct link based on a URL passed as a paramater.

        Does this make any sense or I am high on crack?

        Please help,
        freemans

      • #765587

        Thanks for the input guys but as far as I can tell I’d still be required to create a separate file for every link. Ideally I would like some kind of ONCLICK function that would pass a URL to a single page. Something like:

        onClick=RedirectLink(http://www.cnn.com);>

        That would open a page in a new window that would dynamically forward me to the correct link based on a URL passed as a paramater.

        Does this make any sense or I am high on crack?

        Please help,
        freemans

    • #765579

      Yes, this on your links page:

      http://www.cnn.com

      then on the cnn.html like this:

      wopr.com

      Blah blah blah blah

      THat will show this page for 15 seconds and then go to cnn.com

      Is this what you wanted?

    • #765815

      See this thread and the thread to which it refers. Between them, you should be able to code this up with JavaScript, no sweat. With ASP or Perl or PHP, it’s probably easier.

    • #765816

      See this thread and the thread to which it refers. Between them, you should be able to code this up with JavaScript, no sweat. With ASP or Perl or PHP, it’s probably easier.

    • #771343

      Create the Following asp page:

      < META HTTP-EQUIV="refresh" CONTENT="10; URL=” >

      < a href="”>If you are not redirected, please click here.

      Then, simply create your links with the RedirectURL QueryString, like this:
      MSN.com

      Had to put spaces after the to display here. (Just an FYI)

    • #771344

      Create the Following asp page:

      < META HTTP-EQUIV="refresh" CONTENT="10; URL=” >

      < a href="”>If you are not redirected, please click here.

      Then, simply create your links with the RedirectURL QueryString, like this:
      MSN.com

      Had to put spaces after the to display here. (Just an FYI)

    • #771345

      Ooops, just a quick addendum, you’ll want to use target=”_blank” in those links, but that was already mentioned.

    • #771346

      Ooops, just a quick addendum, you’ll want to use target=”_blank” in those links, but that was already mentioned.

    Viewing 9 reply threads
    Reply To: Pass url to open a window then refresh to a new pa

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: