I have a requirement where i have a form, Input text and a button. On button click i need to call two URL on condition. Is this possible through JavaScript.
For example -
When i click button, if the input text is India the URL should go to http://google.co.in
If the input text is UK the URL should go to http://google.co.uk
What are the ways we can implement this requirement.
<form name="inputform" action="somewhere" method="post">
<input type="text" value="" />
<input type="button" />
</form>
Thanks in Advance Regards