21. Sound
1, can play the sound of the browser (audio-enabled Browsers)
Q: What can a browser do to play a sound script.
A: If the technology described in sound playback can work in Miscrosoft Internet Explorer 4.0 and its newer version, then you
v. Dialog box
1. Warning (alert)
Q: How do I generate a warning message from JavaScript?
A: To generate a warning message, you can use the alert () method:
Alert (' message goes here ');
The buttons above are created by the following code:
Warning (alert)
Did you ever get into a situation like this when you visit a website? "Boom", a small window appears in front of you, with a piece of warning text written, or other information. If you don't click OK, you won't be able to do
1. New Date (DATESTR): Converts a string to a Date objectParameters:
①datestr {string}: A string that can be converted to a Date object (can be omitted); There are two main types of strings:
1) yyyy/mm/dd HH:mm:ss: If the time is omitted, the time
JavaScript isNaN (VAR) function, returns a Boolean valueUsed to determine if VAR is a non-numeric value, if the Non-numeric value returns True, or False if it is not.
Cases:var intnum = 4;var floatnum = 3.1415;var str1 = "I am a student";var obj=
Object
Objects are the core of our use of JavaScript. Objects in JavaScript are similar in many ways to objects in the real world outside of programming (it doesn't exist, I just assume). In the real world, an object is a "thing" (many of the
A brief analysis of the writing method of four kinds of more common JavaScript declaration loop variables
This article mainly first contained four kinds of declarations of the circular variable of writing, about its holding a complex analysis
In JavaScript, if you bind the click and double click events on an element at the same time, the program responds to a double click event in response to a single double-click, and two clicks. In principle this should be correct, but in development
Replicated on the Internet is to understand the method of debugging but still do not understand the role of debugging
The most basic operations are:
1, first set a breakpoint in a Java file, then run, and when the program goes to the breakpoint, it
Introduction to JavaScript Development ToolkitJavaScript Eclipse Plug-ins to help you improve JavaScript productivity is in the corner
Lead: http://www.ibm.com/developerworks/cn/opensource/os-eclipse-jsdt/
With the rise of JavaScript frameworks such as JQuery, Mootools, and Prototype, WEB developers have created many amazing effects based on these frameworks. The following 50 sites are all based on JavaScript and have the same gorgeous effect as Flash.
JavaScript 30 Day daily effect chart
On the GitHub saw a Wesbos Javascript30 Day Challenge Repo, designed to use pure JS to practice, not allowed to use any other library and framework, the challenge for a total of 30 days, I will be here to
19. Client Information
1, browser name (Browser name)
Q: How do I detect the browser name.
A: to get the actual name of the user's browser, you can use the Navigator.appname and Navigator.useragent properties. The UserAgent property is more
Events are used to describe a particular interesting moment in a Web page, which is usually triggered when the user interacts with the browser, but in fact, JavaScript can trigger specific events at any time, and these events are the same as the
Reprint Link
This article has been transferred from Nanyi's technical blog: JavaScript Modular Programming: A preface to the module
JavaScript modular programming has become an urgent requirement. Ideally, developers only need to implement the core
JS: The scripting language of the browserJS Basic syntaxJS Dom operation1, the wording classification(1) inline (in-line)Written in the label, in the form of an attribute, the property name is the event property nameExample: (2) embeddedwritten in
DOCTYPE HTML>HTMLLang= "en">Head> MetaCharSet= "UTF-8"> title>Multiple H5 player Video how to play pausetitle>Head>Body> Videosrc= "Http://img.tianxiang.com/d/2018/06/5b1a45f89f96b.mp4"Controls= "Controls">Video> Videosrc=
JavaScript common built-in objects 1. How array Array1.1 arrays are created// create an array directly var colors = [' Red ', ' blue ', ' green 'typeof(colors)); // using constructors to create arrays with the New keyword var New Array ();
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