window open and page not found message
<p>I am using  window.open("text.html");   to open up file in window.  </p>

<p>I want to  open another window if first request to window.open is failed ie Page cannot be found message.</p>

<p>like below</p>

<p>if window.open("text.html") = "Page cannot be found" then
   window.open("message.html"</p>

<p>Regards</p>
