Skip to content Skip to sidebar Skip to footer

Window.location.href Doesn't Yield The Exact Url

For some reason in my javascript the window.location.href returns only the domain name and not the current page address. function addLink() { console.log('hey'); var body_e

Solution 1:

My script won't work in IE (even 9)? simple javascript to amend copy text

Perhaps you could find answer on above link.

IE needs

document.body.oncopy=copyCopyright

added to your onload event. (body doesn’t exist until loaded)

Post a Comment for "Window.location.href Doesn't Yield The Exact Url"