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.
I am trying to figure out the (this.form.url.value exists) code. Can anyone help??
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??