url property

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

Internet Explorer 8

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

 

 

Show:
© 2014 Microsoft