Using Javascript, how do I get the next page to know what link the user clicked to get there?
<p>The main page is controlled by Javascript as where the links they click only change the information in one div.  The problem I'm having is that when they click a link on the index page, I can't, for some reason, get the main page to show the right info in the div. I'm learning Javascript, and am having troubles in certain areas of it, but I feel I'm getting a grasp of it. Still, however, I feel this is a very basic problem, and it's bugging me that I can't find a solution no matter what I search for.  I don't want to have to use jquery or php, as I'm sure the problem can be fixed with Javascript.</p>

<p>Thank you, and please be tutorial-esque with your answers.</p>

<p><strong>Update</strong>: This is one of the links on the main page:</p>

<pre><code>&lt;a href="javascript:contChange(1)"&gt;Home&lt;/a&gt;

&lt;script type="text/javascript"&gt;
function contChange(i) {
    if (x + i == 1) {
        document.getElementById("textBox").innerHTML = start
    };
    if (x + i == 2) {
        document.getElementById("textBox").innerHTML = gen1
    };
    if (x + i == 3) {
        document.getElementById("textBox").innerHTML = gen2
    };
    if (x + i == 4) {
        document.getElementById("textBox").innerHTML = gen3
    };
}
&lt;/script&gt;
</code></pre>
