Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    redirect within a frame

    Hi all,

    I have been using the following tag
    <META http-equiv="refresh" content="3; url=home.html"> to redirect users once they have completed a form. Basically, the form is sent, and a thank you message appears for 3 seconds. They are then redirected to my homepage.

    Is this still a correct tag if I am using it in a frame, as I would like my homepage to load in the main frame, not as a new window...

    I don't know if the following would work:
    <META http-equiv="refresh" content="3; url=home.html" target="main">

    Thank you for your input!

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i'd suggest some javascript for this, because i do know how to target frames with javascript, but i don't know how to do that with met tags.

    <script>
    self.setTimeout("top.main.location = 'home.html';", 3000);
    </script>

    hope that helps.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Worked like a dream!

    Thanks! It worked...!

    I presume that if I set the time to 0000, the browser wll redirect the page ASAP?

    Thanks.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    TEXAS . . . 'nuf said
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I presume that if I set the time to 0000, the browser wll redirect the page ASAP?
    Actually, just 0 will do just fine.
    Gordo
    "In the End, we will remember not the words of our enemies, but the silence of our friends."
    - Martin Luther King Jr. (1929-1968)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •