HTML framed documents

HTML framed documents

How do I make sure my framed documents are displayed inside their frameset?

View Answers

November 2, 2010 at 4:23 PM

Hi,

When the sub-documents of a frameset state are accessed directly, they appear without the context of the surrounding frameset.

If the reader's browser has JavaScript support enabled, the following script will restore the frameset:

<SCRIPT TYPE="text/javascript">
if (parent.location.href == self.location.href) {
    if (window.location.href.replace)
        window.location.replace('frameset.html');
    else
        // causes problems with back button, but works
        window.location.href = 'frameset.html';
}
</SCRIPT>

A more universal approach is a "restore frames" link:

<A HREF="frameset.html" TARGET="_top">Restore Frames</A>

Note that in either case, you must have a separate frameset document for every content document. If you link to the default frameset document, then your reader will get the default content document, rather than the content document he/she was trying to access. These frameset documents should be generated automatically, to avoid the tedium and inaccuracy of creating them by hand.

Note that you can work around the problem with bookmarking frameset states by linking to these separate frameset documents using TARGET="_top", rather than linking to the individual content documents.

Thanks.


November 2, 2010 at 4:23 PM

Hi,

When the sub-documents of a frameset state are accessed directly, they appear without the context of the surrounding frameset.

If the reader's browser has JavaScript support enabled, the following script will restore the frameset:

<SCRIPT TYPE="text/javascript">
if (parent.location.href == self.location.href) {
    if (window.location.href.replace)
        window.location.replace('frameset.html');
    else
        // causes problems with back button, but works
        window.location.href = 'frameset.html';
}
</SCRIPT>

A more universal approach is a "restore frames" link:

<A HREF="frameset.html" TARGET="_top">Restore Frames</A>

Note that in either case, you must have a separate frameset document for every content document. If you link to the default frameset document, then your reader will get the default content document, rather than the content document he/she was trying to access. These frameset documents should be generated automatically, to avoid the tedium and inaccuracy of creating them by hand.

Note that you can work around the problem with bookmarking frameset states by linking to these separate frameset documents using TARGET="_top", rather than linking to the individual content documents.

Thanks.


November 2, 2010 at 4:23 PM

Hi,

When the sub-documents of a frameset state are accessed directly, they appear without the context of the surrounding frameset.

If the reader's browser has JavaScript support enabled, the following script will restore the frameset:

<SCRIPT TYPE="text/javascript">
if (parent.location.href == self.location.href) {
    if (window.location.href.replace)
        window.location.replace('frameset.html');
    else
        // causes problems with back button, but works
        window.location.href = 'frameset.html';
}
</SCRIPT>

A more universal approach is a "restore frames" link:

<A HREF="frameset.html" TARGET="_top">Restore Frames</A>

Note that in either case, you must have a separate frameset document for every content document. If you link to the default frameset document, then your reader will get the default content document, rather than the content document he/she was trying to access. These frameset documents should be generated automatically, to avoid the tedium and inaccuracy of creating them by hand.

Note that you can work around the problem with bookmarking frameset states by linking to these separate frameset documents using TARGET="_top", rather than linking to the individual content documents.

Thanks.









Related Tutorials/Questions & Answers:
HTML framed documents
HTML framed documents   How do I make sure my framed documents are displayed inside their frameset
Html framed document
Html framed document  How do I change the title of a framed document
Advertisements
general layout HTML documents
general layout HTML documents  Explain the general layout HTML documents
parts in HTML documents
parts in HTML documents  How many parts are present in HTML documents
ModuleNotFoundError: No module named 'framed'
ModuleNotFoundError: No module named 'framed'  Hi, My Python... 'framed' How to remove the ModuleNotFoundError: No module named 'framed'... to install padas library. You can install framed python with following command
ModuleNotFoundError: No module named 'documents'
ModuleNotFoundError: No module named 'documents'  Hi, My Python... 'documents' How to remove the ModuleNotFoundError: No module named 'documents' error? Thanks   Hi, In your python environment you
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is HTML? What is a Hypertext link
Html
Html  What is HTML? What is a Hypertext link
HTML
HTML  What is BODY in HTML document
html
html  diffrence between html and xml
html
html  How to add the calendar in html code
ModuleNotFoundError: No module named 'invenio-documents'
ModuleNotFoundError: No module named 'invenio-documents'  Hi, My... named 'invenio-documents' How to remove the ModuleNotFoundError: No module named 'invenio-documents' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'lucterios-documents'
ModuleNotFoundError: No module named 'lucterios-documents'  Hi, My... named 'lucterios-documents' How to remove the ModuleNotFoundError: No module named 'lucterios-documents' error? Thanks   Hi
ModuleNotFoundError: No module named 'pinax-documents'
ModuleNotFoundError: No module named 'pinax-documents'  Hi, My... named 'pinax-documents' How to remove the ModuleNotFoundError: No module named 'pinax-documents' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'br_documents'
ModuleNotFoundError: No module named 'br_documents'  Hi, My Python... 'br_documents' How to remove the ModuleNotFoundError: No module named 'br_documents' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-documents'
ModuleNotFoundError: No module named 'django-documents'  Hi, My... named 'django-documents' How to remove the ModuleNotFoundError: No module named 'django-documents' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'google-documents'
ModuleNotFoundError: No module named 'google-documents'  Hi, My... named 'google-documents' How to remove the ModuleNotFoundError: No module named 'google-documents' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'huscy.project-documents'
ModuleNotFoundError: No module named 'huscy.project-documents'  Hi...: No module named 'huscy.project-documents' How to remove the ModuleNotFoundError: No module named 'huscy.project-documents' error? Thanks   
ModuleNotFoundError: No module named 'invenio-documents'
ModuleNotFoundError: No module named 'invenio-documents'  Hi, My... named 'invenio-documents' How to remove the ModuleNotFoundError: No module named 'invenio-documents' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'huscy.project-documents'
ModuleNotFoundError: No module named 'huscy.project-documents'  Hi...: No module named 'huscy.project-documents' How to remove the ModuleNotFoundError: No module named 'huscy.project-documents' error? Thanks   
html
add a header in the html page  what we can do to add a header in the html page
HTML
HTML  How do we specify page breaks in HTML
HTML
HTML  What is a tag? How can we use MARQUEE in HTML
html
html  how to convert html page into jsp page
html
html  i want a registration page in html with good background
HTML
HTML  how can we give the unlimited size in the html
html
html  what we can do to add a header in the html page
html
html  what we can do to add a header in the html page
HTML
HTML  Hi, What is the full form of HTML? Thanks (adsbygoogle = window.adsbygoogle || []).push({});   Hi, The HTML stands for HyperText Markup Language. HTML is used to create webpage for world wide web
html
html  sir i am new to eclipse and i am created a html program and also tomcat is running successfully in side the eclipse.but now how i deploy that html program in the eclipse
html
html  Can we Access database through html page and how,if not then why
HTML
HTML  How do we create a link? What are the three types of form tags in HTML
html
html  how we can give the form actions in html after register button in the login page
html
Adding Header in HTML  what we can do to add a header in the html page
html
html  For what is used HTML?   Using HTML we can create a Web Page which can be viewed through a Web Browser over Internet. HTML describes... or the End Tag is defined as </> . The whole HTML document is enclosed
Html
Html  in the web page if judge select the age and category then automatically under that conditions the details will be display in the form of grid give me that code in html and java
html
html   write a html program to print "HELLO WORD"in red coaler font size 12 and italic stile   Here is a html code that display the message "Hello World" in red font with size 12 and in italics. <html> <
Html
Html  i am select the dateofbirth through the html browser.but it can not save into the sql server 2008 database.any special code required to store the date in database by using java servlets
HTML
HTML  I have created an info.html file for the applet.The class file is located in a directory different from the HTML file.The info.html file I have created is below. <HTML> <HEAD> <BODY> <APPLET Code
HTML
HTML  in html how can we can upload the file <tr> <td><strong>Video of the work:</strong> <td><b>... the file give me the code for this in html and java
HTML
HTML  how can we design the gird form view in html i want the following fields in the grid form The fields are Name of the candidate,Title... me the coding for this in html
html
html  Create a web page with the following using HTML i) To embed an image map in a web page ii) To fix the hot spots iii) Show all the related information when the hot spots are clicked.please reply me sir
Html
Html  I was designing a webpage, i need to create selection boxes one beside other, how i'll be able to do it using HTML code, Please give me a sample code for that... looking forward for your usefull code
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
HTML
where i can store in the database SEND ME THE CODE FOR THIS IN JAVA AND HTML

Ads