I have just stumbled upon the following webpage and am somewhat intrigued by the use of the in
keyword.
http://diveintohtml5.ep.io/examples/input-autofocus-with-fallback.html
- Is this valid JavaScript?
- Do all browsers accept this?
- How does it actually work?
They are using this syntax for fallback when web browser doesn't support the autofocus
attribute. So this would lead me to believe that this syntax is valid.