TAILIEUCHUNG - Tự học HTML và CSS trong 1 giờ - part 49

Tham khảo tài liệu 'tự học html và css trong 1 giờ - part 49', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 456 LESSON 15 Using JavaScript in Your Pages Summary This lesson demonstrated a number of common tasks associated with programming in JavaScript. It illustrated how to access the values in forms and check them for errors. It also explained how you can manipulate the styles on a page and even the contents of a page using JavaScript. The final two examples were written in a style referred to as unobtrusive JavaScript which involves writing JavaScript in such a way that the page still works even if the user has disabled JavaScript or their browser does not offer JavaScript support. JavaScript is used to enhance the user s experience but the functionality of the page is not dependent on JavaScript. This approach is generally favored as the preferable way to write JavaScript these days. It separates JavaScript code from the markup on the page and ensures support for the largest number of users including users with mobile browsers that may not support JavaScript functionality. In the next lesson I demonstrate how to perform some of the same kinds of tasks as I did in this lesson using the popular JavaScript library jQuery and explain the role jQuery and other libraries like it can play in making it easier to add JavaScript functionality to web pages. Workshop The following workshop includes questions a quiz and exercises related to the uses of JavaScript. Q A Q Can you point me in the direction of more scripts that I can integrate with my pages A Sure there are lots of sites with prepackaged JavaScript programs that you can use on your pages. You might try The JavaScript Source at http or at http . Q Is there a way to incorporate form validation into my page so that errors are displayed in the form rather than in a pop-up A Yes using the techniques shown in the other examples in this lesson you could modify the document itself when validating the form. The trick is to modify the DOM after validating the values as

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.