assign method
In this chapter you will learn:
Assign value to location
Passing in a URL to locatoin.assign()
method starts the process of navigating to the new URL and
makes an entry in the browser's history stack.
<!DOCTYPE HTML> <!-- j a va 2s . co m-->
<html>
<body>
<script>
document.location.assign("http://java2s.com");
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter: