• +91 9723535972
  • info@interviewmaterial.com

Java Script Interview Questions and Answers

Question - How to disable an HTML object ?

Answer - document.getElementById("myObject").disabled = true; To write messages to the screen without using "document.write()" ? Changing the contents of an element is a much better solution. When the method showStatus is invoked it will change the content of the span. ... function showStatus(message) { var element = document.getElementById("mystatus"); element.textContent = message; //for Firefox element.innerHTML = message; //for IE (why can't we all just get along?) return true; } ... Test. ...

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners