proggR Posted July 25, 2008 Share Posted July 25, 2008 I want to know if there's any Javascript I can use to get the URL of the last page I visited? What I want to do is create a link to del.icio.us/post?url=URL&title=TITLE where URL is a script to get the URL that I last visited and TITLE is a script to pop up and prompt for a title. That way I can easily add an article I read to my del.icio.us posts. I'm aware they have a button that does this but I'm at work and can't install anything extra on the computers. If anyone knows if this is possible it'd be really helpful. Thanks Link to comment https://forums.phpfreaks.com/topic/116620-script-to-get-last-url-visited/ Share on other sites More sharing options...
paul2463 Posted July 25, 2008 Share Posted July 25, 2008 Have a look <A HREF="http://www.netmechanic.com/news/vol4/javascript_no14.htm"> Here </A> Link to comment https://forums.phpfreaks.com/topic/116620-script-to-get-last-url-visited/#findComment-599639 Share on other sites More sharing options...
proggR Posted July 25, 2008 Author Share Posted July 25, 2008 Thanks Its probably not going to work though is it? They would think I'm trying XSS and have checks won't they? I just have it a try and the URL was entered as "http://<script>document.referrer" (i didn't put the http://). Is there anyway to have it parse those values before it sends it? Maybe I'm just doing it wrong. Link to comment https://forums.phpfreaks.com/topic/116620-script-to-get-last-url-visited/#findComment-599642 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.