TAILIEUCHUNG - the book of javascript 2nd edition p10

Javascript là một ngôn ngữ thông dịch (interpreter), chương trình nguồn của nó được nhúng (embedded) hoặc tích hợp (integated) vào tập tin HTML chuẩn. Khi file được load trong Browser (có support cho JavaScript), Browser sẽ thông dịch các Script và thực hiện các công việc xác định. | Methods reset FF IE 4 Resets the elements of a form as if a visitor clicked a reset button Example submit FF IE 3 Submits the form as if a visitor clicked a submit button except that the onSubmit handler is not called when the submit method is invoked Handlers onReset FF IE 3 Triggered when a form is reset onSubmit FF IE 3 Triggered when a form is submitted. Executing return false inside a submit handler stops submission of the form to the CGI script. Example FORM onSubmit if formNotDone this return false This calls the function formNotDone on the form. If the function returns true the if-then statement returns false and the form is not submitted. Note that formNotDone is not a built-in JavaScript function. See Chapter 11 for more information on form validation. Hidden An invisible form element that can store values on a web page without the visitor seeing them useful for sending secret information to a CGI script. Properties name FF IE 3 Name of a hidden element value FF IE 3 Value of a hidden element For example a nice person will set the value of the hidden element named my_hidden to a nice person. If the form is subsequently sent to a CGI script the value will be passed along. History The history of URLs visited by the visitor s browser. 426 Appendix C Properties length FF IE 4 Number of URLs in the history list Methods back FF IE 3 Returns to the previous page like clicking the browser s back button Example forward FF IE 3 Advances to the next page like clicking the browser s forward button Example go FF IE 3 Takes one parameter the number of URLs to advance positive values or go back negative values . In IE 3 the parameter can be only -1 0 or 1. Example -2 HTMLElement FF IE 4 All HTML elements images links forms and form elements are considered objects. Properties all FF IE 4 Read-only Array holding all the elements the element contains attributes .

Đã 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.