logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How to Accessing Elements using javascript?


  • Correct Answer
  • The elements of JavaScript are accessed by their names By default the browser is accessed by the element ?windows? and the page by ?document? The corresponding element has user defined names for forms and its elements For example var pwd = windowsdocumentfrmLoginpasswordvalue; assigns the value of the password field of the form fromLogin in the current document, where password is the name of the element and frmLogin is the name of the form Like wise any form element is accessed 


  • Technology problems


    Search Results


    • 1. Where are cookies actually stored on the hard disk?
    • Discuss
    • 2. What is the difference between Client side JavaScript and Server side JavaScript.
    • Discuss
    • 3. JavaScript vs. Jscript
    • Discuss
    • 4. What are the advantages of the external over inline style methods?
    • Discuss
    • 5. What is the use of Media Types in CSS?
    • Discuss
    • 6. How to set the cursor to wait in JavaScript?
    • Discuss
    • 7. What is decodeURI(), encodeURI() in JavaScript?
    • Discuss
    • 8. What are windows object and navigator object in JavaScript?
    • Discuss
    • 9. What does isNaN function do?
    • Discuss
    • 10. How to read and write a file using javascript?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment