Some iPhone Safari properties
Published by Steve Streza July 1st, 2007 in UncategorizedI wrote some crafty Javascript to dump out the contents of arbitrary objects in the DOM in iPhone’s Safari. After the jump is a list of what the iPhone’s got for window, document, and document.body. If you need more, let me know.
- window.EvalError
- window.RangeError
- window.ReferenceError
- window.SyntaxError
- window.TypeError
- window.URIError
- window.getSearchEngine
- window.setSearchEngine
- window.methodHandlerCount
- window.propList
- window.windowResizeHandler
- window.debug
- window.startDebugging
- window.writeOut
- window.generateDebugFunction
- window.document
- window.Event
- window.CSSRule
- window.CSSPrimitiveValue
- window.CSSValue
- window.Document
- window.HTMLElement
- window.HTMLDocument
- window.CSSStyleDeclaration
- window.devicePixelRatio
- window.DocumentFragment
- window.Element
- window.MutationEvent
- window.Node
- window.NodeFilter
- window.Range
- window.XMLDocument
- window.name
- window.self
- window.pageYOffset
- window.releaseEvents
- window.offscreenBuffering
- window.moveBy
- window.personalbar
- window.DOMException
- window.scrollX
- window.Image
- window.window
- window.onunload
- window.clearTimeout
- window.screenY
- window.screenTop
- window.XSLTProcessor
- window.innerHeight
- window.defaultstatus
- window.screen
- window.parent
- window.menubar
- window.Option
- window.onchange
- window.innerWidth
- window.focus
- window.getSelection
- window.frames
- window.locationbar
- window.toolbar
- window.length
- window.onbeforeunload
- window.outerHeight
- window.onmousewheel
- window.history
- window.prompt
- window.top
- window.onfocus
- window.onmousedown
- window.statusbar
- window.screenLeft
- window.location
- window.resizeTo
- window.clearInterval
- window.status
- window.onkeydown
- window.closed
- window.defaultStatus
- window.scroll
- window.onload
- window.scrollTo
- window.onmouseover
- window.opener
- window.onkeyup
- window.outerWidth
- window.ondblclick
- window.onmouseout
- window.onerror
- window.XMLSerializer
- window.scrollbars
- window.onclick
- window.event
- window.confirm
- window.clientInformation
- window.scrollY
- window.alert
- window.crypto
- window.navigator
- window.pageXOffset
- window.screenX
- window.scrollBy
- window.moveTo
- window.resizeBy
- window.XMLHttpRequest
- window.DOMParser
- window.open
- window.print
- window.setTimeout
- window.blur
- window.close
- window.setInterval
- window.captureEvents
- window.addEventListener
- window.removeEventListener
- window.onabort
- window.onblur
- window.ondragdrop
- window.onkeypress
- window.onmousemove
- window.onmouseup
- window.onmove
- window.onreset
- window.onresize
- window.onscroll
- window.onsearch
- window.onselect
- window.onsubmit
- window.frameElement
- window.getMatchedCSSRules
- window.getComputedStyle,. document.title
- document.width
- document.anchors
- document.domain
- document.referrer
- document.URL
- document.embeds
- document.vlinkColor
- document.applets
- document.height
- document.all
- document.lastModified
- document.body
- document.images
- document.alinkColor
- document.links
- document.location
- document.cookie
- document.plugins
- document.forms
- document.scripts
- document.bgColor
- document.fgColor
- document.linkColor
- document.dir
- document.designMode
- document.documentElement
- document.doctype
- document.inputEncoding
- document.styleSheets
- document.preferredStylesheetSet
- document.charset
- document.implementation
- document.defaultView
- document.defaultCharset
- document.readyState
- document.characterSet
- document.selectedStylesheetSet
- document.parentNode
- document.childNodes
- document.parentElement
- document.attributes
- document.prefix
- document.nodeValue
- document.previousSibling
- document.nodeType
- document.lastChild
- document.namespaceURI
- document.nodeName
- document.firstChild
- document.nextSibling
- document.localName
- document.ownerDocument
- document.textContent
- document.close
- document.clear
- document.releaseEvents
- document.getElementsByName
- document.open
- document.write
- document.writeln
- document.captureEvents
- document.elementFromPoint
- document.createRange
- document.createComment
- document.queryCommandIndeterm
- document.createTextNode
- document.queryCommandEnabled
- document.getElementById
- document.createAttribute
- document.createElementNS
- document.createNodeIterator
- document.importNode
- document.createEntityReference
- document.createAttributeNS
- document.adoptNode
- document.createDocumentFragment
- document.getElementsByTagName
- document.createTreeWalker
- document.createElement
- document.createCDATASection
- document.createProcessingInstruction
- document.getElementsByTagNameNS
- document.createEvent
- document.getOverrideStyle
- document.execCommand
- document.queryCommandState
- document.queryCommandSupported
- document.queryCommandValue
- document.addEventListener
- document.removeEventListener
- document.dispatchEvent
- document.DOCUMENT_FRAGMENT_NODE
- document.ENTITY_REFERENCE_NODE
- document.CDATA_SECTION_NODE
- document.TEXT_NODE
- document.COMMENT_NODE
- document.ELEMENT_NODE
- document.ATTRIBUTE_NODE
- document.ENTITY_NODE
- document.PROCESSING_INSTRUCTION_NODE
- document.DOCUMENT_NODE
- document.DOCUMENT_TYPE_NODE
- document.NOTATION_NODE
- document.removeChild
- document.lookupPrefix
- document.insertBefore
- document.cloneNode
- document.item
- document.isDefaultNamespace
- document.appendChild
- document.hasAttributes
- document.replaceChild
- document.isSameNode
- document.normalize
- document.hasChildNodes
- document.isSupported
- document.isEqualNode
- document.lookupNamespaceURI,. document.body.bgColor
- document.body.vLink
- document.body.aLink
- document.body.scrollLeft
- document.body.scrollHeight
- document.body.background
- document.body.link
- document.body.text
- document.body.scrollTop
- document.body.scrollWidth
- document.body.id
- document.body.document
- document.body.isContentEditable
- document.body.className
- document.body.dir
- document.body.lang
- document.body.innerHTML
- document.body.innerText
- document.body.outerHTML
- document.body.outerText
- document.body.children
- document.body.contentEditable
- document.body.offsetWidth
- document.body.offsetHeight
- document.body.clientWidth
- document.body.offsetLeft
- document.body.style
- document.body.offsetTop
- document.body.tagName
- document.body.offsetParent
- document.body.clientHeight
- document.body.parentNode
- document.body.childNodes
- document.body.parentElement
- document.body.attributes
- document.body.prefix
- document.body.nodeValue
- document.body.previousSibling
- document.body.nodeType
- document.body.lastChild
- document.body.namespaceURI
- document.body.nodeName
- document.body.firstChild
- document.body.nextSibling
- document.body.localName
- document.body.ownerDocument
- document.body.textContent
- document.body.removeAttributeNode
- document.body.removeAttribute
- document.body.getAttributeNode
- document.body.getAttributeNodeNS
- document.body.getElementsByTagName
- document.body.getElementsByTagNameNS
- document.body.getAttributeNS
- document.body.setAttributeNode
- document.body.scrollByLines
- document.body.setAttribute
- document.body.scrollByPages
- document.body.removeAttributeNS
- document.body.setAttributeNS
- document.body.setAttributeNodeNS
- document.body.getAttribute
- document.body.scrollIntoView
- document.body.hasAttribute
- document.body.hasAttributeNS
- document.body.focus
- document.body.blur
- document.body.insertAdjacentElement
- document.body.contains
- document.body.scrollIntoViewIfNeeded
- document.body.addEventListener
- document.body.removeEventListener
- document.body.dispatchEvent
- document.body.DOCUMENT_FRAGMENT_NODE
- document.body.ENTITY_REFERENCE_NODE
- document.body.CDATA_SECTION_NODE
- document.body.TEXT_NODE
- document.body.COMMENT_NODE
- document.body.ELEMENT_NODE
- document.body.ATTRIBUTE_NODE
- document.body.ENTITY_NODE
- document.body.PROCESSING_INSTRUCTION_NODE
- document.body.DOCUMENT_NODE
- document.body.DOCUMENT_TYPE_NODE
- document.body.NOTATION_NODE
- document.body.removeChild
- document.body.lookupPrefix
- document.body.insertBefore
- document.body.cloneNode
- document.body.item
- document.body.isDefaultNamespace
- document.body.appendChild
- document.body.hasAttributes
- document.body.replaceChild
- document.body.isSameNode
- document.body.normalize
- document.body.hasChildNodes
- document.body.isSupported
- document.body.isEqualNode
- document.body.lookupNamespaceURI
5 Comments to “Some iPhone Safari properties”
- 1 Trackback on Jul 1st, 2007 at 12:35 pm
- 2 Trackback on Oct 22nd, 2007 at 5:49 pm
- 3 Trackback on Dec 27th, 2007 at 12:05 pm
We’ve been trying to figure out in the www.iPhoneWebDev.com community what the current iPhone scale is, and how to change it under javascript control. However, we’ve been unable to find it so far.
If you are actively digging into the iPhone, I think you will find the iPhoneWebDev list useful, as there are a lot of webapp builders on there now helping each other.
We certainly could use the javascript code you are using to find these iPhone DOM properties.
Do you know anything about the way frames work in iPhone Safari? It seems to want to treat a page containing two vertically stacked frames as a single unit for scrolling, rather than letting you scroll them independently. Failing that, any idea why fixed positioning doesn’t work?