JavaScript Object Referenz
- Object
| Methoden: new() toString() prototype() valueOf() |
- window
| Objekte: Array I date I document I Event I Function I history I location I Math I navigator I RegExp I screen I String I self,top,parent I frames[ ] |
| Eigenschaften: closed I defaultStatus I innerHeight I innerWidth I locationbar I menubar I name I outerHeight I outerWidth I pageXOffset I pageYOffset I personalbar I scrollbars I statusbar I status I toolbar |
| Methoden: alert() back() blur() clearInterval() clearTimeout() close() confirm() focus() forward() home() moveBy() moveTo() offscrennBuffering() open() print() prompt() resizeBy() resizeTo() scroll() scrollBy() scrollTo() setInterval() setTimeOut() stop() |
Option bei open(): fullscreen I height I location I menubar I personalbar I resizable I screenX I screenY I scrollbars I status I titlebar I toolbar I width
Werte: yes,no,auto |
- window.Array
| Methoden: concat() join() pop() push() reverse() shift() slice() splice() sort() unshift() |
- window.date
| Methoden: getDate() getDay() getFullYear() getHours() getMilliseconds() getMinutes() getMonth() getSeconds() getTime() toLocaleString() |
- window.document
| Objekte: all I anchors I applets I forms I HTML I node I images I layers I links I plugins |
| Eigenschaften: alinkColor I bgColor I charset I cookie I fgColor I linkColor I referrer I title I URL I vlinkColor |
| Methoden: close() open() write() |
- window.document.all (ab Explorer 4.0)
| Eigenschaften: className I id |
- window.document.all.style
| Eigenschaften: background I backgroundColor I backgroundImage I backgroundPosition I backgroundRepeat I borderXXX I borderXXXColor I borderXXXStyle I borderXXXWidth I clear I color I cursor I direction I display I font I fontFamily I fontSize I fontStyle I XXX I left I marginXXX I maxHeight I maxWidth I minHeight I minWidth I testAlign I verticalAlign I visible I width I zIndex |
XXX = ohne || Bottom || Left || Right || Top
- window.document.anchors
- window.document.applets
- window.document.forms
| Objekte = elements[ ]: Button I Checkbox I FileUpload I Hidden I Password I radio I reset I select.options[ ] I Submit I text I Textarea |
| Eigenschaften: elements I name I length |
| Eigenschaften der Objekte: name I value , bei Auswahl: checked |
- window.document.HTML (DOM Modell)
- window.document.images
| Eigenschaften: border I complete I height I hspace I length I lowsrc I name I src I vspace I width |
- window.document.layers(nur Netscape 4.0)
| Eigenschaften: above I background I bgColor I below I clip I document I left I length I name I pageX I pageY I src I top I visible I zIndex |
hierachischer Zugriff: document.Layer1.document.Layer2.forms[0].elements[0]
Layer setzen: <LAYER ID="test" STYLE="position:relative"></LAYER>
| Methoden: moveBy() moveTo() moveToAbsolute() resizeBy() resiceTo() |
- window.document.links [ ]
| Eigenschaften: host I hostname I href I pathname I port I protocol I search I text |
- window.document.node (DOM Modell)
- window.document.plugins
- window.event
| Event-Handler: onAbort I onBlur I onClick I onDragDrop I onError I onFocus I onKeyDown I onKeyDown I onKeyPress I onKeyUp I onLoad I onMouseDown I onMouseOut I onMouseOver I onMouseUp I onMove I onReset I onResize I onSelect I onSubmit I onUnload |
| Eigenschaften Netscape: height I layerX || x I layerY || y I pageX I pageY I screenX I screenY I target I which I width |
| Eigenschaften Explorer: button I clientX I clientY I offsetX I offsetY I screenX I screenY I type I x I y |
- window.Function
| Eigenschaften: arguments[ ] |
- window.history[ ]
| Eigenschaften: current I length I next I previous |
| Methoden: back() forward() go() |
- window.location
| Eigenschaften: host I hostname I href I pathname I port I protocol I search |
| Methoden: reload() replace() |
- window.Math
| Eigenschaften = Konstante Zahl: E I LN2 I LN10 I LOG2E I LOG10E I PI I SQRT1_2 I SQRT2 |
| Methoden: abs() acos() asin() atan() ceil() cos() exp() floor() log() max() min() pow() random() round() sin() sqrt() tan() |
- window.navigator
| Objekte: mimeTypes[ ] I plugins[ ] |
| Eigenschaften: appName I appVersion I cookieEnabled I language I platform I userAgent |
- window.RegExp
| Methoden: compile() exec() test() |
- window.screen
| Eigenschaften: availHeight I availWidth I colorDepth I height I pixelDepth I width |
- window.String
| Methoden: anchor() big() bold() charAt() charCodeAt() concat() eval() fontcolor() fontsize() indexOf() italics() lastIndexOff() link() match() replace() search() slice() small() split() substr() substring() toLowerCase() toUppercase() parseFloat() parseInt() |
escape() unescape(): ?name1=wert1+wert2&name2=wert3%20wert4
parseInt("03",10)
Mögliche Variablen Werte: null I true-false I 0-1 I -999....+222 I 1.234 I a...z
Mögliche Array-Indizes: a[0] oder a["myBild1"] oder ("eins","zwei","drei")
ACHTUNG: es sind nicht alle Möglichkeiten angeführt!