DOM and Events

Branch Manager at Information Technology Institute (ITI) em Information Technology Institute (ITI)
4 de Jan de 2013
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
DOM and Events
1 de 53

Mais conteúdo relacionado

Mais procurados

  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object ModelWebStackAcademy
XmlXml
XmlSantosh Pandey
Javascript dom eventJavascript dom event
Javascript dom eventBunlong Van
Python pandas LibraryPython pandas Library
Python pandas LibraryMd. Sohag Miah
Introduction to HTML5 CanvasIntroduction to HTML5 Canvas
Introduction to HTML5 CanvasMindy McAdams
 JavaScript - Chapter 8 - Objects JavaScript - Chapter 8 - Objects
JavaScript - Chapter 8 - ObjectsWebStackAcademy

Similar a DOM and Events

Web 6 | JavaScript DOMWeb 6 | JavaScript DOM
Web 6 | JavaScript DOMMohammad Imam Hossain
Java scriptJava script
Java scriptYoga Raja
INTRODUCTION TO DOM AND DOM TREEINTRODUCTION TO DOM AND DOM TREE
INTRODUCTION TO DOM AND DOM TREEsystematiclab
Java Script and HTML.Java Script and HTML.
Java Script and HTML.Akshat Vig
FYBSC IT Web Programming Unit III  Document ObjectFYBSC IT Web Programming Unit III  Document Object
FYBSC IT Web Programming Unit III Document ObjectArti Parab Academics
12. session 12   java script objects12. session 12   java script objects
12. session 12 java script objectsPhúc Đỗ

Mais de Julie Iskander

HTML 5HTML 5
HTML 5Julie Iskander
Data structures and algorithmsData structures and algorithms
Data structures and algorithmsJulie Iskander
C for EngineersC for Engineers
C for EngineersJulie Iskander
Design Pattern lecture 3Design Pattern lecture 3
Design Pattern lecture 3Julie Iskander
ScriptaculousScriptaculous
ScriptaculousJulie Iskander
Prototype FrameworkPrototype Framework
Prototype FrameworkJulie Iskander

Último

Easy Salesforce CI/CD with Open Source Only - Dreamforce 23Easy Salesforce CI/CD with Open Source Only - Dreamforce 23
Easy Salesforce CI/CD with Open Source Only - Dreamforce 23NicolasVuillamy1
Common WordPress APIs - Options APICommon WordPress APIs - Options API
Common WordPress APIs - Options APIJonathan Bossenger
Orchestration, Automation and Virtualisation Maturity ModelOrchestration, Automation and Virtualisation Maturity Model
Orchestration, Automation and Virtualisation Maturity ModelCSUC - Consorci de Serveis Universitaris de Catalunya
How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...
How to use the Cataloguing Code Ethics at your day job : a hands-on workshop ...CILIP MDG
Accelerating Data Science through Feature Platform, Transformers, and GenAIAccelerating Data Science through Feature Platform, Transformers, and GenAI
Accelerating Data Science through Feature Platform, Transformers, and GenAIFeatureByte
GDSC Cloud Lead Presentation.pptxGDSC Cloud Lead Presentation.pptx
GDSC Cloud Lead Presentation.pptxAbhinavNautiyal8

Último(20)

DOM and Events

Notas do Editor

  1. document.documentElement.nodeType 1document.documentElement.nodeName "HTML"document.documentElement.tagName "HTML”The HTML element has two children—the head and the body elements. You can access them using the childNodes array-like collection.document.documentElement.childNodes[1].parentNode
  2. var bd= document.documentElement;bd.childNodes[1].attributes[0].nodeNamebd.childNodes[1].attributes[0].nodeValuebd.childNodes[1].attributes['class'].nodeValuebd.childNodes[1].getAttribute('class’)
  3. var bd= document.documentElement;bd.childNodes[1].attributes[0].nodeNamebd.childNodes[1].attributes[0].nodeValuebd.childNodes[1].attributes['class'].nodeValuebd.childNodes[1].getAttribute('class’)
  4. currentStyleruntimeStyle objects to retrieve style works with IE only
  5. When may this be undesirable? When the DOM nodes has event handlers attached to it.
  6. N.B. This way is actually better because it helps you keep your <div> clean of any JavaScript code.
  7. Style property accesses only inline style of element.The DOM provides a way to access an element’s style values: the getComputedStyle() function. IE does also: the element.currentStyle property.
  8. cookie is a string property that allows you to read, create, modify, and delete the cookie or cookies that apply to the current web page.
  9. cookie is a string property that allows you to read, create, modify, and delete the cookie or cookies that apply to the current web page.
  10. the name/value pair you stored is included in the list of cookies for the document. Cookie values may not include semicolons, commas, or whitespace. For this reason, you may want to use the JavaScript escape( ) function to encode the value before storing it in the cookie. If you do this, you'll have to use the corresponding unescape( ) function when you read the cookie value.