<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002283" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002283</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-windowsdetecting-status-cant-detect-status-opened-window#comment-1010158</link>
    <description> &lt;p&gt;I think if you check for the existence of the window first, it would work OK. Something like this:&lt;/p&gt;
&lt;p&gt;if (new_win)&lt;br /&gt;
 {&lt;br /&gt;
  new_win.close()&lt;br /&gt;
 }&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
John Pollock&lt;br /&gt;
&lt;a href=&quot;http://www.pageresource.com&quot; class=&quot;bb-url&quot;&gt;http://www.pageresource.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Jun 1999 03:15:00 +0000</pubDate>
 <dc:creator>John Pollock</dc:creator>
 <guid isPermaLink="false">comment 1010158 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-windowsdetecting-status-cant-detect-status-opened-window#comment-1010159</link>
    <description> &lt;p&gt;John:&lt;br /&gt;
Thanks for the response. I had tried that and other methods. If the window is already closed, this method generates a javascript error, that, depending on where in the script the call is made, can crash the script. The netscape console shows the error:&lt;/p&gt;
&lt;p&gt;JavaScript Error:&lt;br /&gt;
&lt;a href=&quot;http://www.connex-electronics.com/_private2/win1_frames.html&quot; title=&quot;http://www.connex-electronics.com/_private2/win1_frames.html&quot;&gt;http://www.connex-electronics.com/_private2/win1_frames.html&lt;/a&gt;,&lt;br /&gt;
line 15:&lt;/p&gt;
&lt;p&gt;second_win.close is not a function. &lt;/p&gt;
&lt;p&gt;The example code is at:&lt;br /&gt;
&lt;a href=&quot;http://www.connex-electronics.com/_private2/frame_doc.html&quot; title=&quot;www.connex-electronics.com/_private2/frame_doc.html&quot;&gt;www.connex-electronics.com/_private2/frame_doc.html&lt;/a&gt;&lt;br /&gt;
(I added the code to my other example)&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Alan Izat&lt;/p&gt;
 </description>
     <pubDate>Fri, 25 Jun 1999 02:02:00 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1010159 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-windowsdetecting-status-cant-detect-status-opened-window#comment-1010157</link>
    <description> &lt;p&gt;John: sorry, I didnt get an email indicating a response posted. I have basically given up trying. I was able to do a work around using cgi. The cgi will refresh the contents of the window if open. I would still love an answer. Basically, is there any way to tell if a window you opened via:&lt;br /&gt;
new_win=window.open(&#039;source.html&#039;,&#039;new_win&#039;);&lt;br /&gt;
is still open? If you just use new_win.close(); and the window is already closed, you get a not an object error. If anyone knows, please advise.&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Alan Izat&lt;/p&gt;
 </description>
     <pubDate>Thu, 24 Jun 1999 19:53:00 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1010157 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-windowsdetecting-status-cant-detect-status-opened-window#comment-1010156</link>
    <description> &lt;p&gt;Do you have the new window set as a variable in the script? It might do the trick.&lt;/p&gt;
&lt;p&gt;It would be helpful to see what you have so far, if you could post the script that would be great &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
John Pollock&lt;br /&gt;
&lt;a href=&quot;http://www.pageresource.com&quot; class=&quot;bb-url&quot;&gt;http://www.pageresource.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 19 Jun 1999 02:05:00 +0000</pubDate>
 <dc:creator>John Pollock</dc:creator>
 <guid isPermaLink="false">comment 1010156 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
