Start to learn JavaScript this week. I found a little interesting thing which recall me sth about the difference between XHTML and HTML.
A great deal of attribute in the tags of XHTML are compound words such as borderColor, which is required to written in this way to parse by the browses. However, in HTML, the role is not so much strict, so "bordercolor" is also working if you use it in this way.
The same situation happens in JavaScript environment. The strict type of written type is required to use in terms of the attribute. In this case, borderColor is the correct one.
<script>
var flag=document.getElementById("myinput").ReadOnly;//Corret
var flag=document.getElementById("myinput").Readonly;//False
</script>
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment