Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading a specific page on error

Status
Not open for further replies.

joeward

Programmer
Jan 5, 2001
1
US
I'm writing a web navigation app for offline browsing, the main page uses 2 frames. I have a menu of links in one frame and a viewer in the other frame. What I need to be able to do is have a default file load in the viewer frame in the event that a link in the link frame contains a bad url. I don't want to use PWS or any other web server to do this. I'm thinking there may be a way to do this with javascript. Basically I need to validate all links before loading them.
 
if you have an object in the page that you want to load you can check for it,

if(parent.frames[1].knownobj)
{

}
else
{
parent.frames[1].location = "page.htm");
} adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top