Back to Scripts page
Click in the text area below, select all and copy to grab the script
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <HTML> <HEAD> <TITLE>Setting one frame from another</TITLE> </HEAD> <FRAMESET COLS="30%,70%"> <FRAME SRC="left4.html" NAME="left"> <FRAME SRC="frame4a.html" NAME="content"> </FRAMESET> </HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Nav Bar</TITLE> <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers pageArray = new Array ("","frame4a.html","frame4b.html","frame4c.html") function setContent(thisPage) { parent.content.document.location.href = pageArray[thisPage] } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR="WHITE"> <H1>Navigation Bar</H1> <H2> <A HREF="javascript:setContent(1)">Page 1</A><BR> <A HREF="javascript:setContent(2)">Page 2</A><BR> <A HREF="javascript:setContent(3)">Page 3</A></H2> </BODY> </HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Content frame</TITLE> </HEAD> <BODY BGCOLOR="WHITE"> <H1>You are now looking at page 1</H1> </BODY> </HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Content frame</TITLE> </HEAD> <BODY BGCOLOR="WHITE"> <H1>You are now looking at page 2</H1> </BODY> </HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Content Frame</TITLE> </HEAD> <BODY BGCOLOR="WHITE"> <H1>You are now looking at page 3</H1> </BODY> </HTML>
Images: (Some scripts do not have associated images)