title: Window.Parent.Postmessage with Parameter
body: <p>I'm working with an IFrame on my page and making a Communication with Cross Domain IFrame - A Cross Browser Solution using .postmessage in java script</p>
  
  <p>in my IFRAME target page I have something like this:</p>
  
  <pre><code>window.parent.postMessage("Assign to value1", "www.parentpage.com");
  window.parent.postMessage("Assign to value2", "www.parentpage.com");
  </code></pre>
  
  <p>then in my parent page :</p>
  
  <pre><code>var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
  var eventer = window[eventMethod];
  var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message";
  eventer(messageEvent, function (e) {
  var value1 = e.data;
  var value2 = e.data;
  
  }, false);      
  </code></pre>
  
  <p>I tested it and Its working with single var using value1 only.</p>
  
  <p>Now I want to parametarized my .postmessage if its possible so that I can get the message dynamically.
  I'm expecting a result of :</p>
  
  <pre><code>value1=Assign to value1
  value2=Assign to value2     
  </code></pre>
  
  <p>Any suggestion on how can I achieve that result?</p>