| Objekt | Überge-ord netes Objekt | Bedeutung | Eigen-schaften | Methoden | HTML-Code zur Erzeugung einer Instanz des Objekts |
|---|---|---|---|---|---|
| Anchor | document | ein Hypertext- Sprungziel |
- | - | <A [HREF="..."] NAME="..." [TARGET="..."]> ... </A> |
| Applet | document | ein Java-Applet | - | alle öffentlichen Methoden des Applets | <APPLET CODE=... HEIGHT=... WIDTH=... [MAYSCRIPT] [NAME="..."] [CODEBASE="..."] [ALT="..."] [ALIGN="..."] [HSPACE=...] [VSPACE=...]> [<PARAM NAME=... VALUE=...>] [...</PARAM>] </APPLET> |
| Area | document | ein Bereich in einer Client-Side Imagemap (Spezialfall des Link-Objekts | hash, host, hostname, href, pathname, port, protocol, search, target | - | <MAP NAME="..."> <AREA [NAME="..."] COORDS="..." HREF="..." [SHAPE="..."] [TARGET="..."] [onMouseOut="..."] [onMouseOver="..."]> </MAP> |
| Array | - | Objekt zur Erzeugung und Verwaltung von Variablen-Feldern | length, prototype | join, reverse, sort | - |
| Boolean | - | Objekt zur Erzeugung und Verwaltung von booleanschen Variablen | - | - | - |
| Button | form | eine Schaltfläche | form, name, type, value | blur, click, focus | <input TYPE="button" NAME="..." VALUE="..." [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Checkbox | form | ein Kontrollkästchen | checked, defaultChecked, form, name, type, value | blur, click, focus | <INPUT TYPE="checkbox" NAME="..." VALUE="..." [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Date | - | Objekt zur Verwaltung von Datums- und Uhrzeitfunktionen | prototype | getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC, valueOf | - |
| Document | window | das aktuelle HTML-Dokument | alinkColor, Anchor, anchors, Applet, applets, Area, bgColor, cookie, domain, embeds, fgColor, Form, forms, Image, images, lastModified, linkColor, Link, links, referrer, title, URL, vlinkColor | close, open, write, writeln | <BODY BACKGROUND="..." BGCOLOR="..." TEXT="..." LINK="..." ALINK="..." VLINK="..." [onBlur="..."] [onFocus="..."] [onLoad="..."] [onUnload="..."]> </BODY> |
| FileUpload | form | Formularelement, das einen Datei-Upload ermöglicht | form, name, type, value | blur, focus | <input TYPE="file" NAME="..." [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Form | document | ein HTML-Formular | action, Button, Checkbox, elements, encoding, FileUpload, Hidden, length, method, name, Password, Radio, Reset, Select, Submit, target, Text, Textarea | reset, submit | <FORM NAME="..." TARGET="..." ACTION="..." METHOD="..." ENCTYPE="..." [onReset="..."] [onSubmit="..."]> </FORM> |
| Frame | window | ein Unterfenster im Browser | frames, name, length, parent, self, window | blur, clearTimeout, focus, setTimeout | <FRAMESET ROWS="..." COLS="..." [onBlur="..."] [onFocus="..."] [onLoad="..."] [onUnload="..."]> <FRAME SRC="..." NAME="..." [FRAME SRC="..." NAME="..."]> </FRAMESET> |
| Function | - | Objekt zur Erzeugung von JavaScript-Funktionen | - | - | - |
| Hidden | window | ein verstecktes Formularelement | name, type, value | - | <INPUT TYPE="hidden" NAME="..." [VALUE="..."] > |
| History | document | Liste der URLs zuvor geladener Dokumente | current, length, next, previous | back, forward, go | - |
| Image | document | ein Bild | border, complete, height, hspace, lowsrc, name, prototype, src, vspace, width | - | <IMG [NAME="..."] SCR="..." [LOWSRC="..."] [HEIGHT=...] [WIDTH=...] [HSPACE=...] [VSPACE=...] [BORDER=...] [ALIGN="..."] [ISMAP] [USEMAP="#..."] [onAbort="..."] [onError="..."] [onLoad="..."]> |
| Link | document | ein Hypertext-Link | hash, host, hostname, href, pathname, port, protocol, search, target | - | <A HREF=... [NAME="..."] [TARGET="..."] [onClick="..."] [onMouseOut="..."] [onMouseOver="..."]> ... </A> |
| Location | window | die URL des aktuellen Dokuments | hash, host, hostname, href, pathname, port, protocol, search | reload, replace | - |
| Math | - | Objekt, das mathematische Konstanten und Funktionen bereitstellt | E, LN2, LN10, LOG2E, LOG10E, PI, SQRT1_2, SQRT2 | abs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, max, min, pow, random, round, sin, sqrt, tan | - |
| MimeType | navigator | ein vom Browser unterstützter MIME-Typ (Multipart Internet Mail Extension) | description, enabledPlugin, type, suffixes | - | - |
| Navigator | - | Objekt, das Versionsinformationen über den benutzten Browser bereitstellt | appCodeName, appName, appVersion, mimeTypes, plugins, userAgent | javaEnabled, taintEnabled | - |
| Number | - | Objekt zur Erzeugung und Verwaltung von numerischen Variablen | - | - | - |
| Option | select | ein Eintrag innerhalb einer Auswahlliste | defaultSelected, index, length, selected, selectedIndex, text, value | - | siehe: select |
| Password | form | ein Eingabeelement für ein Passwort | defaultValue, form, name, type, value | blur, focus, select | <INPUT TYPE="password" NAME="..." [VALUE="..."] SIZE=... [onBlur="..."] [onFocus="..."] > |
| Plugin | navigator | ein im Browser installiertes Plugin-Modul | description, filename, length, name | - | - |
| Radio | form | ein Radio-Button | checked, defaultChecked, form, length, name, type, value | blur, click, focus | <INPUT TYPE="radio" NAME="..." VALUE="..." [CHECKED] [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Reset | form | eine Reset-Schaltfläche | form, name, type, value | blur, click, focus | <INPUT TYPE="reset" NAME="..." VALUE="..." [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Select | form | eine Auswahlliste | form, length, name, options, selectedIndex, text, type | blur, focus | <INPUT TYPE="select" NAME="..." [SIZE=...] [MULTIPLE] [onBlur="..."] [onChange="..."] [onFocus="..."]> <OPTION [VALUE="..."] [SELECTED]> [... <OPTION> ...] </SELECT> |
| String | - | Objekt zur Behandlung von Zeichenkettenvariablen | length, prototype | anchor, big, blink, bold, charAt, fixed, fontcolor, fontsize, indexOf, italics, lastIndexOf, link, small, split, strike, sub, substring, sup, toLowerCase, toUpperCase | - |
| Submit | form | eine Schaltfläche zum Abschicken des Formularinhalts | form, name, type, value | blur, click, focus | <INPUT TYPE="submit" NAME="..." VALUE="..." [onBlur="..."] [onClick="..."] [onFocus="..."] > |
| Text | form | ein (kleines) Texteingabefeld | defaultValue, form, name, type, value | blur, focus, select | <INPUT TYPE="text" NAME="..." VALUE="..." SIZE=... [onBlur="..."] [onChange="..."] [onFocus="..."] [onSelect="..."] > |
| Textarea | form | ein (großes) Texteingabefeld | defaultValue, form, name, type, value | blur, focus, select | <INPUT TYPE="text" NAME="..." ROWS=... COLS=... [onBlur="..."] [onChange="..."] [onFocus="..."] [onSelect="..."]> ... </TEXTAREA> |
| Window | - | Das oberste Objekt in der Hierarchie jeder document- location- und history- Objektgruppe | closed, defaultStatus, document, Frame, frames, history, length, location, name, opener, parent, self, status, top, window | alert, blur, clearTimeOut, close, confirm, focus, open, prompt, setTimeOut | - |
Das könnte Sie interessieren:
Frameset nachladen - Frameset (Frames) automatisch nachladen
Zeichenketten-Übergabe
JavaScript Grundkurs - 6. Wie spät ist es?
Formular über JavaScript absenden
Tasteneingaben Zählen - Bei manchen Formularen ist es wichtig die Textlänge zu begrenzen.
Mit Klick markieren - Mit einem Klick können sie den Text im Textfeld markieren.
Eingabefeld mit Hintergrundfarbe-Wechsel - Dieses Eingabefeld wechselt die Hintergrundfarbe bei einer Eingabe.
CSS-Farbwechsel mit getElementsByClassName()
Banner mit Link in einem Textfeld zum kopieren ausgeben
…mehr