I feel a bit confused about keyword naming in js.
Sometimes this is the case: getElementById, indexOf, charCodeAt, parseFloat, navigator. appName, navigator. appVersion/appCodeName/cookieEnable/userAgent give people the feeling that the first letter of a word is capitalized
Sometimes this is the case: fontsize and fontcolor give people the feeling that they are all in lowercase.
But sometimes it looks like this: innerHTML
Can anyone tell me the rule? I don't think I can mix it out for a while. Online answers!
// ***** No one answered after 10 minutes, then I have to add today's content "****************/
Accesskey attributes
Copy codeThe Code is as follows:
<Code class = "tag" style = "color: green; margin: 0px 0.1em; font-size: 14px; background-color: transparent "> </code> <code class =" tag "style =" color: green; margin: 0px 0.1em; font-size: 14px; background-color: transparent "> a </code> id = 'mya' <code class =" attr "style =" color: blue; margin: 0px 0.1em; font-size: 14px; background-color: transparent "> href </code> <code class =" tag "style =" color: green; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">=</code> <code class =" attrvalue "style =" color: red; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">" </code> <code class = "attrvalue" style = "color: red; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">" </code> <code class = "attr" style = "color: blue; margin: 0px 0.1em; font-size: 14px; background-color: transparent "> accesskey </code> <code class =" tag "style =" color: green; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">=</code> <code class =" attrvalue "style =" color: red; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">" </code> <code class = "attrvalue" style = "color: red; margin: 0px 0.1em; font-size: 14px; background-color: transparent "> h </code> <code class =" attrvalue "style =" color: red; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">" </code> <code class = "tag" style = "color: green; margin: 0px 0.1em; font-size: 14px; background-color: transparent ">></a> </code>
The Js Code for modifying or assigning this attribute is: document. getElemntById ('# mya'). accesskey = 'D ';
How to Use accesskey shortcuts in various browsers
IE browser
Press and hold the Alt key, click the shortcut key defined by accesskey (the focus will be moved to the link), and press Enter.
FireFox
Press and hold the Alt + Shift key and click the shortcut key defined by accesskey.
Chrome
Press and hold the Alt key and click the shortcut key defined by accesskey.
Operabrowser
Press Shift and click esc. The list of accesskey keys defined on this page is displayed.
Safari
Press and hold the Alt key and click the shortcut key defined by accesskey.