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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    syntax for frame target

    Hi,

    Need syntax for code to target frame on redirect. Code
    follows (target frame name is "production_stage"):

    <script>
    <!--
    var targetURL="http://www.vehicle411.com/_system/ServiceSlots/index.html"
    var countdownfrom=3
    var currentsecond=document.redirect.redirect2.value=countdownfrom+1
    function countredirect(){
    if (currentsecond!=1){
    currentsecond-=1
    document.redirect.redirect2.value=currentsecond
    }
    else{
    window.location=targetURL
    return
    }
    setTimeout("countredirect()",1000)
    }
    countredirect()
    //-->
    </script>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    already solved--calling routine needed correct frame name and
    self.location=TargetUrl in the redirect code.

    Thanks for any looksees.


  •  

    Posting Permissions

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