I have an HTML form grabbing the previous page url and page title with javasscript but I need the page title to be the previous page too. It currently grab the page it is on. How do you grab the page title from the previous page?
Here is my code...
<script type="text/javascript">// <![CDATA[
function start() {
var url = document.getElementById('url');
url.value = document.referrer;
var ptitle = document.getElementById('ptitle');
ptitle.value = document.title;
}
onload = start;
// ]]></script>