« Home « Chủ đề ngôn ngữ javascript

Chủ đề : ngôn ngữ javascript


Có 20+ tài liệu thuộc chủ đề "ngôn ngữ javascript"

Tổng quan về Javascript

tailieu.vn

Hướng đối tượng (Object Oriented).. Các đối tượng được cung cấp bởi môi trường Netscape.. Các đối tượng được cung cấp bởi môi trường Netscape:. Đối tượng Mô tả. Các đối tượng do người lập trình xây dựng:. Định nghĩa thuộc tính của đối tượng: (Object Properties). Thêm các phương pháp cho đối tượng:( Method to Object). Tạo một instance...

NGÔN NGỮ JAVASCRIPT

tailieu.vn

N m đ ắ ượ c các đ i t ố ượ ng c a Javascript : window, document ủ. in dùng đ l p qua t t c các thu c tính c a m t đ i t ể ặ ấ ả ộ ủ ộ ố ượ ng (hay l p qua t t c các ph n...

Giáo trình DCCT Javascript (Nghề: Công nghệ thông tin - Cao đẳng) - Trường CĐ nghề Kỹ thuật Công nghệ

tailieu.vn

Các đối tượng Javascript. Đối tượng. Cách dùng đối tượng. Đối tượng String. Đối tượng Math. Đối tượng Date. 4.2.Đối tượng window. Đối tượng Document. Đối tượng History. Đối tượng Location. Đối tượng Form. Đối tượng Command Button. Đối tượng Checkbox. Đối tượng Radio Button. Đối tượng ComboBox/Select. Các đối tượng Javascript 2. Đối tượng String 5. Đối tượng Math...

Ngôn ngữ Javascript

tailieu.vn

Ngôn Ngôn ng ng ữ ữ Javascript Javascript. 9 JavaScript có thể tăng cường tính động và tính tương tác của các trang web.. 9 Sử dụng quy tắc chữ hoa 9 Using Pairs. Công Công c c ụ ụ v v à à môi môi trư trư ờ ờ ng ng th th ự ự c c thi thi....

JavaScript Bible, Gold Edition part 215

tailieu.vn

method, TABLE element object, 640. curly braces, CD-54–CD-55. comparison operators conversion, CD-40–CD-42. date entries, forms, 983–986 Date object, 969–986, CD-94–CD-96. calculations, CD-96–CD-97 creating, 969–971. DD element object, 662–663 debugging scripts. decimal numbers, converting to hexadecimal, 954–955 Decision Helper, CD-6–CD-6. navigation bars and, CD-104–CD-105 decision helper application decisions, CD-47–CD-48. defaultCharset property, document object, 358. deferred scripting, CD-28–CD-30 dynamic tables and, 1286....

JavaScript Bible, Gold Edition part 2

tailieu.vn

x JavaScript Bible, Gold Edition. Eventually they demanded that the browser support what is now known as “Dynamic HTML” (one fun link: http://www.javascript-games.org/. The primacy of JavaScript on the Web today vindicates our early belief in the value of a scripting language for HTML authors. Perhaps the ultimate example of Web develop- ment’s convergence with application development is the Mozilla...

JavaScript Bible, Gold Edition part 3

tailieu.vn

CD-47 Chapter 8: Window and Document Objects. Chapter 15: Generic HTML Element Objects. Chapter 8: Window and Document Objects. Document Objects. FRAME Element Object. FRAMESET Element Object. IFRAME Element Object. BODY Element Object. BLOCKQUOTE and Q Element Objects. BR Element Object. FONT Element Object. H1...H6 Element Objects. HR Element Object. LABEL Element Object. MARQUEE Element Object. HTML Element Object. HEAD...

JavaScript Bible, Gold Edition part 4

tailieu.vn

Chapter 4 Answers. Chapter 5 Answers. Chapter 6 Answers. Chapter 7 Answers. Chapter 8 Answers. Chapter 9 Answers. It’s the enormous popularity of the Web and the accessibility of the technologies to everyday folks who have intriguing ideas that has led to an unprecedented explosion in turning the World Wide Web from a bland publishing medium into a highly inter-...

JavaScript Bible, Gold Edition part 5

tailieu.vn

Competition on the Web. Web page publishers revel in logging as many visits to their sites as possible.. Regardless of the questionable accuracy of Web page hit counts, a site consistently logging 10,000 dubious hits per week is clearly far more popular than one with 1,000 dubious hits per week. Not only is the Web like a ten million-channel television,...

JavaScript Bible, Gold Edition part 6

tailieu.vn

Core language standard. The first version of JavaScript (in Navigator 2) was Version 1.0, although that numbering was not part of the lan- guage usage. As you will learn later in this book, the version number is sometimes necessary in an attribute of the HTML tags that surround a script. The first version of Internet Explorer to include scripting was...

JavaScript Bible, Gold Edition part 7

tailieu.vn

Below the rule, the script displays plain body text that combines static text with information about the browser you use to load the document. The script writes a stream of HTML information to the browser, including a tag to render a portion of the information in boldface. If the browser’s Stop button is active, click it to halt any network...

JavaScript Bible, Gold Edition part 8

tailieu.vn

can grab a snapshot of the date and time of the client’s system clock or create a date object for dates in the past or future. One of the strengths of a scriptable browser is that scripts facilitate the manage- ment of multiple frames far better than server-based applications. For example, you can script a link in one frame of...

JavaScript Bible, Gold Edition part 9

tailieu.vn

Notice in Figure 4-6 that objects are grouped together in various levels desig- nated by the density of the gray background. Reporting to the president are several vice presidents. One of the vice presidents manages a sales force that is divided into geographical regions.. Each region has a manager who reports to the vice president of sales. If the president...

JavaScript Bible, Gold Edition part 10

tailieu.vn

document.orderForm.submit() document.orderForm.entry.select(). Two script statements invoked the write() method of the document object:. document.write(“This browser is version. navigator.appVersion) document.write(“ of <B>. navigator.appName + “</B>.”). As the page loaded into the browser, each document.write() method sent whatever text was inside the parentheses to the current document. In both cases, the content being sent as a parameter consisted of straight text (inside...

JavaScript Bible, Gold Edition part 11

tailieu.vn

<SCRIPT LANGUAGE=”JavaScript”>. <INPUT TYPE=”text” NAME=”entry”>. <INPUT TYPE=”button” NAME=”oneButton” VALUE=”Press Me!”. Not every object must have an event handler defined for it in the HTML, as shown in Listing 5-8 — only the ones for which scripting is needed. The alertUser() function is defined as the page loads, and it waits to run as long as the page remains loaded in...

JavaScript Bible, Gold Edition part 12

tailieu.vn

I mentioned earlier that the type of data in an expression can trip up some script operations if the expected components of the operation are not of the right type.. You can begin experimenting with the way JavaScript evaluates expressions with the help of The Evaluator Jr. Using the age variable examples from earlier in this chapter, type each of...

JavaScript Bible, Gold Edition part 13

tailieu.vn

Once that condition is met, the script can then break out of the loop and continue with the next statement after the loop construction.. A for loop is a powerful device because you can set it up to keep track of the number of times the loop repeats itself. The formal syntax of the for loop is as follows:. The...

JavaScript Bible, Gold Edition part 14

tailieu.vn

Given the following table of data about several planets of our solar system, create a Web page that enables users to enter a planet name and, at the click of a button, have the distance and diameter appear either in an alert box or (as extra credit) in separate fields of the page.. Starting with this lesson, the tutorial turns...

JavaScript Bible, Gold Edition part 15

tailieu.vn

If you want a preview of the document object prop- erties of the browser you’re using, enter document into the bottom text box of The Evaluator Jr. The object’s properties and current values appear in the Results box.. document.forms[] property. One of the object types contained by a document is the FORM element object.. Because conceivably there can be more...

JavaScript Bible, Gold Edition part 16

tailieu.vn

<SCRIPT LANGUAGE=”JavaScript”>. alert(“The box is checked.”). <INPUT TYPE=”checkbox” NAME=”checkThis”>Check here<BR>. <INPUT TYPE=”button” VALUE=”Inspect Box” onClick=”inspectBox()”>. To let the browser manage the highlighting and unhighlighting of a related group of but- tons, you must assign the same name to each of the buttons in the group. You can have multiple groups within a form, but each member of the same group...