title: Javascript dynamically change another page, is what I'm trying to do possible?
body: <p>I was wondering if it was possible to change another page that's not opened yet, when a user clicks a link from the first page. It's hard to explain, but I'll try to show you what I mean with an example below.</p>
  
  <p>The html is more complex for the actual site, but here is a watered-down version:</p>
  
  <p><strong>Index:</strong></p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript" src="external.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="container"&gt;
      &lt;div class="img"&gt;
     &lt;a href="PRODUCTPAGE.html"&gt;
     &lt;img src="product.jpg"/&gt; &lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div class="img"&gt;
     &lt;a href="PRODUCTPAGE.html"&gt;
     &lt;img src="product2.jpg"/&gt;&lt;/a&gt;        
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>Product Page:</strong></p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript" src="external.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  
  &lt;body&gt;
  &lt;div id="container"&gt;
  
  &lt;div id = "product1"&gt;
    all of product 1 info and pictures
  &lt;/div&gt;
  
  &lt;div id = "product2"&gt;
    all of product 2 info and pictures
  &lt;/div&gt;
  </code></pre>
  
  <p>So basically, is it possible just using javascript, no php or anything, when product1 image is clicked to only show the product1 info on the product page and when product2 is clicked only show the info for product 2 on the page. I've been trying to find something similar but as of yet haven't, which leads me to believe I may not be able to do it, but I thought I would ask.</p>
  
  <p>My javascript document doesn't have much in it, because I haven't been able to figure it out, but I have been playing around trying to make their display = none. I haven't been able to get a variable to continue onto the next page, if you know what I mean. Sorry, I only have a basic understanding of Javascript.</p>