Request address in JavaScript [duplicate]

You need to use:
document.location or window.location

You can read more here. Or there is a little more explanation over there.

For clarifying matter:

Originally Posted by Mozilla Developer Center

document.location was originally a
read-only property, although Gecko
browsers allow you to assign to it as
well. For cross-browser safety, use
window.location instead.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)