I have a piece of javascript code. Right now it forces users to manually enter the url of the page they want to insert it on. This is kind of a hassle. Is there a way I can fetch the url of the page in automatically and make everyone's life easier?
Of course, you'll have to use 'window.location.href' to get the actual URL (window.location just returns the Location object).
Steve Harrison
2009-04-05 04:27:09
Thank you. I updated it to atone for my laziness
John Sheehan
2009-04-05 04:59:33