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!

locating an anchor in Dreamweaver using vbscript

Status
Not open for further replies.

stan8450

Programmer
May 3, 2002
16
CA
On Submit of a form button, I have validated for a text box to be populated by a result from a calculator. If they have not used the calculator to populate the text box, I would like the user to be directed back to the calculator(anchor) on the page. I could just reload the page but then the user would lose all their data that they have already entered on the form.

So far I have this and it isn't working

if document.orderform.House_Age.value = "" then
alert "Please take advantage of the Fee ."
window.location.href = ("top")
end if

thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top