• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Managing Multiple Frames > 7.1. Creating a Blank Frame in a New Frameset

Creating a Blank Frame in a New Frameset

NN 2, IE 3

Problem

You want a frameset definition to include a blank frame (as a clean slate, awaiting a menu selection), but without having to create a blank HTML document on the server.

Solution

The following framesetting page demonstrates the technique of using a script-generated blank page in one of two frames:

<html>
<head>
<script type="text/javascript">
<!--
function blankFrame( ) {
    return "<html><body></body></html>";
}
//-->
</script>
</head>
<frameset rows="50, *">
    <frame name="frame1" id="frame1" src="navSlice.html">
    <frame name="frame2" id="frame2" src="javascript:parent.blankFrame( )">
</frameset>
</html>

You can apply the javascript: pseudo-URL to the src attribute of any frame element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint