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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking that a folder exists

Status
Not open for further replies.

Coogan

Programmer
Jun 21, 2004
38
GB
Can anyone help me with this 'If then else' statement.

I want to check that a folder exists and if it does then it opens that folder in a new window and if it doesn't exist then I want it to open an error page in the current window.

Code:
if (this.form.url.value exists) then window.open( this.form.url.value) else document.location = 'error.htm';

I am trying to figure out the (this.form.url.value exists) code. Can anyone help??

 
Sorry this post is in the wrong forum...

My mistake....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top