<html>
<head>
<script type="text/javascript">
function curr_Location(){
alert(location)
}
function change_Location(){
window.location="http://www.java2java.com"
}
</script>
</head>
<body>
<form>
<input type="button" onclick="curr_Location()" value="Show current URL">
<input type="button" onclick="change_Location()" value="Change URL">
</form>
</body>
</html>
|