url property

Sets or retrieves the fully qualified URL of the document that fired the event.

Syntax

JavaScript

p = object.url

Property values

Type: String

the URL string.

Remarks

To see if two documents are in the same domain, compare url with the location.hostname property.

See also

event
origin

 

 

Build date: 11/14/2012

Show:
© 2015 Microsoft