Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

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