Nhập môn HTML các đối tượng cơ bản trong java

35 305 0
Nhập môn HTML các đối tượng cơ bản trong java

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... type="text" name="txtKQ" /> < /html> ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ DOM Example var oHtml = document.documentElement; var oHead = oHtml.firstChild; var oBody = oHtml.lastChild; alert(oHead.nodeName); //outputs “HEAD” alert(oBody.parentNode == oHtml); //outputs “true” ... language="javascript" type="text/javascript"> var str = String("Xin chào"); document.write(str.length); document.write(str.big()); document.write(str.blink()); document.write(str.fontcolor("#FFBBDD")); document.write(str.strike()); document.write(str.sub()); ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ... oHtml); //outputs “true” Hello World! You’re learning to use the DOM! < /html> ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ alert(document.title); ⊄ ⊄ ⊄ ⊄ ⊄ function computer(form) { form.txtKQ.value = eval(form.txtBT.value);} DOM Example < /html> . language="javascript"> var oHtml = document.documentElement; var oHead = oHtml.firstChild; var oBody = oHtml.lastChild; alert(oHead.nodeName); //outputs “HEAD” alert(oBody.parentNode == oHtml);. chào"); document.write(str.length); document.write(str.big()); document.write(str.blink()); document.write(str.fontcolor( "#FFBBDD")); document.write(str.strike()); document.write(str.sub()); </script>   ⊄ ⊄ ⊄  ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄ ⊄  < ;html xmlns="http://www.w3.org/1999/xhtml"> < head> < title></title> < script language="javascript" type="text/javascript"> function dientich(r).      ⊄ ⊄   ⊄  ⊄ this.property < ;html xmlns="http://www.w3.org/1999/xhtml"> < head> < title></title> < script language= "JavaScript" type="text/javascript"> function displayName(name)

Ngày đăng: 29/04/2014, 09:45

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan