Javascript: if (previous page == certainurl) { function }
<p>I want to execute a function only if the previous page the user visited is on a certain domain. How can this be done using javascript (or jQuery or whatever)?</p>
