0% found this document useful (0 votes)
28 views

Web Assignment 2

This document summarizes properties, methods, and events for several common web objects including Window, History, Location, Document, Form, Image, Anchor, and Link. It provides details on properties like Window.location and Document.body. It also lists common methods such as History.back() and events like Document.scroll.

Uploaded by

Malik Abdullah
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Web Assignment 2

This document summarizes properties, methods, and events for several common web objects including Window, History, Location, Document, Form, Image, Anchor, and Link. It provides details on properties like Window.location and Document.body. It also lists common methods such as History.back() and events like Document.scroll.

Uploaded by

Malik Abdullah
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Web Engineering

Assignment 2

Malik Muhammad Abdullah Naeem


FA16-BSE-101  8/5/2019
WINDOW
Properties:

 Window.defaultStatus
 Window.document
 Window.event
 Window.fullScreen
 Window.history
 Window.location
 Window.innerHeight
 Window.innerWidth
 Window.length
 Window.localStorage

Methods:

 Window.alert()
 Window.open()
 Window.close()
 Window.captureEvents()
 Window.confirm()
 Window.find()
 Window.getSelection()
 Window.moveTo()
 Window.moveBy()
 Window.postMessage()
 Window.print()
 Window.prompt()
 Window.resizeBy()

Events:

Listen to these events using addEventListener() or by assigning an event listener to


the oneventname property of this interface.

 error
 languagechange
 orientationchange
 resize
 storage
 animationstart
 animationcancel
 copy
 cut
 paste
 online
 offline
 pagehide
 pageshow
 load
 unload
 message
 messageerror

HISTORY
Properties:

 History.length

Other properties were never available to web content and is not supported by most
browsers.

 History.current
 History.next
 History.previous
 History.state

Methods:

 History.back()
 History.forward()
 History.go()
 History.pushState()
 History.replaceState()
LOCATION
Properties:

 Location.href
 Location.protocol
 Location.host
 Location.hostname
 Location.port
 Location.pathname
 Location.search
 Location.username
 Location.password

Methods:

 Location.assign()
 Location.reload()
 Location.replace()
 Location.toString()

DOCUMENT
Properties:

 Document.all
 Document.anchors
 Document.body
 Document.characterSet
 Document.doctype
 Document.documentURI
 Document.embeds
 Document.fonts
 Document.forms
 Document.head
 Document.images
 Document.links
 Document.plugins
 Document.scripts
 Document.children

Methods:

 Document.createAttribute()
 Document.createElement()
 Document.createEvent()
 Document.createTextNode()
 Document.getElementsByClassName()
 Document.getElementsByTagName()
 document.getElementById(String id)
 document.querySelector()
 document.querySelectorAll()
 document.close()
 document.open()
 document.getElementsByName()
 document.write()
 document.writeln()

Events:

Listen to these events using addEventListener() or by assigning an event listener to


the oneventname property of this interface.

 Scroll
 visibilitychange
 animationstart
 animationcancel
 copy
 cut
 paste
 drag
 dragend
 drageleave
 drop
 fullscreenchange
 keydown
 keyup
 selectionstart
 touchstart
 touchcancel
 transitionstart
 transitioncancel

FORM
Properties:

 acceptCharset
 action
 autocomplete
 encoding
 length
 method
 name
 target
 noValidate

Methods:

 reset()
 submit()

Events:

 onReset
 onSubmit

IMAGE
Properties:

 alt
 complete
 height
 isMap
 naturalHeight
 naturalWidth
 src
 useMap
 width

Methods:

 blur()
 click()
 focus()

Events:

 onAbort
 onBlur
 onClick
 onError
 onFocus
 onLoad

ANCHOR
Properties:

 charset
 cords
 accesskey
 href
 name
 rel
 rev
 shape
 type
 tabIndex

Methods:

 blur()
 focus()

Events:

 onBlur
 onFocus

LINK
Properties:

 charset
 disabled
 href
 id
 media
 name
 rel
 ref
 target
 type

Events:

 onLoad

You might also like