Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Location assign() method

Location assign() method

Location Object Reference Location object


Definition and Usage

The assign() method loads a new document.

Syntax

location.assign(

URL

)


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the assign() method


Example

Example

Use assign() to load a new document:

Runoob Tutorial(runoob.com)

Try it »


Location Object Reference Location object