Admin Forum:Javascript last URL (spoiler reveal choice)

I know almost nothing about javascript ( , , ). I want to be able to make a verbatim that outputs the previous URL, so if the previous URL is the "spoiler" page, it would show the content, if not it would link to it. The spoiler page would link to the last page. Thanks, Iggyvolz 01:19, March 24, 2012 (UTC)