Lecture Introduction to web engineering - Lec 20: Introduction to Java script

After studying this chapter you will be able to understand: What is JavaScript? embedding javascript with HTML, javascript conventions, variables in javascript, javascript operators, input output in javascript, javascript functions, conditional statements, looping statements. | Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 1 What is JavaScript? Embedding JavaScript with HTML JavaScript conventions Variables in JavaScript JavaScript operators Input output in JavaScript JavaScript functions Conditional Statements Looping Statements Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 2 JavaScript is a client-side scripting language JavaScript was designed to add interactivity to HTML pages JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 3 JavaScript is an interpreted language (means that scripts execute without preliminary compilation) JavaScript is usually embedded directly into HTML pages Everyone can use JavaScript without purchasing a license Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 4 JavaScript is the most . | Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 1 What is JavaScript? Embedding JavaScript with HTML JavaScript conventions Variables in JavaScript JavaScript operators Input output in JavaScript JavaScript functions Conditional Statements Looping Statements Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 2 JavaScript is a client-side scripting language JavaScript was designed to add interactivity to HTML pages JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 3 JavaScript is an interpreted language (means that scripts execute without preliminary compilation) JavaScript is usually embedded directly into HTML pages Everyone can use JavaScript without purchasing a license Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 4 JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, Opera Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 5 JavaScript gives HTML designers a programming tool JavaScript can react to events JavaScript can read and write HTML elements JavaScript can be used to validate data JavaScript can be used to detect the visitors browser JavaScript can be used to create cookies Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 6 There are two methods to embed JavaScript in to HTML code Internal Script: directly written in HTML code External Script: written in separate file tag is used to tell the browser that a script follows Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 7 The tag is used to embed JavaScript code in HTML documents [JavaScript Statements.] JavaScript can be .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
15    21    4    28-11-2024
Đã 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.