JavaScript Location method: assign()
[this page | pdf | back links]
The assign() method (when applied to Location
objects in the JavaScript
BOM) loads new
document (but in a way that still allows the back button of the browser to go
back to the original document).
It
has the following syntax with the following parameters. It does not return a
value.
location.assign(URL)
Parameter
|
Required / Optional
|
Description
|
URL
|
Required
|
URL of
page to navigate to
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)