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

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -