Home > Web Front-end > JS Tutorial > Introduction to questions about js keyword naming_basic knowledge

Introduction to questions about js keyword naming_basic knowledge

WBOY
Release: 2016-05-16 16:51:14
Original
1513 people have browsed it

I feel a little confused about the naming of keywords in js

Sometimes it is like this: getElementById, indexOf, charCodeAt, parseFloat, navigator.appName, navigator.appVersion/appCodeName/cookieEnable/userAgent, which gives the impression that it is the first letter of the word. Uppercase

Sometimes it looks like this: fontsize, fontcolor gives the impression that they are all lowercase

But sometimes it looks like this: innerHTML

Can anyone tell me about this? Is there any pattern? I think if I don’t use it for a while, it will get lost. Waiting for answers online!

//*****After waiting for 10 minutes and no one answered, I had to continue adding today's content"****************/

accesskey attribute

Copy code Code As follows:

<< /code><code class="tag" style="color:green; margin:0px 0.1em; font-size:14px; background-color:transparent">a id='mya' < code class="attr" style="color:blue; margin:0px 0.1em; font-size:14px; background-color:transparent">href="" accesskey="h"&gt ;</a>

The Js code to modify or assign this attribute is: document.getElemntById('#mya').accesskey='d';

How to use accesskey shortcut keys in various browsers

IE browser

Hold down the Alt key, click the shortcut key defined by accesskey (the focus will move to the link), and then press back Car.

FireFox browser

Hold the Alt Shift key and click the shortcut key defined by accesskey.

Chrome browser

Hold the Alt key, Click the shortcut key defined by accesskey.

Opera browser

Hold down the Shift key and click esc, and a list of accesskey shortcut keys defined on this page will appear for selection.

Safari Browser

Hold down the Alt key and click the shortcut key defined by accesskey.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template