Interview question - 1
<form name="f1" method="post" action="">
<input type="submit" name="submit" value="submit">
On submiting the form how can I get all the sorces (i.e. google, yahoo,hotmail) one after another using js?
If you need to ask here, then you're not qualified for the job.
PS - none of the items within the form (other than the submit button) are form elements.
You have failed the interview. Go back to school.
You need to know about the Document Object Model to get at those elements. You also need to learn to use a for loop.
There are plenty of tutorials on the web. This is bread and butter stuff....you're better off learning yourself rather than having us give you the code.