10.02.2018 Views

js_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

Ex: document.defaultView<br />

documentElement<br />

3<br />

A read-only reference to the tag of the document.<br />

Ex: document.documentElement8/31/2008<br />

Implementation<br />

4<br />

It is a read-only property and represents the DOMImplementation<br />

object that represents the implementation that created this<br />

document.<br />

Ex: document.implementation<br />

Document Methods in W3C DOM<br />

This model supports all the methods available in Legacy DOM. Additionally, here<br />

is a list of methods supported by W3C DOM.<br />

S.No<br />

Property and Description<br />

createAttribute( name)<br />

1<br />

Returns a newly-created Attr node with the specified name.<br />

Ex: document.createAttribute( name)<br />

createComment( text)<br />

2<br />

Creates and returns a new Comment node containing the specified<br />

text.<br />

Ex: document.createComment( text)<br />

createDocumentFragment( )<br />

3<br />

Creates and returns an empty DocumentFragment node.<br />

Ex: document.createDocumentFragment( )<br />

333

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!