How to find out url of current page

admin

Administrator
Staff member
Hi all,

I wonder if I can use in my javascript something like this:

if(currentURL=='http://forums.webdeveloper.com/newthread.php?action=newthread&forumid=3'){

don't do something

}

Actually, I need to use it without parameters, I need to avoid them, so just

if
(currentURL==http://forums.webdeveloper.com/newthread.php
'){
don't do something

}

Thank you for any help.

Mike
 
Back
Top