SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Jun 2006
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Interview question - 1

    <form name="f1" method="post" action="">
    <a href="google.com">google.com</a>
    <a href="yahoo.com">yahoo.com</a>
    <a href="hotmail.com">hotmail.com</a>

    <input type="submit" name="submit" value="submit">

    </form>

    On submiting the form how can I get all the sorces (i.e. google, yahoo,hotmail) one after another using js?

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,608
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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.
    Ian Anderson
    www.siteguru.co.uk

  3. #3
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have failed the interview. Go back to school.


  4. #4
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    good luck


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •