Very simply, I have a top level webpage that is used to open other webpages <input type="text" name=PageName ID=pname value="123456" size=12> <input type=button value="Open Page" onClick="window.location.href='http://servername/folder/' + pname.value + '/index.html'"> </form> It works for what I want, but if I choose a page name that does not exist, I get the all-mighty 404. I'm not a web dev, so this isn't my particular area of specialty. I read about doing it server side, but I would really rather avoid that. Anyone have any suggestions for how to implement a simple URL check into the onClick event to verify the webpage referenced by window.location.href exists? If it exists, it is opened. If it does not exist, it spits out an error message and does nothing. TIA