How to change a div's innerHTML after redirecting?
<p>I am trying to change the innerHTML of a div on the page that I am loading.</p>

<p>This is my JavaScript code:</p>

<pre><code>function redirect(titleName){
    window.location = "pageToLoad.php";
    document.getElementById("title").innerHTML = titleName;
}
</code></pre>

<p>It doesn't seem to be working, please help me!!</p>
