Change frame location(URL) : frameset : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » frameset »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» frameset