Novo 0 DOM-a sadrži objekte koji predstavljaju prozor navigatora, tekućeg
dokumenta.
Svaki objekat nivoa 0 prodiskutovan je u Netsacpe JavaScript preporuci: http://developer.netscape.com/docs/manuals/js/client/jsref/index.html |
Window
|
Location |
History |
Document |
Navigator |
DATE Objekat
1. dateObjectName = new Date()
2. dateObjectName = new Date("month day, year hours:minutes:seconds")
3. dateObjectName = new Date(year, month, day)
4. dateObjectName = new Date(year, month, day, hours, minutes, seconds)
Metodi:
cas=today.getHours()
minuti=today.getMinutes()
sekunde=today.getSeconds()
String Objekat
Methodi
Primer
var last_name = "Schaefer"
last_name.length 8
last_name.toUpperCase() "SCHAEFER"
last_name.toLowerCase() "schaefer"
last_name.charAt(0) S
last_name.indexOf(hae) 2
last_name.indexOf(e,5) 6
last_name.lastIndexOf(e) 6
last_name.lastIndexOf(e,5) 4
last_name.substring(1,5) chae
last_name.substring(1,50) chaefer
Cookies
Rad sa više prozora
deteProz = open(noviProzor.html, deteProz)
deteProz.deteForma.deteObjekat.value
window.opener.document.otacfor