Location.assign() (Method)

Equivalent to setting the HREF attribute to load a new page.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Deprecated
JavaScript syntax:-myLocation.assign(aURL)
Argument list:aURLA new URL to load into the location.href

This is functionally equivalent to making an assignment with an equals (=) operator.

Warnings:

See also:Assign value (=)