Introduction to question about js keyword naming

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.