hey guys ..im new to javascript ..
i hav a validation function which alerts by showin error ..bt wen der is no error i want to continue to my next form ..ie a html page ..i tried to check on error bt stil its nt redirectin .. .
waitin for ur solutions ..

Recommended Answers

All 2 Replies

This is a Java forum and Javascript seems off topic here,

Anyways in your validation function when you find no errors, just tell java script to submit your form by mentioning:-

document.<your form name>.submit();

Provided you have set the action property of your form tag, else set the action property first by issuing

document.<your form name>.action="relative/absolute url of next page";

hey stephens thnx a lot ..its wrking !!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.