<html>
<head>
<title> Using the assign method of the Location object</title>
</head>
<body>
<form name="form1">
Click the button to load the new page: http://www.java2java.com
<br>
<br>
<input type="button" name="load" value="Load new page"
onClick='document.location.assign("http://www.java2java.com")'>
<br>
</form>
</body>
</html>
|