Are Attributes and Property the same?



Are Attributes and Property the same?..

Answer / Asheesh Kumar Pandey

No, attributes and properties are not the same in JavaScript. HTML elements have attributes which serve as their initial property values. However, properties can be changed dynamically through JavaScript while attributes cannot be directly modified.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is var and let in javascript?

1 Answers  


What would you use javascript for?

1 Answers  


What is the use of blur function?

1 Answers  


How to setting a cookie with the contents of a textbox?

0 Answers  


Is not a function error in javascript?

1 Answers  


What does break and continue statements do in javascript?

1 Answers  


What is the use of dom?

1 Answers  


How we can add title of the page by javascript?

1 Answers  


What is difference between java and javascript?

1 Answers  


Should you disable javascript?

1 Answers  


How do you convert numbers between different bases in JavaScript?

4 Answers   College School Exams Tests, Satyam, UIST, Wipro,


Is javascript a dynamic language?

1 Answers  


Categories