- From: Eric Frost <eric.frost@mp2kmag.com>
- Date: Wed, 22 Jul 2009 09:00:23 -0500
- To: "Ranney, Jeffrey" <jeffrey.ranney@eds.com>
- Cc: html-tidy@w3.org
- Message-ID: <65d7b8670907220700t355153dfm9c03cff204c07162@mail.gmail.com>
Can you just trap it with an exception? e.g. http://www.devshed.com/c/a/JavaScript/JavaScript-Exception-Handling/ Eric __ http://www.reviewthemovies.com On Tue, Jul 21, 2009 at 9:41 AM, Ranney, Jeffrey <jeffrey.ranney@eds.com>wrote: > I have scoured the web and cannot find out how to do what I want to do… I > am hoping someone can help me with your group. > > I have written a small web page which runs from my hard-drive. > It allows me to put in several(6) websites which I want to check if they > exist. > If the web site exists, I want it to open. > If it doesn't exist, I do not want it to open. > > It is running Java Script to do the opens and currently it simply opens all > 6.. Those pages which get an ERROR, I just manually close. > > The W3.ORG <http://w3.org/> Validator does this kind of thing against one > web page and it simply replies that the web page does not exist. > > The code I have is as follows (on the 5th dataset) : > > if (fnam05 != '') > { > thedsn = theurl+fnam05+"("+mnam+")'"; > window.open(thedsn); > } > > Is there a way to do what I want in Java Script? > > Jeffrey Ranney > Information Specialist Senior > MCS MAC Support > Medicare Part B Shared Systems Claims Processing Maintenance Contract > *EDS*, an HP company > > Phone: 1-717-285-7533 > Mountville, PA > Beeper: 1-877-220-2912 > jeffrey.ranney@eds.com > "Yes We Can" > Please consider the environment before printing anything... > > *CONFIDENTIALITY NOTICE:* * This e-mail message, including any > attachments, is for the sole use of the intended recipient(s) and may > contain EDS Internal or EDS Confidential information. Any unauthorized > review, use, disclosure or distribution is prohibited. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies of the original message.* >
Received on Wednesday, 22 July 2009 14:01:05 UTC