Frameset in Javascript : JavaScript DHTML examples (example source code) » HTML » Frame FrameSet

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   HTML   » [  Frame FrameSet  ]   
 



Frameset in Javascript

Please note that some example is only working under IE or Firefox.

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/

<!--
  Prorgam 2-6
-->
<html>
<head>
<script language="JavaScript">
<!--
function myFunc() {
  parent.frames[1].document.open();
  parent.frames[1].document.write("This is some " +
                   "automatically " +
                   "loaded frame-text.");
  parent.frames[1].document.close();
}
var topFrame = "<a href='http://www.osborne.com' " +
               "onClick='parent.myFunc()'>Click me</a>";
var botFrame = "";  // Empty to start with
//-->
</script>
</head>
<frameset rows="50%,*">
<frame src="javascript:parent.topFrame">
<frame src="javascript:parent.botFrame">
</frameset>
</html>
Related examples in the same category
1.  Create frameset
2.  Hide and Show Frame Example
3.  Handling Load Events in a Layout Document
4.  Frameset for document.URL Property Reader
5.  Creating a Blank Frame
6.  A blank frameset with Javascript
7.  Get frame size
8.  Make new frameset
9.  Frameset Navigator
10.  Frameset show and hide
11.  Multiple Search Engine








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.