HOME

DHTML Tutorial
DHTML HOME
DHTML Intro
DHTML CSS
DHTML DOM
DHTML Events

DHTML Examples
DHTML Examples

DHTML DOM
DOM window
DOM navigator
DOM event
DOM collection
DOM document
DOM form
DOM input
DOM select
DOM option
DOM textarea
DOM table
DOM tablerow
DOM tablecell
DOM anchor
DOM image
DOM frameset
DOM frame
DOM iframe

DOM Examples
DOM Examples

Please visit our sponsors !

DHTML DOM Examples

previous next

Window Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Show an alert box X X X
Show the current URL and change it X X X
Display the user's screen properties X X X
Open a new window X X X
Print page X   X
Resize window X X X
Resize window to a specified size X X X
Scroll the window X X X
Scroll the window to a specified position X X X
setTimeout() X X X
confirm() X X X
prompt() X X X

Navigator Object Example

Example IE
5.5
NN
4.7
NN
6.2
Get information about the user's browser X X X

Event Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Which mouse button was clicked? X    
What are the coordinates of the cursor? X    
What is the unicode of the key pressed? X    
What are the horizontal and vertical coordinates of the cursor? X    
What are the coordinates of the cursor, relative to the screen? X    
What are the coordinates of the cursor? X    
Was the shift key pressed? X    
Which element was clicked? X    
Which eventype occured? X    

Collection Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Count forms with the length property X X X
Count images with the length property X X X
Access an item in a collection X X X

Document Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Return all anchors in a document X X X
Return the domain name of the document's server X X X
Return the page's referrer X X X
Return the document's title X X X
Return the document's URL X X X
Return a specified element X   X
Return all elements with a specified name X   X
Open a new document X X X
Add text to a new document X X X

Form Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change the action URL of a form X X X
Return the method used when sending form data X X X
Reset the fields in a form X X X
Submit a form X X X

Input Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Check and uncheck a checkbox X X X
Disable and enable a field X   X
Set maximum number of characters X   X
Make a field read only X   X
Change the size of a field X   X
Set and return values from radio buttons X X X
Set focus on a field X X X
Select the field's text X X X

Select Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Disable and enable a select element X   X
Return the name of the form that contains the select element X X X
Return the number of options X X X
Specify the number of visible options X   X
Select multiple options X   X
Return the selected option as a number X X X
Return the selected option as text X X X
Remove an option X   X

Option Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Return the selected option as text X X X
Change the option text X X X
Return the selected option as a number X X X

Textarea Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change number of cols X   X
Disable textarea X   X
Change number of rows X   X
Change value X X X
Select the textarea's text X X X

Table Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change border X    
Change cellPadding and cellSpacing X    
Specify frame border X    
Change height of row X    
Specify rules X    
Create table caption X    
Delete a row X    
Insert a row X    

Tablerow Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Align cell content in a row X    
Change cell content X    
Valign cell content in a row X    
Delete cells X    
Insert cell X    

Tablecell Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change colspan X    
Align cell content X    
Valign cell content X    

Anchor Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change URL X   X
Specify target X   X
Focus() and blur() X   X

Image Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change height X   X
Change src X X X
Change width X   X

Frameset Object Example

Example IE
5.5
NN
4.7
NN
6.2
Cols & rows X    

Frame Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Noresize X   X
Scrollbars      
Change frame source X   X

Iframe Object Examples

Example IE
5.5
NN
4.7
NN
6.2
Change height X   X
Scrollbars      
Change iframe source X   X


previous next

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


Search W3Schools:


What Others Say About Us

Does the world know about us? Check out these places:

Dogpile Alta Vista MSN Google Excite Lycos Yahoo Ask Jeeves


We Help You For Free. You Can Help Us!


W3Schools is for training only. We do not warrant its correctness or its fitness for use. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2002 by Refsnes Data. All Rights Reserved


Validate How we converted to XHTML Validate

IISCart
ASP Ecommerce & Shopping Cart


Your own Web Site?

Read W3Schools
Hosting Tutorial



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

University Online
Master Degree
Bachelor Degree


Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search