Output a frameset through document.write : frameset : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » frameset »

 

Output a frameset through document.write

















<html>
<head>
<script language="JavaScript" type = "text/javascript">
<!--
var frame_URL;
if (location.search)
{
    frame_URL = location.search.substring(1);
}
else {
     frame_URL = "http://www.navioo.com";
}

{
 document.write("<frameset rows = '20%, 80%'>")
 document.write("  <frame src='http://www.navioo.com'>")
 document.write("<frame src='" + frame_URL + "'>")
 document.write("  </frameset>")
}
//-->
</script>
</head>
<body>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» frameset