Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Change frame location(URL)

<head> <script language="JavaScript" type = "text/javascript"> <!-- function changeLocation() {     parent.frames[1].location = document.form1.NewURL.value; } //--> </script> </head> <body> <title>Specify URL</title> </head> <body> <form name="form1">    <input type="text" name="NewURL" size="50">    <input type="button" value="Change URL" name="URLButton" onClick = "changeLocation()"></p> </form> </body>