javascript - How to get current window URL and use it? -
i want current window location using javascript , use in following code:
<img src="http://shook.eu.org/qrc.php?text=current_window_url" />
if building html string:
var img = '<img src="http://shook.eu.org/qrc.php?text=' + encodeuri(window.location.href) + '" />'; document.body.innerhtml = img; edit: should encodeuri string want pass.
Comments
Post a Comment