title: suggestions Passing Javascript window name to php
body: <p>I am opening a javascript window with the following code</p>
  
  <pre><code>&lt;script&gt;
  function PopupCenter(pageURL, title,w,h) {
  var left = (screen.width/2)-(w/2);
  var top = (screen.height/2)-(h/2);
  var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no,  menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
  }
  &lt;/script&gt;
  &lt;a onclick="PopupCenter('/customconfig/index.php?javawindow=yes', 'CustomBuilder1',1080,700);" href="javascript:void(0);"&gt; &lt;img border=0  src = "/images/Animated.GIF"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Now I have in the php page that loads (as you can see in the link "javawindow=yes" as a URL variable. Now when someone bookmarks this page it will need special handling because I need to know if they came back on a bookmark or remain in the java initiated window.</p>
  
  <p>As the window name is "<code>CustomBuilder1</code>" I need to pass the window name to <code>php</code> so that I can verify that is is still in a javascript initiated window. If they are not in a javascript initiated window, I need to be able to make the URL variable automatically update if this is possible (* I think I can figure out that part if I can get the Javascropt window name tro php)</p>
  
  <p>Additionally , it would be nice if I can force the user to reload the page by a javascript pop up so they will be in the pop up forcibly. </p>
  
  <p>Thanks ,</p>
  
  <p>Mark</p>
  
  <p>After testing these suggestions there is a common problem which is exactly what I need to get around. When a user bookmarks the page (favorites) , then goes back to the bookmarked page  they will not be in a javascriprt window, and in all of the proposed solutions the URL variable remains intact that says it is a javascropt window, even though it is no longer.</p>
  
  <p>I need the JAVAScript window name passed as variable to php, and if not consistemt with the javascript name I then do something. I think however it is not possible because the javascript window name only exists on the client site. Amy URL variable will always have the urlvariable and no way to detect if it is truly a javascript initiated window or not from what I am finding. </p>
  
  <p>Maybe there is a different way but I do not see how.  </p>