
JavaScript
ColorPaper
游侠
展开
-
JavaScript输入输出
二、简单的输入、输出例子 在JavaScript中可以非常方便地实现输入输出信息,并与用户进行交互。1、JavaScript信息的输入 通过使用JavaScript中所提供的窗口对象方法prompt(), 就能完成信息的输入。该方法提供了最简便的信息输入方式,其基本格式如下:转载 2011-07-13 15:04:35 · 575 阅读 · 0 评论 -
JavaScript Timing Events
JavaScript Timing EventsJavaScript Timing EventsWith JavaScript, it is possible to execute some code after a specified time-interval. This i转载 2011-07-17 09:23:18 · 580 阅读 · 0 评论 -
XML DOM - The Node Object
XML DOM - The Node ObjectThe Node ObjectThe Node object represents a single node in the document tree.A node can be an element node, an attr转载 2011-07-17 09:56:36 · 578 阅读 · 0 评论 -
XML DOM - The Element Object
The Element objectThe Element object represents an element in an XML document. Elements may contain attributes, other elements, or text. If转载 2011-07-17 10:27:16 · 623 阅读 · 0 评论 -
HTML DOM Nodes
In the DOM, everything in an HTML document is a node.DOM NodesAccording to the DOM, everything in an HTML document is a node.The DOM says:Th转载 2011-07-17 10:46:29 · 731 阅读 · 0 评论 -
大话HTML DOM与XML DOM的区别与联系
本文内容的主题便是,为什么开发者要认为“DOM Level 1规范的架构”是至关重要的,其突出的重要性在哪里等等,以及还有HTML DOM和XML DOM之间微妙的区别及内在的联系。51CTO推荐阅读:XML DOM新手入门指南W3C所制订的DOM Level分为两大模块:Cor转载 2011-07-17 11:00:05 · 576 阅读 · 0 评论 -
HTML DOM Properties and Methods
Properties and methods define the programming interface of the HTML DOM.Programming InterfaceIn the DOM, HTML documents consist of a set of转载 2011-07-17 11:03:12 · 586 阅读 · 0 评论 -
HTML DOM Node Information
HTML DOM Node InformationThe nodeName, nodeValue, and nodeType properties contain information about nodes.Node PropertiesIn the HTML DOM, ea转载 2011-07-17 11:16:53 · 1030 阅读 · 0 评论 -
What is the difference between DHTML and the DOM?
What is the difference between DHTML and the DOM?Dynamic HTML (DHTML) is a term used by some vendors to describe the combination of HTML, st转载 2011-07-17 11:29:54 · 515 阅读 · 0 评论 -
HTML DOM HTMLElement Object
HTMLElement ObjectThe following collections, properties, and methods can be used on all HTML elements.HTMLElement CollectionsW3C: W3C Standa转载 2011-07-17 21:31:23 · 832 阅读 · 0 评论 -
JavaScript Variables
Variables are "containers" for storing information.Do You Remember Algebra From School?Do you remember algebra from school? x=5, y=6, z=x+yD转载 2011-07-16 16:29:48 · 677 阅读 · 0 评论 -
JavaScript Array Object
Create an arrayCreate an array, assign values to it, and write the values to the output.(You can find more examples at the bottom of this pa转载 2011-07-16 20:20:41 · 1475 阅读 · 0 评论 -
JavaScript Math Object
JavaScript Math ObjectMath ObjectThe Math object allows you to perform mathematical tasks.Math is not a constructor. All properties/methods转载 2011-07-16 22:13:51 · 488 阅读 · 0 评论 -
Document write() Method
Definition and UsageThe write() method writes HTML expressions or JavaScript code to a document.Syntaxdocument.write(exp1,exp2,exp3,...)Para转载 2011-07-17 09:39:19 · 486 阅读 · 0 评论 -
XML DOM childNodes Property
XML DOM childNodes PropertyDefinition and UsageThe childNodes property returns a NodeList of child nodes for the specified node.SyntaxnodeOb转载 2011-07-17 10:05:45 · 489 阅读 · 0 评论 -
XML DOM Get Node Values
XML DOM Get Node ValuesThe nodeValue property is used to get the text value of a node.The getAttribute() method returns the value of an attr转载 2011-07-17 10:32:35 · 804 阅读 · 0 评论 -
HTML DOM Button Object
Button ObjectThe Button object represents a push button.For each tag in an HTML document, a Button object is created.Inside an HTML button转载 2011-07-17 21:39:15 · 643 阅读 · 0 评论 -
JavaScript For...In Statement
JavaScript For...In StatementJavaScript For...In StatementThe for...in statement loops through the properties of an object.Syntaxfor (variab转载 2011-07-17 09:10:38 · 564 阅读 · 0 评论 -
JavaScript String Object
String ObjectThe String object is used to manipulate a stored piece of text.String objects are created with new String().Syntaxvar txt = new转载 2011-07-16 21:11:49 · 648 阅读 · 0 评论 -
在一个js文件中包含另一个js文件的方法
源自:http://blog.youkuaiyun.com/precipitant/article/details/498130---------a.htm--------- jin();liu();--------a.js--------document.write("");func转载 2011-07-13 17:09:16 · 575 阅读 · 0 评论 -
javascript常用检测脚本_javascript教程
/*-------------------------------------------------------------------------------文件名称:check.js说明:JavaScript脚本,用于检查网页提交表单的输入数据版本:1.0*/ /*用途:校转载 2011-07-13 15:33:46 · 566 阅读 · 0 评论 -
JavaScript How To
The HTML tag is used to insert a JavaScript into an HTML page.Writing to The HTML DocumentThe example below writes a element with current转载 2011-07-16 16:12:52 · 428 阅读 · 0 评论 -
JavaScript Guidelines
JavaScript GuidelinesSome other important things to know when scripting with JavaScript. JavaScript is Case SensitiveA function named "myfun转载 2011-07-16 16:42:53 · 473 阅读 · 0 评论 -
Document getElementsByName() Method
Definition and UsageThe getElementsByName() method accesses all elements with the specified name.Syntaxdocument.getElementsByName(name)Param转载 2011-07-17 09:43:33 · 514 阅读 · 0 评论 -
XML DOM - The NodeList Object
XML DOM - The NodeList ObjectThe NodeList object represents an ordered list of nodes.The NodeList objectThe nodes in the NodeList can be acc转载 2011-07-17 10:07:38 · 702 阅读 · 0 评论 -
XML DOM Node Types
The DOM presents a document as a hierarchy of node objects. Try it Yourself - ExamplesThe examples below use the XML file books.xml. A funct转载 2011-07-17 10:12:50 · 633 阅读 · 0 评论 -
HTML DOM Introduction
The HTML DOM defines a standard for accessing and manipulating HTML documents.What You Should Already KnowBefore you continue you should hav转载 2011-07-17 10:40:46 · 531 阅读 · 0 评论 -
HTML DOM Document Object
HTML DOM Document ObjectDocument ObjectEach HTML document loaded into a browser window becomes a Document object.The Document object provide转载 2011-07-17 21:10:53 · 579 阅读 · 0 评论 -
HTML DOM Event Object
Event ObjectEvents are actions that can be detected by JavaScript, and the event object gives information about the event that has occurred.转载 2011-07-17 21:20:16 · 655 阅读 · 0 评论 -
HTML DOM onload Event
Definition and UsageThe onload event occurs immediately after a page or an image is loaded.Syntaxonload="JavaScriptCode"ParameterDescription转载 2011-07-17 21:23:20 · 726 阅读 · 0 评论 -
JavaScript Introduction
JavaScript IntroductionJavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet转载 2011-07-16 16:06:50 · 617 阅读 · 0 评论 -
JavaScript Where To
JavaScript Where ToJavaScripts can be put in the and in the sections of an HTML page.JavaScript in The example below writes the current da转载 2011-07-16 16:21:47 · 567 阅读 · 0 评论 -
JavaScript Popup Boxes
JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box.Alert BoxAn alert box is often used if you want to make sur转载 2011-07-16 16:35:33 · 3185 阅读 · 0 评论 -
JavaScript RegExp Object
RegExp, is short for regular expression.Complete RegExp Object ReferenceFor a complete reference of all the properties and methods that can转载 2011-07-16 17:46:44 · 680 阅读 · 0 评论 -
Programmer's Guide to Regular Expressions
Programmer's Guide to Regular ExpressionsCredits: This tutorial is written by David Andersson (Liorean). Please see footnote for more inform转载 2011-07-16 18:16:41 · 615 阅读 · 0 评论 -
Body onload Event
Body onload EventBody ObjectDefinition and UsageThe onload event occurs immediately after a page is loaded.Syntaxonload="JavaScriptCode"Para转载 2011-07-19 17:21:37 · 602 阅读 · 0 评论