Javascript - Accessing the DOM
Accessing the document inside an iframe:
frameElement.contentDocument
frameElement.contentWindow
Accessing the parent of an element:
element.parentNode
object.innerHTML = "<iframe ...>" (error)
object.insertAdjacentHTML
insert iframe into the object using createElement and appendChild
var top = self;
iframe.contentWindow.document.body.innerHTML
self.document.body.innerHTML
iframe.document.body.innerHTML
iframe.contentDocument.body.innerHTML
document.getElementById(id)
element.getElementsByTagName(name)
element.attributes
element.localName
element.nodeName
element.nodeValue
element.nodeType
element.ownerDocument
element.parentNode
element.prefix
element.textContent
element.setAttribute("href","http://www.somewhere.com");
element.getAttribute("href");
element.addEventListener()
element.insertBefore
element.appendChild
element.removeChild
element.replaceChild
document.createElement("p")
parentNode.appendChild(element)
window.content
window.dump
document.getBoxObjectFor
element.getBoundingClientRect()
document.elementFromPoint(x,y)
page_revision: 0, last_edited: 1227374727|%e %b %Y, %H:%M %Z (%O ago)





