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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question redirect pages - frames

    I work with frames on my website.
    Pages are all indicated in search engines, but I don't want to open all pages seperatly. So if somebody opens the link on a search engine, the pages should redirect to the main page of the website.
    Do you know a script that validates when a single page is loaded that it redirects to the main page?

    Thanks for helping.

    Daniela

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try placing this at the very beginnin of your HEAD section:
    <SCRIPT LANGUAGE="JavaScript">
    if(self == top)
    {location.href="main_page.html"}
    </SCRIPT>

  • #3
    New to the CF scene
    Join Date
    Nov 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thanks

    Thanks for helping me. It's perfect!!!!!!!


    Daniela


  •  

    Posting Permissions

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