Jump to content

Script to get last URL visited?


proggR

Recommended Posts

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

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. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.