location
In this chapter you will learn:
window.location
Passing in a URL to window.location property starts the process of navigating to the new URL and makes an entry in the browser's history stack.
<!DOCTYPE HTML> <!--from j a v a 2 s .c om-->
<html>
<body>
<script type="text/javascript">
window.location = "http://www.java2s.com";
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Window