Results 1 to 4 of 4

Thread: How to Redirect Noframes in a website

  1. #1
    Join Date
    May 2009
    Posts
    48

    How to Redirect Noframes in a website

    Hi,
    I have a website with frameset page called index.htm. It contains content.htm and main.htm page. Now in the section of Noframes of this page, i want to add such tags which can redirect my vistors to content.htm. So what this the method to perform this action. What HTML tags do i will need to add in the web page so that it can redirect nonframes in the website.

  2. #2
    Join Date
    May 2008
    Posts
    2,792

    Re: How to Redirect Noframes in a website

    You want to redirect you visitors to the content page. Your main frameset page is the index.html page which displays as the visitor access the url. The noframes tag will be placed directly below the end of the main frameset tag. Use the following tags to redirect your nonframes in the website.
    HTML Code:
    <SCRIPT TYPE="text/javascript">
    <!--
    if (parent.location.href == self.location.href) {
    if (window.location.href.replace)
    window.location.replace('index.html');
    else
    // causes problems with back button, but works
    window.location.href = 'index.html';
    }
    // -->
    </SCRIPT>

  3. #3
    Join Date
    Apr 2008
    Posts
    2,572

    Re: How to Redirect Noframes in a website

    If you had an access to the server try this out. Like in ASP.
    <NOFRAMES>
    <%
    Response.Redirect "contents.htm"
    %>
    </NOFRAMES>
    As the visitor dose not need to support scripting and will redirect because the ASP is interpreted on the server.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,358

    Re: How to Redirect Noframes in a website

    Basically, your noframes page is written within the tags like <noframes> </noframes>. I will suggest you to make a new page and in the noframes section add this :
    HTML Code:
    <head>
    <meta http-equiv="refresh" content="1;url=mywebpage.html">
    </head>
    <body>
    You are being redirected
    </body>

Similar Threads

  1. Replies: 4
    Last Post: 14-02-2012, 04:56 AM
  2. How to block website using Website blocker?
    By Edi in forum Windows Software
    Replies: 6
    Last Post: 02-07-2011, 10:46 PM
  3. Norton Safe Web won't verify my Website Tonight website
    By Chang2 in forum Networking & Security
    Replies: 5
    Last Post: 17-09-2010, 09:47 PM
  4. Dynamic Website VS Static Website
    By Rum in forum Software Development
    Replies: 5
    Last Post: 08-01-2010, 01:14 PM
  5. Replies: 2
    Last Post: 05-11-2009, 08:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,101,730.12340 seconds with 17 queries