Possible Duplicate:
Request Address in Javascript
I am using a Facebook plugin in my web page, as shown:
<iframe
src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no"
frameborder="0"
style="border:none; width:120px; height:30px">
</iframe>
How can I get the current URL of the web page, using JavaScript? I need to assign current URL instead of href=YOUR_URL
. How can I achieve this?