This example uses the location operation twice. The location of this page is :
 


<html>
 

The location of this page is :
<script type="text/javascript">
<!--
document.write(location.href);
// -->
</script>
 

<center>
<form>
<input type="button" VALUE="Visit Me" OnClick="location.href='http://employees.oneonta.edu/higgindm';">
</form>
</center>

</html>