title: Add content from form to an existing web page
body: <p>I'm trying to learn how to create a blog and have stumbled upon the problem of being able to add new content to an existing web page. </p>
  
  <p>The idea is to create two web pages. </p>
  
  <p>Page one; 
  Home page (empty) </p>
  
  <p>Page two; 
  Web form that when submitting, will dynamically add the content of the filled out form onto page one (home page). </p>
  
  <p>So far, with JavaScript i've learned how to create a new element on the click of a button which will add a div onto the current page but I want to find a way to add content to another page (somehow). </p>
  
  <p><em>Code used to add element on button click</em> </p>
  
  <pre><code>var number = 1; 
  document.getElementById("add_more").addEventListener("click", function() { 
      var newDiv = document.createElement('div'); 
      newDiv.id = 'ep_holder'; 
      newDiv.innerHTML = 'hello world'; 
      document.getElementById('contain_form_upload').appendChild(newDiv); 
  });
  </code></pre>
  
  <p>I've tried numerous times to search for content on the web to help me but everything i stumble across seams to be Wordpress related which has left me no option but to ask the question on here! </p>
  
  <p>I would appreciate if somebody could take the time to help me! </p>
  
  <p>Thanks in advance, 
  Sam.</p>