----- text of first location example : ------
<html>
<head>
</head>
<body>
<br />
<p>
<center>
Look at the location on top!
<script language="javascript">
       
    window.location="http://www.yahoo.com";
</script>
</center>
</body>
</html>
------ text of second location example: -----
<html>
<head>
</head>
<body>
<br />
<p>
<center>
Look at the location on top!
<script language="javascript">
           
newpage=prompt("Enter a URL", "http://www.yahoo.com");
           
window.location=newpage;
</script>
</center>
</body>
</html>