I have a page that lists links to files on the clients local network, and when clicked on, the link launches a new browser window using
function openLocalFile( fileName )
var hwin = window.open( fileName, etc, etc );
// Insert some sort of test here to check if the page loaded or if
// an error was encountered loading the page.
I would like to be able to check if the window.open actually opened the document, or if a "The page cannot be displayed" error or such has been encountered. Ideally, then I could return my own error page so I can display a more informative message that fits the look and feel of my site.