title: Javascript: Video pop-up window
body: <p>I want to write a javascript function that operates as follows:</p>
  
  <p>Input: Youtube Video ID (i.e. F3v39wnv), height, width and name</p>
  
  <p>Action: Popup a new window w/ the specified name width and height, showing the specified video.</p>
  
  <p>I have figured out a rudimentary way to do it (by using document.write() ) but I understand that this opens the page up to vulnerabilities.</p>
  
  <p>I am a strong programmer, I'm just not at all familiar with javascript.  What is the standard method for passing arguments to a new webpage?  I have been able to have the source page generate the new window with all of the specified arguments as follows:  videoplayer.htm?vid=(VidID)?height=(height)?width=(width)?name=(name), but I haven't been able to read those arguments from videoplayer.htm</p>
  
  <p>Thanks!</p>