Javascript redirect with certain information?

I would like my how do people redirect to another url if a particular identify is entered proper form.Is possible with javascript, if you have, how, just in case not, exactly what alternatives will be there

var appoint = insurance policy.getElementById( “formName” ).cost;

if( appoint == “John Doe” )
eye-port.location.href = “http://www.yahoo.com”;

is redierect is usually goof.

Leave a Reply