HTML Ref
HTML Ref
Elements HTA:APPLICATION
Properties applicationName
border
borderStyle
caption
commandLine
icon
maximizeButton
minimizeButton
showInTaskBar
singleInstance
sysMenu
version
windowState
Attributes APPLICATION
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
!Doctype Element DHTML References
Web Workshop | DHTML, HTML & CSS
DHTML Objects
The following is a list of the objects defined by Dynamic HTML. The links
take you to the object definitions, which contain the set of members for the
object.
Input Types
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DHTML Properties
Web Workshop | DHTML, HTML & CSS
Internet Explorer 5.5 Properties
The following DHTML properties from the latest release of
Microsoft® Internet Explorer 5.5 are fully documented in
the MSDN® Online Web Workshop.
Property Description
contentEditable Sets or retrieves a string that indicates whether the user can edit
the content of the object.
scrollbar3dLightColor Sets or retrieves the color of the top and left edges of the scroll
box and scroll arrows of a scroll bar.
scrollbarArrowColor Sets or retrieves the color of the arrow element in a scroll arrow.
scrollbarBaseColor Sets or retrieves the color for elements of a scroll bar. If no other
properties are set, this property sets the color for all elements of
the scroll bar. If a specific scrollbar element property is set, it
overrides the scrollbarBaseColor setting for that element.
scrollbarDarkShadowColor Sets or retrieves the color of the gutter of a scroll bar. This color
occurs immediately outside the scrollBarShadowColor and affects
the bottom and right edges of the scroll box and scroll arrows.
scrollbarFaceColor Sets or retrieves the color of the scroll box and scroll arrows of a
scroll bar.
scrollbarHighlightColor Sets or retrieves the color for highlight areas in a scroll bar. This
affects the arrow element in the scroll arrow, and the top and left
edges of the scroll box and scroll arrows. If the
scrollbarTrackColor property is not set, highlight areas in the
track are affected.
scrollbarShadowColor Sets or retrieves the color of the bottom and right edges of the
scroll box and scroll arrows of a scroll bar.
scrollbarTrackColor Sets or retrieves the color of the track element of a scroll bar.
writingMode Sets or retrieves the direction and flow of the content in the
object.
zoom Sets or retrieves the magnification scale of the object.
Did you find this topic useful? Suggestions for other topics?
Write us!
For example, the color value #FF0000 is rendered red because the
red number is set to its highest value, FF (or 255 in decimal form).
indigo ivory
(#FFFFF0)
khaki
(#F0E68C)
lavender
(#E6E6FA)
(#4B0082)
lavenderblush lawngreen lemonchiffon lightblue
(#FFF0F5) (#7CFC00) (#FFFACD) (#ADD8E6)
lightcoral lightcyan lightgoldenrodyellow lightgreen
(#F08080) (#E0FFFF) (#FAFAD2) (#90EE90)
lightgray lightpink lightsalmon lightseagreen
(#D3D3D3) (#FFB6C1) (#FFA07A) (#20B2AA)
lightskyblue lightslategray lightsteelblue lightyellow
(#87CEFA) (#778899) (#B0C4DE) (#FFFFE0)
lime limegreen linen magenta
(#00FF00) (#32CD32) (#FAF0E6) (#FF00FF)
maroon mediumaquamarine
(#66CDAA) mediumblue mediumorchid
(#BA55D3)
(#800000) (#0000CD)
mediumpurple mediumseagreen mediumslateblue mediumspringgreen
(#9370DB) (#3CB371) (#7B68EE) (#00FA9A)
mediumturquoise
(#48D1CC)
mediumvioletred
(#C71585) midnightblue mintcream
(#F5FFFA)
(#191970)
mistyrose
(#FFE4E1)
moccasin
(#FFE4B5)
navajowhite
(#FFDEAD) navy
(#000080)
oldlace olive olivedrab orange
(#FDF5E6) (#808000) (#6B8E23) (#FFA500)
orangered orchid palegoldenrod palegreen
(#FF4500) (#DA70D6) (#EEE8AA) (#98FB98)
paleturquoise palevioletred papayawhip peachpuff
(#AFEEEE) (#DB7093) (#FFEFD5) (#FFDAB9)
peru pink plum powderblue
(#CD853F) (#FFC0CB) (#DDA0DD) (#B0E0E6)
purple red
(#FF0000)
rosybrown
(#BC8F8F)
royalblue
(#4169E1)
(#800080)
saddlebrown salmon
(#FA8072)
sandybrown
(#F4A460)
seagreen
(#2E8B57)
(#8B4513)
seashell sienna silver skyblue
(#FFF5EE) (#A0522D) (#C0C0C0) (#87CEEB)
slateblue slategray snow springgreen
(#6A5ACD) (#708090) (#FFFAFA) (#00FF7F)
steelblue tan teal thistle
(#4682B4) (#D2B48C) (#008080) (#D8BFD8)
tomato turquoise violet wheat
(#FF6347) (#40E0D0) (#EE82EE) (#F5DEB3)
white whitesmoke yellow yellowgreen
(#FFFFFF) (#F5F5F5) (#FFFF00) (#9ACD32)
User-Defined System Colors
Microsoft® Windows® maintains a set of system colors for
painting various parts of the display. In addition to the colors
defined in the color table, as of Internet Explorer 4.0 these system
colors may also be specified as color values in Web pages.
Users can set system colors for future Windows sessions using the
Windows Control Panel. The following table illustrates the
correspondence of these color names with the colors defined in the
Control Panel.
Note The colors that do not correspond to any Control Panel colors
can only be set programmatically using Windows APIs and cannot
be defined by the user.
activeborder
activecaption appworkspace
background
buttonface buttonhighlight buttonshadow
buttontext
captiontext graytext
highlight highlighttext
threedshadow window
windowframe windowtext
Did you find this topic useful? Suggestions for other topics? write
us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DHTML References
Web Workshop | DHTML, HTML & CSS
Command Identifiers
Command identifiers specify an action to take on the given
object. Use them with the following methods:
execCommand
queryCommandEnabled
queryCommandIndeterm
queryCommandState
queryCommandSupported
queryCommandValue
The following command identifiers are currently available:
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
DHTML References
Web Workshop | DHTML, HTML & CSS
Language Codes
The following table lists all the possible language codes
used to specify various system settings.
af Afrikaans sq Albanian
ar-sa Arabic (Saudi Arabia) ar-iq Arabic (Iraq)
ar-eg Arabic (Egypt) ar-ly Arabic (Libya)
ar-dz Arabic (Algeria) ar-ma Arabic (Morocco)
ar-tn Arabic (Tunisia) ar-om Arabic (Oman)
ar-ye Arabic (Yemen) ar-sy Arabic (Syria)
ar-jo Arabic (Jordan) ar-lb Arabic (Lebanon)
ar-kw Arabic (Kuwait) ar-ae Arabic (U.A.E.)
ar-bh Arabic (Bahrain) ar-qa Arabic (Qatar)
eu Basque bg Bulgarian
be Belarusian ca Catalan
zh-tw Chinese (Taiwan) zh-cn Chinese (PRC)
zh-hk Chinese (Hong Kong, S.A.R. China) zh-sg Chinese (Singapore)
hr Croatian cs Czech
da Danish nl Dutch (Standard)
nl-be Dutch (Belgium) en English
en-us English (United States) en-gb English (Great Britain)
en-au English (Australia) en-ca English (Canada)
en-nz English (New Zealand) en-ie English (Ireland)
en-za English (South Africa) en-jm English (Jamaica)
en English (Caribbean) en-bz English (Belize)
en-tt English (Trinidad) et Estonian
fo Faeroese fa Farsi
fi Finnish fr French (Standard)
fr-be French (Belgium) fr-ca French (Canada)
fr-ch French (Switzerland) fr-lu French (Luxembourg)
gd Gaelic (Scotland) gd-ie Gaelic (Ireland)
de German (Standard) de-ch German (Switzerland)
de-at German (Austria) de-lu German (Luxembourg)
de-li German (Liechtenstein) el Greek
he Hebrew hi Hindi
hu Hungarian is Icelandic
in Indonesian it Italian (Standard)
it-ch Italian (Switzerland) ja Japanese
ko Korean ko Korean (Johab)
lv Latvian lt Lithuanian
mk Macedonian (FYROM) ms Malaysian
mt Maltese no Norwegian (Bokmal)
no Norwegian (Nynorsk) pl Polish
pt-br Portuguese (Brazil) pt Portuguese (Portugal)
rm Rhaeto-Romanic ro Romanian
ro-mo Romanian (Moldavia) ru Russian
ru-mo Russian (Moldavia) sz Sami (Lappish)
sr Serbian (Cyrillic) sr Serbian (Latin)
sk Slovak sl Slovenian
sb Sorbian es Spanish (Spain – Traditional)
es-mx Spanish (Mexico) es Spanish (Spain – Modern)
es-gt Spanish (Guatemala) es-cr Spanish (Costa Rica)
es-pa Spanish (Panama) es-do Spanish (Dominican Republic)
es-ve Spanish (Venezuela) es-co Spanish (Colombia)
es-pe Spanish (Peru) es-ar Spanish (Argentina)
es-ec Spanish (Ecuador) es-cl Spanish (Chile)
es-uy Spanish (Uruguay) es-py Spanish (Paraguay)
es-bo Spanish (Bolivia) es-sv Spanish (El Salvador)
es-hn Spanish (Honduras) es-ni Spanish (Nicaragua)
es-pr Spanish (Puerto Rico) sx Sutu
sv Swedish sv-fi Swedish (Finland)
th Thai ts Tsonga
tn Tswana tr Turkish
uk Ukrainian ur Urdu
ve Venda vi Vietnamese
xh Xhosa ji Yiddish
zu Zulu
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DHTML, HTML & CSS
For navigation tips, please see using this site .
I
Looking for technical information on using DHTML, HTML,
CSS, and associated technologies? In this area of the MSDN
Online Web Workshop you'll find articles, white papers, and
lessons that will help guide you through the thickets of web
page design.
HTML
For information on HTML, the best starting place is our html
beginner's guide . Here you'll find information on tags,
I
elements, setting font sizes, and the mysteries of markup
code. Next, have a look at authoring basics , where you'll
I
find answers to "Seven Questions You Should Never Fear to
Ask" and other information resources for beginners.
Seasoned pros who want to finesse their code can turn to
authoring effective pages and designing efficient pages
I I
for advanced tips on layout, design, and form.
DHTML
If you're looking to enhance your pages with DHTML, you'll
find a general introduction in our dynamic html overview
I
and faqs articles. These articles will show you how to use
I
DHTML to bring movement and interactivity to your web
pages. Web page designers who want to hot-rod their pages
should turn to boosting performance and building high
I
performance html pages for pointers on how to make web
I
pages more immediate and responsive. MSDN's DHTML
Dude answers questions on such subjects as positioning,
mouseover support, and baffling modal dialogues in his
dhtml dude questions and answers .
I
CSS
Working with Cascading Style Sheets? The css overview
I
provides an introductory look at DHTML, CSS, CSS
positioning, and font embedding. For a more complete
analysis of CSS, try out user's guide to style sheets .
I
HTML Help
Developers who create content for software programs,
multimedia titles, intranets, extranets, or for the Internet
often need to write HTML Help programs to go with their
products. The introducing html help guide provides
I
samples, software, and a helpful user's guide.
Scriptlets:
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Designing and Using Scriptlets
You can easily create scriptlets and add them to your
applications.
To See
Choose a method for creating a scriptlet from your Web page Designing a Scriptlet
Use your scriptlet as a control Adding Scriptlets to Your Application
React to events in your applications Defining Event Handlers
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Scriptlet Container Object Reference
When you work with scriptlets in your application, you can
use the following properties and events of the scriptlet
container object:
Properties
event
readyState
scrollbar
url
Events
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseup
onreadystatechange
onscriptletevent
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Scriptlet Model Extensions
When creating the scripts in the scriptlet, you can use the
following specific extensions to the Dynamic HTML Object
Model. All extensions are available in the DHTML
window.external object.
Properties
frozen
selectableContent
version
Methods
bubbleEvent
raiseEvent
setContextMenu
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
CSS Length Units DHTML References
Web Workshop | DHTML, HTML & CSS
CSS Attributes Reference
This section defines the supported cascading style sheets (CSS) attributes.
An asterisk (*) indicates the attribute is available as of Microsoft® Internet
Explorer 5 or later. If an attribute or property has been proposed to the
World Wide Web Consortium (W3C) but not yet made standard, it is marked
as "proposed."
ime-mode (proposed)*
layout-grid (proposed)
layout-grid-char (proposed)
layout-grid-char-spacing (proposed)
layout-grid-line (proposed)
layout-grid-mode (proposed)
layout-grid-type (proposed)
line-break (proposed)*
line-height
letter-spacing
ruby-align (proposed)*
ruby-overhang (proposed)*
ruby-position (proposed)*
text-align
text-decoration
text-justify (proposed)*
text-indent
text-transform
unicode-bidi
vertical-align
word-break (proposed)*
word-spacing (Macintosh only)
Color and background properties background
background-attachment
background-color
background-image
background-position
background-repeat
color
Layout properties border
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-collapse*
border-color
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-style
border-top
border-top-color
border-top-style
border-top-width
border-width
clear
float
margin
margin-bottom
margin-left
margin-right
margin-top
padding
padding-bottom
padding-left
padding-right
padding-top
table-layout*
Classification properties display
list-style
list-style-image
list-style-position
list-style-type
Positioning properties bottom
clip
height
left
overflow
overflow-x (proposed)
overflow-y (proposed)
position
right
top
visibility
width
z-index
Printing properties page-break-after
page-break-before
Filter properties filter (proposed)
Pseudo-classes and other properties active
cursor
hover
@import
!important
link
visited
Unsupported CSS attributes first-letter pseudo
first-line pseudo
white-space
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CSS Attributes Reference DHTML References
Web Workshop | DHTML, HTML & CSS
CSS Length Units
This section defines the supported length units for CSS attributes. Unless otherwise
specified, the length units are supported as of Microsoft® Internet Explorer 3.0 or later.
An asterisk (*) indicates the length unit is available as of Internet Explorer 4.0 or later.
Measurements and positions in cascading style sheets (CSS) properties are indicated in
length units. Internet Explorer supports two types of length units: relative and absolute.
A relative length unit specifies a length in relation to another length property. Relative
length units scale better from one output device to another, such as from a monitor to a
printer.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
The Web Workshop is only available from
the live MSDN Online Web site.
Members
Remarks
You can create an HTA by saving an HTML page with an .hta file extension. However, to
take advantage of the applications-oriented functionality discussed in this reference,
you must include the HTA:APPLICATION tag and position it within the paired HEAD
tag to take effect.
You can turn off the scroll bars for the application window by including SCROLL="no" in
the BODY tag.
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
APPLICATION Attribute BORDER Attribute | bor
Web Workshop | DHTML, HTML & CSS
APPLICATIONNAME Attribute | applicationName Property
Retrieves the name of the HTML Application (HTA).
Syntax
Possible Values
Remarks
When set to true, the singleInstance property checks the applicationName value
before launching an instance of the application. For this check to be valid, the
applicationName property must have a unique value assigned to it. You can use the
applicationName property to identify a single application, regardless of the URL used
to access it.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
>
<SCRIPT>
alert("applicationName = " + oHTA.applicationName);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
APPLICATIONNAME Attribute... BORDERSTYLE A
Web Workshop | DHTML, HTML & CSS
BORDER Attribute | border Property
Retrieves the type of window border for the HTML Application (HTA).
Syntax
Possible Values
Remarks
The border property affects the window border and is valid only for HTA windows that
contain a title bar or caption. Setting border to none eliminates the title bar, program
icon, and Minimize/Maximize buttons. This property can be used with the borderStyle
property, which controls the content border within the window.
Example
This example uses the border property to apply a thin border to the window.
<HTML>
<HEAD>
<TITLE>Hello, World!</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONAME="myApp"
BORDER="thin"
>
<SCRIPT>
alert("border = " + oHTA.border);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BORDER Attribute | border... CAPTION Attribute
Web Workshop | DHTML, HTML & CSS
BORDERSTYLE Attribute | borderStyle Property
Retrieves the style set for the content border within the HTML Application (HTA) window.
Syntax
Possible Values
Remarks
All HTAs have two adjacent borders: one for the content of a window, and one for the
application window. The borderStyle property sets the style for the content border,
while the border property controls the application window border.
Example
This example uses the borderStyle property to apply a normal border around the
content of a window.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BORDERSTYLE Attribute | b... commandLine Pr
Web Workshop | DHTML, HTML & CSS
CAPTION Attribute | caption Property
Retrieves whether the window is set to display a title bar, or caption, for the HTML
Application (HTA).
Syntax
Possible Values
Remarks
The application title appears only when the caption property is set to yes. Turning off
the caption also disables the program icon and the Minimize and Maximize buttons. In
this case, you must provide an alternate way for the user to quit the HTA, such as a
button that invokes the close method of the window object.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
CAPTION="yes"
>
<SCRIPT>
alert ("caption = " + oHTA.caption);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest caption. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CAPTION Attribute | capti... ICON Attribute | ic
Web Workshop | DHTML, HTML & CSS
commandLine Property
Retrieves the argument used to launch the HTML Application (HTA).
Syntax
HTML N/A
Scripting [ sPath = ] oHTA.commandLine
Possible Values
sPath String that specifies the path and arguments used to launch the HTA.
Remarks
The commandLine property returns an empty string when the HTA is launched over
the http protocol .
I
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
>
<SCRIPT>
alert("commandLine = " + oHTA.commandLine);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Syntax
Possible Values
The property is read-only with a default value of the system application icon.
Remarks
The icon attribute recognizes the standard 32x32 pixel Microsoft® Windows® format
for .ico image files.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
ICON="graphics/face01.ico"
>
<SCRIPT>
alert ("icon = " + oHTA.icon);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Syntax
Possible Values
Remarks
The window must have a title bar, or caption, for the Minimize and Maximize buttons to
display.
Example
<HTML>
<HEAD>
<TITLE>Hello, World!</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
CAPTION="yes"
MAXIMIZEBUTTON="yes"
>
<SCRIPT>
alert("maximizeButton = " + oHTA.maximizeButton);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MAXIMIZEBUTTON Attribute ... SHOWINTASKBA
Web Workshop | DHTML, HTML & CSS
MINIMIZEBUTTON Attribute | minimizeButton Property
Retrieves whether a Minimize button is displayed in the title bar of the HTML Application
(HTA) window.
Syntax
Possible Values
Remarks
The window must have a title bar, or caption, for the Minimize and Maximize buttons to
display.
Example
<HTML>
<HEAD>
<TITLE>Hello, World!</TITLE>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
CAPTION="yes"
MINIMIZEBUTTON="yes"
>
<SCRIPT>
alert ("minimizeButton = " + oHTA.minimizeButton);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MINIMIZEBUTTON Attribute ... SINGLEINSTANC
Web Workshop | DHTML, HTML & CSS
SHOWINTASKBAR Attribute | showInTaskBar Property
Retrieves whether the HTML Application (HTA) is displayed in the Microsoft® Windows®
taskbar.
Syntax
Possible Values
Remarks
The showInTaskBar property does not affect whether the application appears in the
list of applications displayed when the user presses ALT+TAB.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
SHOWINTASKBAR="no"
>
<SCRIPT>
alert ("showInTaskBar = " + oHTA.showInTaskBar);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SHOWINTASKBAR Attribute |... SYSMENU Attrib
Web Workshop | DHTML, HTML & CSS
SINGLEINSTANCE Attribute | singleInstance Property
Retrieves whether only one instance of the specified HTML Application (HTA) can run at a
time.
Syntax
Possible Values
Remarks
When set to true, the singleInstance property checks the value of the
applicationName property before launching an instance of the application. For this
check to be valid, the applicationName property must have a unique value assigned
to it. You can use the applicationName property to identify a single application,
regardless of the URL used to access it.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
SINGLEINSTANCE="yes"
>
<SCRIPT>
alert("singleInstance = " + oHTA.singleInstance);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SINGLEINSTANCE Attribute ... VERSION Attribu
Web Workshop | DHTML, HTML & CSS
SYSMENU Attribute | sysMenu Property
Retrieves whether a system menu is displayed in the HTML Application (HTA).
Syntax
Possible Values
Remarks
The HTA system menu is denoted by the program icon on the far left corner of the title
bar. When clicked, the HTA system menu displays all the commands included in the
standard Microsoft® Windows® system menu, including restore, move, size, minimize,
maximize, and close.
Many of the properties that affect the user interface of the window are interdependent.
For example, setting sysMenu to no disables the program icon and the Minimize and
Maximize buttons. Similarly, setting the border property to none disables the program
icon, title bar, and Minimize and Maximize buttons.
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
SYSMENU="yes"
>
<SCRIPT>
alert("sysMenu = " + oHTA.sysMenu);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SYSMENU Attribute | sysMe... WINDOWSTATE A
Web Workshop | DHTML, HTML & CSS
VERSION Attribute | version Property
Retrieves the version number of the HTML Application (HTA).
Syntax
Possible Values
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
VERSION="1.0"
>
<SCRIPT>
alert("version = " + oHTA.version);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VERSION Attribute | versi... HTML Applications
Web Workshop | DHTML, HTML & CSS
WINDOWSTATE Attribute | windowState Property
Sets or retrieves the initial size of the HTML Application (HTA) window.
Syntax
Possible Values
Example
<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
WINDOWSTATE="maximize"
>
<SCRIPT>
alert("windowState = " + oHTA.windowState);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTA:APPLICATION
See Also
Syntax
Possible Values
Remarks
You can use the APPLICATION attribute to control the content of your Web pages.
For example, you can use the attribute to create an HTA that has one FRAME that
accesses unsafe content, such as Internet URLs, and another FRAME that accesses
safe content. You can also use the attribute for cross-domain scripting between HTA-
enabled frames.
HTAs are designed to prevent each untrusted HTML FRAME and IFRAME from having
script access to the HTA that contains them. In the case of a non-HTA-enabled FRAME,
the highest level frame comprises the top window for each FRAME that it contains.
The window.top and window.self are the same for that FRAME. In addition, an unsafe
FRAME or IFRAME receives neither a referrer nor an opener URL from the parent
HTA. This means FRAME or IFRAME are not affected by the the parent window of the
containing HTA.
Applies To
FRAME, IFRAME
See Also
html applications overview , HTML Applications References
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
A Element | A Object DHTML Objects
Web Workshop | DHTML, HTML & CSS
!DOCTYPE Element
Specifies the HTML document type definition (DTD) to which the document
corresponds.
Remarks
Example
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
In dynamic htmlInt
Web Workshop | DHTML, HTML & CSS
DHTML References
The reference material accessed through the following links
will help you to create compelling Web pages.
Objects
Properties
Methods
Events
Collections
HTML References
Elements
Character Sets
CSS References
CSS Attributes
CSS Length Units
Additional References
Color Table
Command Identifiers
Default Behaviors Reference
Language Codes
Tips and Tricks
Visual Filters and Transitions Reference
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
!DOCTYPE Element ACRONYM Element | ACRON
Web Workshop | DHTML, HTML & CSS
A Element | A Object
Designates the start or destination of a hypertext link.
Remarks
The A (anchor) element requires the href or the name property to be specified.
Both text and images can be included within an anchor. An image that is an anchor has
a border whose color indicates whether the link has been visited.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
The following examples use the A element to link files, open a file, include an image as
part of a link, define an anchor, and invoke a function.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
A Element | A Object ADDRESS Element | ADD
Web Workshop | DHTML, HTML & CSS
ACRONYM Element | ACRONYM Object
Indicates an acronym abbreviation.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
<ACRONYM>MSN</ACRONYM>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ACRONYM Element | ACRONYM... APPLET Elem
Web Workshop | DHTML, HTML & CSS
ADDRESS Element | ADDRESS Object
Specifies information, such as address, signature, and authorship, of the current
document.
Remarks
Members
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ADDRESS Element | ADDRESS... AREA Element
Web Workshop | DHTML, HTML & CSS
APPLET Element | APPLET Object
Places executable content on the page.
Remarks
To use executable content specified by the APPLET element, a user's computer must
have the Microsoft virtual machine installed.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
APPLET Element | APPLET O... Attribute Object
Web Workshop | DHTML, HTML & CSS
AREA Element | AREA Object
Defines the shape, coordinates, and associated URL of one hyperlink region within a client-
side image MAP.
Remarks
Any number of AREA elements can be contained within the same MAP element.
The format of the COORDS value depends on the value of the SHAPE attribute.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example provides the code for an image map of the solar system. It creates links
from the image map to individual images of the planets using the AREA element with
the MAP element, COORDS value, and SHAPE attribute. The user clicks the sun or
any planet to link to an individual image. To return to the solar system image map, the
user clicks the Back button.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AREA Element | AREA Objec... B Element | B O
Web Workshop | DHTML, HTML & CSS
Attribute Object
Represents an attribute or property of an HTML element as an object.
Remarks
A valid attribute or property can be any Dynamic HTML (DHTML) property or event that
applies to the object, or an expando.
Members
Example
This example uses the Attribute object to create a list of attributes that are specified.
<SCRIPT>
function fnFind(){
for(var i=0;i<oList.attributes.length;i++){
if(oList.attributes[i].specified){
alert(oList.attributes[i].nodeName + " = "
+ oList.attributes[i].nodeValue);
}
}
}
</SCRIPT>
<UL onclick="fnFind()">
<LI ID = "oItem1" ACCESSKEY = "L">List Item 1
</UL>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Attribute Object BASE Element | BASE Objec...
Web Workshop | DHTML, HTML & CSS
B Element | B Object
Specifies that the text should be rendered in bold.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
STRONG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
B Element | B Object BASEFONT Element | BAS
Web Workshop | DHTML, HTML & CSS
BASE Element | BASE Object
Specifies an explicit URL used to resolve links and references to external sources such as
images and style sheets.
Remarks
When used, the BASE element must appear within the HEAD of the document, before
any elements that refer to an external source.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example sets the base URL of the document to a reference folder. Internet
Explorer uses the BASE element to resolve the link to
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/href_2.asp.
<HEAD>
<BASE
HREF="http://msdn.microsoft.com/workshop/author/dhtml/reference"
>
</HEAD>
<BODY>
Click <A HREF="properties/href_2.asp">here< to learn about the
href property.
</BODY>
This example retrieves the base URL from the document if a valid BASE element is
specified in the document. Otherwise, the function returns null.
<SCRIPT>
function GetBase()
{
var oBaseColl = document.all.tags('BASE');
return ( (oBaseColl && oBaseColl.length) ? oBaseColl[0].href
:
null );
}
</SCRIPT>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BASE Element | BASE Objec... BDO Element | B
Web Workshop | DHTML, HTML & CSS
BASEFONT Element | BASEFONT Object
Sets a base font value to be used as the default font when rendering text.
Remarks
This element can be used only within the BODY element or the HEAD element.
BASEFONT should appear before any displayed text in the BODY of the document.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the BASEFONT element to set the base font size, and the FONT
element to temporarily override it.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BASEFONT Object | BASEFON... BGSOUND Obj
Web Workshop | DHTML, HTML & CSS
BDO Element | BDO Object
Allows authors to disable the bidirectional algorithm for selected fragments of text.
Remarks
The BDO element can be used to control the reading order of a block of text.
The bidirectional algorithm and the DIR attribute generally suffice for embedded
direction changes. However, incorrect presentations can occur when you expose
formatted text to the bidirectional algorithm. For example, a paragraph containing
English and Hebrew that is formatted for e-mail could be incorrectly inverted by the
bidirectional algorithm. Because the reading order of the Hebrew text was inverted
once for the e-mail, exposing it to the bidirectional algorithm would invert the words a
second time.
The BDO element turns off the algorithm and controls the reading order. The DIR
attribute is required when you use the BDO element.
Members
Example
See Also
direction
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BDO Element | BDO Object BIG Element | BIG
Web Workshop | DHTML, HTML & CSS
BGSOUND Element | BGSOUND Object
Enables pages with background sounds or soundtracks to be created.
Remarks
The BGSOUND element can be used only within the HEAD element.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BGSOUND Element | BGSOUND... BLOCKQUOT
Web Workshop | DHTML, HTML & CSS
BIG Element | BIG Object
Specifies that the enclosed text should be displayed in a larger font than the current font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BIG Element | BIG Object BODY Element | bod
Web Workshop | DHTML, HTML & CSS
BLOCKQUOTE Element | BLOCKQUOTE Object
Sets apart a quotation in text.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the BLOCKQUOTE element to set off a quotation that renders as
indented text.
<P>He said,
<BLOCKQUOTE>"Hi there!"</BLOCKQUOTE>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BLOCKQUOTE Element | BLOC... BR Element |
Web Workshop | DHTML, HTML & CSS
BODY Element | body Object
Specifies the beginning and end of the document body.
Remarks
You can access the BODY element from script through the document object.
The window object for the BODY element can host event handlers for the onblur,
onfocus, onload, or onunload events.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BODY Element | body Objec... BUTTON Elemen
Web Workshop | DHTML, HTML & CSS
BR Element | BR Object
Inserts a line break.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BR Element | BR Object CAPTION Element | CA
Web Workshop | DHTML, HTML & CSS
BUTTON Element | BUTTON Object
Specifies a container for rich HTML that is rendered as a button.
Remarks
When the BUTTON element is submitted in a form, Microsoft® Internet Explorer 5 and
later submits the VALUE attribute, if it exists. Otherwise, the innerText property is
submitted. In Internet Explorer 4.0, only the innerText value is submitted.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BUTTON Element | BUTTON O... CENTER Eleme
Web Workshop | DHTML, HTML & CSS
CAPTION Element | CAPTION Object
Specifies a brief description for a TABLE.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the CAPTION element to provide a brief description for a table.
<TABLE>
<CAPTION VALIGN=BOTTOM>
This caption will appear below the table.
</CAPTION>
<TBODY>
<TR>
<TD>
This text is inside the table.
</TD>
</TR>
</TBODY>
</TABLE>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CAPTION Element | CAPTION... CITE Element |
Web Workshop | DHTML, HTML & CSS
CENTER Element | CENTER Object
Centers subsequent text and images.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CENTER Element | CENTER O... clientInformatio
Web Workshop | DHTML, HTML & CSS
CITE Element | CITE Object
Indicates a citation by rendering text in italic.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<CITE>Book Title.</CITE>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CITE Element | CITE Objec... clipboardData Ob
Web Workshop | DHTML, HTML & CSS
clientInformation Object
Contains information about the Web browser.
Remarks
Members
Example
This example shows how to determine whether the userAgent of the browser contains
"MSIE". If it does, the browser is Internet Explorer.
<SCRIPT LANGUAGE="JScript">
if (window.clientInformation.userAgent.indexOf( "MSIE " ) > 0)
// The browser is Microsoft Internet Explorer.
</SCRIPT>
This example shows how to determine whether the browser can run Java applets.
<SCRIPT LANGUAGE="JScript">
if (window.clientInformation.javaEnabled() == true )
// Java is enabled; applets can run.
</SCRIPT>
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientInformation Object CODE Element | CODE
Web Workshop | DHTML, HTML & CSS
clipboardData Object
Provides access to predefined clipboard formats for use in editing operations.
Remarks
The clipboardData object is reserved for editing actions performed through the Edit
menu, shortcut menu, and shortcut keys. It transfers information using the system
clipboard and retains it until data from the next editing operation supplants it. This
form of data transfer is particularly suited to multiple pastes of the same data.
Members
Example
This example uses the setData and getData methods with the clipboardData object
to perform a cut-and-paste operation through the shortcut menu.
Applies To
window
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clipboardData Object COL Element | COL Objec
Web Workshop | DHTML, HTML & CSS
CODE Element | CODE Object
Specifies a code sample.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the CODE element to display text in a font used to represent
computer code, such as values or variable names.
See Also
SAMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CODE Element | CODE Objec... COLGROUP Elem
Web Workshop | DHTML, HTML & CSS
COL Element | COL Object
Specifies column-based defaults for the table properties.
Remarks
The COL element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This examples uses the COL element to specify characteristics for default columns in a
table.
<TABLE>
<COLGROUP><COL ALIGN=RIGHT><COL ALIGN=LEFT></COLGROUP>
<COLGROUP><COL ALIGN=CENTER></COLGROUP>
<TBODY>
<TR>
<TD>This is the first column in the group and it is right-
aligned.</TD>
<TD>This is the second column in the group and it is left-
aligned.</TD>
<TD>This column is in a new group and it is centered.</TD>
</TR>
</TABLE>
See Also
COLGROUP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COL Element | COL Object COMMENT Element
Web Workshop | DHTML, HTML & CSS
COLGROUP Element | COLGROUP Object
Contains a group of columns.
Remarks
The COLGROUP element is a block element and requires a closing tag if the
COLGROUP has COL elements nested within it; otherwise it does not require a closing
tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<TABLE>
<COLGROUP ALIGN="RIGHT"></COLGROUP>
<COLGROUP SPAN="2" ALIGN="LEFT"></COLGROUP>
<TBODY>
<TR>
<TD>This column is in the first group and is right-aligned.</TD>
<TD>This column is in the second group and is left-aligned.</TD>
<TD>This column is in the second group and is left-aligned.</TD>
</TR>
</TABLE>
See Also
COL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLGROUP Element | COLGRO... currentStyle O
Web Workshop | DHTML, HTML & CSS
COMMENT Element | COMMENT Object
Indicates a comment that is not displayed.
Remarks
The COMMENT element is treated as a no-scope element and does not expose any
children.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COMMENT Element | COMMENT... custom Elem
Web Workshop | DHTML, HTML & CSS
currentStyle Object
Represents the cascaded format and style of the object as specified by global style sheets,
inline styles, and HTML attributes.
Remarks
The currentStyle object returns the cascaded styles on an element, but the style
object returns only the styles that have been applied inline on an element through the
STYLE attribute. Thus, the style values retrieved through the currentStyle object
might differ from the style values retrieved through the style object. For example, if
the color property is set on a paragraph only through a linked or embedded style
sheet, and not inline, then object.currentStyle.color returns the color, whereas
object.style.color does not return a value. If, however, the author specifies <P
STYLE="color:'red'">, the currentStyle and style objects return the value red.
The currentStyle object reflects the order of style precedence in cascading style
sheets (CSS). The CSS order of precedence for the presentation of HTML is:
1. Inline styles
2. Style sheet rules
3. Attributes on HTML tags
4. Intrinsic definition of the HTML tag
Accordingly, the currentStyle object returns the fontWeight value normal on a bold
tag if normal is specified in a style sheet.
The currentStyle object returns values that reflect the applied style settings for the
page and might not reflect what is rendering at the time a value is retrieved. For
example, an object that has "color:red; display:none" returns currentStyle.color
as red even though the object is not rendered on the page. The currentStyle object,
then, is not affected by the rendering constraints. The third example in the Example
section demonstrates this behavior. Disabled style sheets also do not affect
currentStyle values.
The returned value is in the same units as those used to set the object. For example, if
the color of an object is set inline using STYLE="color:'green'", then
object.currentStyle.color returns green and not #00FF00 (the red-green-blue
hexadecimal equivalent to green). However, capitalization and redundant white space
that appear in the object values set by the author are lost when the currentStyle
object returns the object values.
The currentStyle object supports user-defined properties in style rules. See the
second example in the Example section.
The currentStyle object is asynchronous. This means a style cannot be set and then
immediately queried—instead, the old value is returned. Thus, for a script to obtain the
expected behavior of currentStyle with methods such as addImport, the script needs
to include a function that calls the method and a function that checks currentStyle.
For a script to check the current style while a page is loading, the script must wait until
the BODY element is loaded and the page has rendered, or the value of currentStyle
might not reflect what is being displayed.
Members
Example
This example uses the currentStyle object to set the text color to brown. If you click
a colored area and the background color is the same as the text color, the checkColor
function changes the background color, so the text can be read. Otherwise, the
function takes no action.
This example uses the currentStyle object to retrieve values of the user-defined
property created in the style rule. The alert returns the value myvalue.
This example shows that the TD object width returned by the currentStyle object is
its cascaded width value rather than the width rendered on the screen.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, HEAD, Hn, HTML, I, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XMP
See Also
STYLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
currentStyle Object dataTransfer Object DHTM
Web Workshop | DHTML, HTML & CSS
custom Element | custom Object
Represents a user-defined element.
Remarks
Microsoft® Internet Explorer's support for custom tags on an HTML page requires that
a namespace be defined for the tag. Otherwise, the custom tag is treated as an
unknown tag when the document is parsed. Although navigating to a page with an
unknown tag in Internet Explorer does not result in an error, unknown tags have the
disadvantage of not being able to contain other tags, nor can they have behaviors
applied to them.
When defining custom tags, you must enclose custom tag definitions within an @media
wrapper.
Custom tags become much more interesting when applied with a DHTML behavior.
dhtml behaviors (or behaviors) and styles are applied to elements on a page the
I
same way—using cascading style sheets (CSS) attributes. More specifically, the
proposed CSS behavior attribute allows a Web author to specify the location of the
behavior and apply that behavior to an element on a page.
Members
Example
This example uses the custom element to create custom RED, GREEN, and BLUE
elements. These elements change the color of the text to red, green, or blue,
depending on whether it is surrounded by RED, GREEN, or BLUE tags. In this example,
the RED, GREEN, and BLUE tags are defined within a namespace called CUSTOMTAG.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
custom Element | custom O... DD Element | DD
Web Workshop | DHTML, HTML & CSS
dataTransfer Object
Provides access to predefined clipboard formats for use in drag-and-drop operations.
Remarks
The dataTransfer object is used in source and target events. Typically, the setData
method is used with source events to provide information about the data being
transferred. In contrast, the getData method is used with target events to stipulate
which data and data formats to retrieve.
Members
Example
This example uses the setData and getData methods of the dataTransfer object to
perform a drag-and-drop operation.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dataTransfer Object DEL Element | DEL Object
Web Workshop | DHTML, HTML & CSS
DD Element | DD Object
Indicates the definition in a definition list. The definition is usually indented in the
definition list.
Remarks
The DD element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the DD element with the DL and DT elements to create a definition
list.
<DL>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DD Element | DD Object DFN Element | DFN O
Web Workshop | DHTML, HTML & CSS
DEL Element | DEL Object
Indicates text that has been deleted from the document.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
See Also
INS
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DEL Element | DEL Object DIR Element | DIR O
Web Workshop | DHTML, HTML & CSS
DFN Element | DFN Object
Indicates the defining instance of a term.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DFN Element | DFN Object DIV Element | DIV O
Web Workshop | DHTML, HTML & CSS
DIR Element | DIR Object
Denotes a directory list.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<DIR>
<LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science
</DIR>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DIR Element | DIR Object DL Element | DL Obj
Web Workshop | DHTML, HTML & CSS
DIV Element | DIV Object
Specifies a container that renders HTML.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses two DIV elements to align two sections of text differently.
<DIV>
This text represents a section.
</DIV>
<DIV ALIGN=CENTER>
This text represents another section, and its text is centered.
</DIV>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DIV Element | DIV Object document Object D
Web Workshop | DHTML, HTML & CSS
DL Element | DL Object
Denotes a definition list.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the DL element with the DD and DT elements to create a definition
list.
<DL>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DL Element | DL Object DT Element | DT Objec
Web Workshop | DHTML, HTML & CSS
document Object
Represents the HTML document in a given browser window.
Remarks
Use the document object to retrieve information about the document, to examine and
modify the HTML elements and text within the document, and to process events.
The document object is available at all times. Retrieve the object by applying the
document property to a window or an element object. When used by itself, the
document object represents the document in the current window.
Windows CE
In Microsoft® Windows® CE, the document object is not available through scripting
for a window opened using the open method.
Members
Example
This example uses the document object to check for a document title, and displays
the title (if not null) in a message box.
if (document.title!="")
alert("The title is " + document.title)
This example shows an event handler function that displays the current position of the
mouse, relative to the upper-left corner of the document, in the browser's status
window.
<HTML>
<HEAD><TITLE>Report mouse moves</TITLE>
<SCRIPT LANGUAGE="JScript">
function reportMove() {
window.status = "X=" + window.event.x + " Y=" +
window.event.y;
}
</SCRIPT>
<BODY onmousemove="reportMove()">
<H1>Welcome!</H1>
</BODY>
</HTML>
Applies To
custom, window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
document Object EM Element | EM Object DH
Web Workshop | DHTML, HTML & CSS
DT Element | DT Object
Indicates a definition term within a definition list.
Remarks
The DT element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the DT element with the DD and DL elements to create a definition
list.
<DL>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DT Element | DT Object EMBED Element | EMB
Web Workshop | DHTML, HTML & CSS
EM Element | EM Object
Emphasizes text, usually by rendering it in italic.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
EM Element | EM Object event Object DHTML
Web Workshop | DHTML, HTML & CSS
EMBED Element | EMBED Object
Allows documents of any type to be embedded.
Remarks
The EMBED element must appear inside the BODY element of the document.
Users need to have an application that can view the data installed on their computer.
The EMBED element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
EMBED Element | EMBED Obj... external Object
Web Workshop | DHTML, HTML & CSS
event Object
Represents the state of an event, such as the element in which the event occurred, the
state of the keyboard keys, the location of the mouse, and the state of the mouse buttons.
Remarks
The event object is available only during an event—that is, you can use it in event
handlers but not in other code.
Although all event properties are available to all event objects, some properties might
not have meaningful values during some events. For example, the fromElement and
toElement properties are meaningful only when processing the onmouseover and
onmouseout events.
In Microsoft® Visual Basic® Scripting Edition (VBScript), you must access the event
object through the window object.
Members
Example
This example uses the event object to check whether the user clicked the mouse
within a link, and to prevent the link from being navigated if the SHIFT key is down.
<HTML>
<HEAD><TITLE>Cancels Links</TITLE>
<SCRIPT LANGUAGE="JScript">
function cancelLink() {
if (window.event.srcElement.tagName == "A" &&
window.event.shiftKey)
window.event.returnValue = false;
}
</SCRIPT>
<BODY onclick="cancelLink()">
This example displays the current mouse position in the browser's status window.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
event Object FIELDSET Element | FIELDS... D
Web Workshop | DHTML, HTML & CSS
external Object
Allows access to an additional object model provided by host applications of the Microsoft®
Internet Explorer browser components.
Remarks
In a hosting scenario, the object model is defined by the application hosting the
Internet Explorer components (refer to the hosting application for documentation). For
more information about how to implement extensions to the DHTML object model, see
extending the dynamic html object model .
I
This object is not supported in html applications .
I
This object is available in script as of Internet Explorer 4.0.
Members
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
external Object FONT Element | FONT Objec...
Web Workshop | DHTML, HTML & CSS
FIELDSET Element | FIELDSET Object
Draws a box around the text and other elements that the field set contains.
Remarks
This element is useful for grouping elements in a form and for distinctively marking
text in a document.
The FIELDSET element has the same behavior as a window frame. Since window
frames do not have scroll bars, assigning the overflow property a value of scroll will
render it as if the value were hidden.
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FIELDSET Element | FIELDS... FORM Element |
Web Workshop | DHTML, HTML & CSS
FONT Element | FONT Object
Specifies a new font, size, and color to be used for rendering the enclosed text.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FONT Element | FONT Objec... FRAME Element
Web Workshop | DHTML, HTML & CSS
FORM Element | FORM Object
Specifies that the contained controls take part in a form.
Remarks
Forms enable client-side users to submit data to a server in a standardized format. The
creator of a form designs the form to collect the required data using a variety of
controls, such as INPUT or SELECT. Users viewing the form fill in the data and then
click the Submit button to send the data to the server. A script on the server then
processes the data.
Each control element's NAME attribute must be defined if the data is to be submitted
with the form. An element in a form can be referenced by the NAME property or the
ID property, or through the elements collection.
When the focus is on a control in a form and the user presses ESC, the value of the
control reverts to the last value. The form resets if the user presses ESC again. If the
focus is on the form but not on a particular control and the user presses ESC once, the
form resets.
If the form includes only one text box and the user presses ENTER, the onsubmit event
fires. If the form has a Submit button, the button has a dark border, which indicates
the user can press ENTER to submit the form.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the FORM element to create a basic form containing a text entry
box for the user's name and a select control for choosing a favorite ice cream flavor.
When the user clicks the Submit button, the form sends the data to the URL listed in
the ACTION property. The value of the METHOD property determines how to send the
data to the server.
<HTML>
<FORM ACTION="http://example.microsoft.com/sample.asp"
METHOD="POST">
Enter your name: <INPUT NAME="FName"><BR>
Favorite Ice Cream Flavor:
<SELECT NAME="Flavor">
<OPTION VALUE="Chocolate">Chocolate
<OPTION VALUE="Strawberry">Strawberry
<OPTION VALUE="Vanilla" SELECTED>Vanilla
</SELECT>
<P><INPUT TYPE=SUBMIT>
</FORM>
</HTML>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FORM Element | FORM Objec... FRAMESET Elem
Web Workshop | DHTML, HTML & CSS
FRAME Element | FRAME Object
Specifies an individual frame within a FRAMESET element.
Remarks
If a user opens a web folder inside a frame and then clicks something in the Web
I
folder, the file or folder that the user clicks takes over the entire window. For example,
suppose that a page contains two frames, one frame pointing to
http://www.microsoft.com and the second frame pointing to a network drive. If the
user clicks a file or folder in the second frame, that frame takes control of the entire
window, including the first frame. For file types that the browser cannot host, such as
.txt files, a separate window in the appropriate host application is opened.
A Web folder is a part of the file system hierarchy, but it does not necessarily represent
anything in the file system. An example is Network Neighborhood.
The FRAME element is a block element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the FRAME element to define properties of the frame, including the
location of the page loaded by the frame.
This example shows how to reference an object with ID=sID in FRAME2, from another
frame of the same frameset.
parent.frames.FRAME2.sID.innertext
See Also
FRAMESET
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FRAME Element | FRAME Obj... HEAD Element
Web Workshop | DHTML, HTML & CSS
FRAMESET Element | FRAMESET Object
Specifies a frameset, which is used to organize multiple frames and nested framesets.
Remarks
If a user opens a Web folder inside a frame and then clicks something in the Web
folder, the file or folder that the user clicks takes over the entire window. For example,
suppose that a page contains two frames, one frame pointing to
http://www.microsoft.com and the second frame pointing to a network drive. If the
user clicks a file or folder in the second frame, that frame takes control of the entire
window, including the first frame. For file types that the browser cannot host, such as
.txt files, a separate window in the appropriate host application is opened.
A Web folder is a part of the file system hierarchy, but it does not necessarily represent
anything in the file system. An example is Network Neighborhood.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the FRAMESET element to define three columns of rectangular
frames on a page.
See Also
FRAME
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FRAMESET Element | FRAMES... history Object
Web Workshop | DHTML, HTML & CSS
HEAD Element | HEAD Object
Provides an unordered collection of information about the document.
Remarks
The HEAD element provides information that does not affect the rendering of the
document but could be of use to the browser. The following tags are valid in this
element:
BASE
BASEFONT
BGSOUND
LINK
META
NEXTID
SCRIPT
STYLE
TITLE
The HEAD element requires a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<HEAD>
<TITLE>A Simple Document</TITLE>
</HEAD>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HEAD Element | HEAD Objec... Hn Object DH
Web Workshop | DHTML, HTML & CSS
history Object
Contains information about the URLs visited by the client.
Remarks
For security reasons, the history object does not expose the actual URLs in the
browser history. It does allow navigation through the browser history by exposing the
back, forward, and go methods. A particular document in the browser history can be
identified as an index relative to the current page. For example, specifying -1 as a
parameter for the go method is the equivalent of clicking the Back button.
Members
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
history Object HR Element | HR Object DHTM
Web Workshop | DHTML, HTML & CSS
Hn Element | Hn Object
Renders text in heading style.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the H1 element to apply a level-1 heading style to the contained
text.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Hn Object HTML Element | HTML Objec... DHT
Web Workshop | DHTML, HTML & CSS
HR Element | HR Object
Draws a horizontal rule.
Remarks
The HR element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HR Object HTML Comment Element DHTML O
Web Workshop | DHTML, HTML & CSS
HTML Element | HTML Object
Identifies the document as containing HTML elements.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the HTML element to identify the document as an HTML document.
<HTML>
<BODY>
<P>This is an HTML document.</P>
</BODY>
</HTML>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HTML Comment Element IFRAME Element | IFR
Web Workshop | DHTML, HTML & CSS
I Element | I Object
Specifies that the text should be rendered in italic, where available.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
I Element | I Object IMG Element | IMG Object
Web Workshop | DHTML, HTML & CSS
IFRAME Element | IFRAME Object
Creates inline floating frames.
Remarks
sColor =
document.frames("sFrameName").document.body.style.backgroundColo
r;
You can access the IFRAME object's properties, but not its contents, through the
object model of the page where the IFRAME object resides. For example, the syntax
for accessing the border style of the IFRAME object is:
sBorderValue = document.all.oFrame.style.border;
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
This example uses the IFRAME element and an HTML fragment to create a frame
containing the page sample.htm.
This example returns a reference to the all collection of the document contained by the
IFRAME.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IFRAME Element | IFRAME O... INPUT Element
Web Workshop | DHTML, HTML & CSS
IMG Element | IMG Object
Embeds an image or a video clip in the document.
Remarks
This element does not fire the onfocus event when it receives the input focus, unless it
has been associated with a MAP element.
The IMG element is an inline element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the IMG element to embed a bitmap image (.bmp file) on a page.
<IMG SRC=mygraphic.bmp>
See Also
INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IMG Element | IMG Object INPUT type=button
Web Workshop | DHTML, HTML & CSS
INPUT Element | INPUT Object
Creates a variety of form input controls.
Remarks
The TYPE attribute for the INPUT element is used to specify one of the following form
input controls:
The INPUT element controls are inline elements and do not require a closing tag.
Example
This example uses the INPUT element to create different types of input controls.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=text Element |... INSINDEX Eleme
Web Workshop | DHTML, HTML & CSS
INS Element | INS Object
Specifies text that has been inserted into the document.
Remarks
The INS element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
This example uses the INS element to specify text inserted into a document.
See Also
DEL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INS Element | INS Object KBD Element | KBD O
Web Workshop | DHTML, HTML & CSS
ISINDEX Element | ISINDEX Object
Causes the browser to display a dialog window that prompts the user for a single line of
input.
Remarks
In HTML 4, this element is deprecated, and INPUT recommended for use instead. The
tagName property for ISINDEX returns INPUT.
The ISINDEX element is an inline element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the ISINDEX element to replace the default prompt.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ISINDEX Element | ISINDEX... LABEL DHTML
Web Workshop | DHTML, HTML & CSS
KBD Element | KBD Object
Renders text in a fixed-width font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the KBD element to render text in a fixed-width font.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
KBD Element | KBD Object LEGEND Element |
Web Workshop | DHTML, HTML & CSS
LABEL Element | LABEL Object
Specifies a label for another element on the page.
Remarks
To bind LABEL to another control, set the FOR attribute of the LABEL element equal
to the ID of the control. Binding LABEL to the NAME attribute of the control has no
effect. However, to submit a form, you must specify a NAME on the control to which
the LABEL element is being bound.
There are two ways to underline the designated access key. The rich text support in
the LABEL object makes it possible to wrap the U element around the character in the
label text specified by the accessKey property. If you prefer to use cascading style
sheets (CSS) to apply style formatting, enclose the designated character in a SPAN and
set the style to "text-decoration: underline".
If the user clicks the label, the onclick event goes to the label and then bubbles to the
control specified by the htmlFor property. Pressing the access key for the label is the
same as clicking the label.
The LABEL element is an inline element and requires a closing tag. Labels cannot be
nested.
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
This example uses the LABEL object and the accessKey property to set focus on a
text box.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LABEL Element | LABEL Obj... LI Element | LI O
Web Workshop | DHTML, HTML & CSS
LEGEND Element | LEGEND Object
Inserts a caption into the box drawn by the FIELDSET object.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LEGEND Element | LEGEND O... LINK Element
Web Workshop | DHTML, HTML & CSS
LI Element | LI Object
Denotes one item in a list.
Remarks
The TYPE attribute values disc, circle, and square apply to unordered lists; the
values 1, a, A, i, and I apply to ordered lists.
The LI element is an inline element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the LI element to create individual items in a directory list.
<DIR>
<LI>Art
<LI>History
<LI>Literature
<LI>Sports
<LI>Entertainment
<LI>Science
</DIR>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LI Element | LI Object LISTING Element | LIST
Web Workshop | DHTML, HTML & CSS
LINK Element | LINK Object
Enables the current document to establish links to external documents.
Remarks
The LINK element can be used only within the HEAD tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the LINK element to apply an external style sheet, called
styles.css, to the page.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LINK Element | LINK Objec... location Object
Web Workshop | DHTML, HTML & CSS
LISTING Element | LISTING Object
Renders text in a fixed-width font.
Remarks
This tag is no longer recommended. Use the PRE or SAMP tag instead.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LISTING Element | LISTING... MAP Element | M
Web Workshop | DHTML, HTML & CSS
location Object
Contains information about the current URL.
Remarks
The href property contains the entire URL, while the other properties contain portions
of the URL. The default property for the location object is location.href. For
example, setting location='http://microsoft.com' is equivalent to setting
location.href='http://microsoft.com'.
The browser immediately navigates to the specified URL when any of the properties
listed below are set.
Members
Applies To
document, window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
location Object MARQUEE Element | MARQUEE.
Web Workshop | DHTML, HTML & CSS
MAP Element | MAP Object
Contains coordinate data for client-side image maps.
Remarks
An image map is a graphic image, with predefined regions, that contains links to other
documents or anchors. For example, you could create an image of the solar system
containing links that the user can click to navigate to pages for the individual planets.
The MAP object is referenced with the USEMAP attribute in an IMG element, as
follows:
A MAP element contains a set of AREA elements defining the linking regions in the
image.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example provides the full code for an image map of the solar system. It creates
links from the image map to individual images of the planets using the AREA element
with the MAP element, COORDS value, and SHAPE attribute. The user clicks the sun or
any planet to link to an individual image. To return to the solar system image map, the
user clicks the Back button.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MAP Element | MAP Object MENU Element | ME
Web Workshop | DHTML, HTML & CSS
MARQUEE Element | MARQUEE Object
Creates a scrolling text marquee.
Remarks
The default width of the MARQUEE element is equal to the width of its parent
element. When a MARQUEE is in a TD that does not specify a width, you should
explicitly set the width of MARQUEE. If neither the MARQUEE nor the TD has a width
specified, the marquee is collapsed to a 1-pixel width.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the MARQUEE element to scroll the marquee from left to right
across the screen, moving it 10 pixels every 200 milliseconds.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MARQUEE Element | MARQUEE... META Elemen
Web Workshop | DHTML, HTML & CSS
MENU Element | MENU Object
Creates an unordered list of items.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the MENU element to create a menu with two items.
<MENU>
<LI>This is the first item in the menu.
<LI>And this is the second item in the menu.
</MENU>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
.">
Remarks
The META element also embeds document information that some search engines use
to index and categorize documents on the World Wide Web.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
META Element | META Objec... NEXTID Object
Web Workshop | DHTML, HTML & CSS
navigator Object
Contains information about the Web browser.
Remarks
Members
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
navigator Object NOBR Element | NOBR Objec.
Web Workshop | DHTML, HTML & CSS
NEXTID Object
Creates unique identifiers that text editing software can read.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NEXTID Object NOFRAMES Element | NOFRAM.
Web Workshop | DHTML, HTML & CSS
NOBR Element | NOBR Object
Renders text without line breaks.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
This example uses the NOBR element to prevent text lines from breaking.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOBR Element | NOBR Objec... NOSCRIPT Elem
Web Workshop | DHTML, HTML & CSS
NOFRAMES Element | NOFRAMES Object
Contains HTML for browsers that do not support FRAMESET elements.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the NOFRAMES element to specify HTML that is rendered by
browsers incapable of displaying frames.
<FRAMESET>
<NOFRAMES>You need Internet Explorer version 3.0 or later to
view
frames!</NOFRAMES>
</FRAMESET>
See Also
FRAME
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOFRAMES Element | NOFRAM... OBJECT Elem
Web Workshop | DHTML, HTML & CSS
NOSCRIPT Element | NOSCRIPT Object
Specifies HTML to be displayed in browsers that do not support scripting.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOSCRIPT Element | NOSCRI... OL Element | O
Web Workshop | DHTML, HTML & CSS
OBJECT Element | OBJECT Object
Inserts an object into the HTML page.
Remarks
Possible return values (those generated by DHTML Object Model properties) on the
OBJECT element depend on the implementation of the OBJECT. For example, the
readyState property returns null or error if the OBJECT does not implement a
readyState property. DHTML Object Model properties available for an OBJECT depend
on the content of the OBJECT. For information about supported properties, see the
documentation for the individual object.
Events are sent directly to the OBJECT element. If the event is returned by the
embedded object, it bubbles accordingly. If the event is not returned, it does not
bubble.
Note You can use the object property for the OBJECT element to reconcile DHTML
Object Model members that are duplicated by the OBJECT element's implementation
and by DHTML. For instance, if the OBJECT implements an item method, and DHTML
implements an item method, use document.all.objectID.object.item() to access
the one defined for the OBJECT.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses script to define event handlers on the OBJECT element.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OBJECT Element | OBJECT O... OPTION Elemen
Web Workshop | DHTML, HTML & CSS
OL Element | OL Object
Draws lines of text as a numbered list.
Remarks
The TYPE attribute sets the list type for all ensuing lists unless a different type value is
set.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<OL>
<LI>This is the first item in the list.
<LI>And this is the second item in the list.
</OL>
<OL START=3>
<LI>This is item number 3.
</OL>
<OL TYPE=A>
<LI>This is item A.
</OL>
See Also
LI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OL Element | OL Object P Element | P Object
Web Workshop | DHTML, HTML & CSS
OPTION Element | OPTION Object
Denotes one choice in a SELECT element.
Remarks
Although OPTION elements do not appear in the all collection, you can gain access to
these elements by applying the options collection to the SELECT element.
You can add OPTION elements only to a SELECT element located in the same window
where the OPTION elements are created.
Except for background-color and color, style settings applied through the style object
for the OPTION element are ignored. In addition, style settings applied directly to
individual options override those applied to the containing SELECT element as a
whole.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the OPTION element to create individual items in a drop-down list
box.
This example uses the options collection to append the selected item of the list box in
a text area.
<SCRIPT LANGUAGE="JScript">
function fnChange(){
oData.value+=oCars.options[oCars.selectedIndex].text + "\n";
}
</SCRIPT>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OPTION Element | OPTION O... PARAM Elemen
Web Workshop | DHTML, HTML & CSS
P Element | P Object
Denotes a paragraph.
Remarks
The P element is a block element and does not require a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<P>This is a paragraph.</P>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
P Element | P Object PLAINTEXT Element | PLA
Web Workshop | DHTML, HTML & CSS
PARAM Element | PARAM Object
Sets the property value for a given object.
Remarks
The PARAM element is valid within the APPLET, EMBED, and OBJECT elements.
Members
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PARAM Element | PARAM Obj... PRE Element |
Web Workshop | DHTML, HTML & CSS
PLAINTEXT Element | PLAINTEXT Object
Renders text in a fixed-width font without processing tags.
Remarks
Members
See Also
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PLAINTEXT Element | PLAIN... Q Element | Q O
Web Workshop | DHTML, HTML & CSS
PRE Element | PRE Object
Renders text in a fixed-width font.
Remarks
Text within the PRE element is formatted. Spaces and carriage returns are preserved.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the PRE element to format text so that it renders exactly as it's
typed.
<PRE>
This text is formatted
exactly
as
it
is
typed.
</PRE>
See Also
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PRE Element | PRE Object RT Element | RT Obj
Web Workshop | DHTML, HTML & CSS
Q Element | Q Object
Sets apart a quotation in text.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
Members
Example
<P>He said,
<Q>"Hi there!"</Q>
See Also
BLOCKQUOTE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Q Element | Q Object RUBY Element | RUBY Ob
Web Workshop | DHTML, HTML & CSS
RT Element | RT Object
Designates the ruby text for the RUBY element.
Remarks
A ruby is an annotation or pronunciation guide for a string of text. The string of text
annotated with a ruby is referred to as the base.
The ruby text specified by the RT element is positioned above or inline with the
rubyPosition property. Browsers that do not support the RT element render the ruby
text inline with the base text.
The RT element is an inline element and does not require a closing tag.
Members
Example
<RUBY>
Base Text
<RT>Ruby Text
</RUBY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
See Also
RUBY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RT Element | RT Object rule Object DHTML O
Web Workshop | DHTML, HTML & CSS
RUBY Element | RUBY Object
Designates an annotation or pronunciation guide to be placed above or inline with a string
of text.
Remarks
A ruby is an annotation or pronunciation guide for a string of text. The string of text
annotated with a ruby is referred to as the base.
The only valid object within the RUBY element is the RT element. Text not contained
within the ruby text object, RT, is assumed to be a part of the base.
Members
Example
This example uses the RUBY element to specify the first string of text as the base,
and the RT element to specify the second string of text as the ruby.
<RUBY>
Base Text
<RT>Ruby Text
</RUBY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
See Also
RT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RUBY Element | RUBY Objec... runtimeStyle Ob
Web Workshop | DHTML, HTML & CSS
rule Object
Represents a style within a cascading style sheet (CSS) that consists of a selector and one
or more declarations.
Remarks
The rule object defines a set of CSS attributes applied to a set of HTML elements. For
example, a rule consisting of the selector H1 and the declaration font-family:Arial
defines all H1 elements to render in the Arial font.
Members
Example
This example uses a rule object consisting of the selector H1 to define a single rule
that changes the H1 heading(s) in a document to red.
<STYLE>
H1 { color: red }
</STYLE>
If the style sheet containing the preceding rule is the first style sheet in the document,
the following code returns the rule object associated with the rule.
oRule=document.styleSheets(0).rules(0)
See Also
rules
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
rule Object S Element | S Object DHTML Obje
Web Workshop | DHTML, HTML & CSS
runtimeStyle Object
Represents the cascaded format and style of the object that overrides the format and style
specified in global style sheets, inline styles, and HTML attributes.
Remarks
The runtimeStyle object sets and retrieves the format and style of an object, and
overrides existing formats and styles in the process. Other than having precedence
over the style object and not persisting, the runtimeStyle object is equivalent to the
style object.
Members
Example
This example sets a value on the runtimeStyle object to affect the currentStyle
object, but not the style object.
<SCRIPT>
function fnChangeValue(sValue){
if(oDIV.runtimeStyle.backgroundColor ==
oDIV.style.backgroundColor){
sValue="";
}
oDIV.runtimeStyle.backgroundColor = sValue;
alert(oDIV.style.backgroundColor +
"\n" + oDIV.currentStyle.backgroundColor +
"\n" + oDIV.runtimeStyle.backgroundColor);
}
</SCRIPT>
<DIV ID = "oDIV">
This is a demonstration DIV.
</DIV>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, rule, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
currentStyle
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
runtimeStyle Object SAMP Element | SAMP Obj
Web Workshop | DHTML, HTML & CSS
S Element | S Object
Renders text in strike-through type.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the S element to render the text with a line through it.
See Also
STRIKE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
S Element | S Object screen Object DHTML O
Web Workshop | DHTML, HTML & CSS
SAMP Element | SAMP Object
Specifies a code sample.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
CODE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SAMP Element | SAMP Objec... SCRIPT Elemen
Web Workshop | DHTML, HTML & CSS
screen Object
Contains information about the client's screen and rendering capabilities.
Remarks
Members
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
screen Object SELECT Element | SELECT O...
Web Workshop | DHTML, HTML & CSS
SCRIPT Element | SCRIPT Object
Specifies a script for the page that is interpreted by a script engine.
Remarks
Code within the SCRIPT block that is not contained within a function is executed
immediately as the page is loaded. To keep scripts from being displayed on down-level
browsers, nest the SCRIPT block within a COMMENT block.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SCRIPT Element | SCRIPT O... selection Object
Web Workshop | DHTML, HTML & CSS
SELECT Element | SELECT Object
Denotes a list box or drop-down list.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the SELECT element to create a drop-down list box.
This example uses the SELECT element to create a multi-select list box by setting the
SIZE and MULTIPLE attributes. To retrieve the selected options for a multi-select list
box, iterate through the options collection and check to see where SELECTED is set to
true.
This example adds a new option to the end of an existing SELECT list. The new Option
constructor can also be used in Microsoft® JScript® (compatible with ECMA 262
language specification).
<SCRIPT LANGUAGE="JScript">
var oOption = document.createElement("OPTION");
oOption.text="Apples";
oOption.value="5";
document.all.oMyList.add(oOption);
</SCRIPT>
See Also
OPTION
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SELECT Element | SELECT O... SMALL Element
Web Workshop | DHTML, HTML & CSS
selection Object
Represents the active selection, which is a highlighted block of text, and/or other elements
in the document on which a user or a script can carry out some action.
Remarks
You typically use the selection object as input from the user to identify which portion
of the document to act on, or as output to the user to show the results of an action.
Users and scripts can create selections. Users create selections by dragging the mouse
over a portion of the document. Scripts create selections by calling the select method
on a text range or similar object. To retrieve the active selection, apply the selection
keyword to the document object. To carry out work on a selection, create a text range
object from the selection using the createRange method.
A document can have only one selection at a time. The selection has a type that
determines whether it is empty or contains a block of text and/or elements. Although
an empty selection contains nothing, you can use it to mark a position in the
document.
Members
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
selection Object SPAN Element | SPAN Objec...
Web Workshop | DHTML, HTML & CSS
SMALL Element | SMALL Object
Specifies that the enclosed text should be displayed in a smaller font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the SMALL element to display text in a smaller font.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SMALL Element | SMALL Obj... STRIKE Element
Web Workshop | DHTML, HTML & CSS
SPAN Element | SPAN Object
Specifies an inline text container.
Remarks
This element is especially useful for applying cascading style sheets (CSS) styles.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the SPAN element to create an inline text container that changes
the color of a word to blue.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SPAN Element | SPAN Objec... STRONG Elemen
Web Workshop | DHTML, HTML & CSS
STRIKE Element | STRIKE Object
Renders text in strike-through type.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STRIKE Element | STRIKE O... STYLE Element
Web Workshop | DHTML, HTML & CSS
STRONG Element | STRONG Object
Renders text in bold.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the STRONG element to emphasize text in boldface type.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STYLE Element | STYLE Obj... styleSheet Objec
Web Workshop | DHTML, HTML & CSS
style Object
Represents the current settings of all possible inline styles for a given element.
Remarks
Inline styles are cascading style sheets (CSS) style assignments that you apply directly
to individual HTML elements using the STYLE= attribute. Use the style object to
examine these assignments and to make new assignments or change existing ones.
To retrieve the style object, apply the style keyword to an element object. To
retrieve the current setting for an inline style, apply the corresponding style property
to the style object.
The style object does not provide access to the style assignments in style sheets. To
obtain information about styles in style sheets, use the styleSheets collection to access
to the individual style sheets defined in the document.
The following properties are not available when the rule object accesses the style
object: posHeight, posWidth, posTop, posLeft, pixelHeight, pixelWidth, pixelTop, and
pixelLeft.
Members
Example
This example uses the style object to set the document body text font to Verdana.
document.body.style.fontFamily = "Verdana"
This example positions all absolutely positioned images in the given document at the
top of the document.
This example copies the inline style of the second element (div2) to the first (div1)
while preserving the styles of the second. The background color of div1 is overwritten
during the assignment.
<SCRIPT>
div1.style.cssText += (';' + div2.style.cssText);
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, rule, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STRONG Element | STRONG O... style Object
Web Workshop | DHTML, HTML & CSS
STYLE Element | style Object
Specifies a style sheet for the page.
Remarks
The STYLE element should appear in the HEAD section of an HTML document.
Microsoft® Internet Explorer 4.0 and later permit multiple style blocks.
Members
Example
This example encloses style declarations in the STYLE tag and changes one of those
settings using the style object.
<HEAD>
<STYLE>
BODY { background-color: white; color: black; }
H1 { font: 8pt Arial bold; }
P { font: 10pt Arial; text-indent: 0.5in; }
A { text-decoration: none; color: blue; }
</STYLE>
<SCRIPT>
oParagraph.style.fontSize = 14;
</SCRIPT>
</HEAD>
<BODY>
<P>Sample Paragraph Text</P>
</BODY>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
style Object SUB Element | SUB Object DHTM
Web Workshop | DHTML, HTML & CSS
styleSheet Object
Represents a single style sheet in the document.
Remarks
You can use this object to retrieve style sheet information, such as the URL of the
source file for the style sheet and the element in the document that owns (defines) the
style sheet. You also can use it to modify style sheets.
You can retrieve a styleSheet object from the styleSheets collection or from the
imports collection. Each item in these collections is a style sheet. A styleSheet object
is available for a style sheet only if it is included in a document with a STYLE or LINK
element, or with an @import statement in a STYLE element.
Members
Example
This example uses the styleSheet object to change the cascading style sheets (CSS)
values of inline and imported styles.
<STYLE>
BODY {background-color: #CFCFCF;}
@import url("otherStyleSheet.css");
</STYLE>
<SCRIPT>
window.onload=fnInit;
function fnInit(){
// Access a rule in the styleSheet, change backgroundColor to
blue.
var oStyleSheet=document.styleSheets[0];
var oRule=oStyleSheet.rules[0];
oRule.backgroundColor="#0000FF";
// Add a rule for P elements to have yellow backgrounds.
oStyleSheet.addRule("P","background-color: #FFFF00;");
// Change and imported rule:
oStyleSheet.imports[0].color="#000000";
}
</SCRIPT>
Applies To
styleSheets
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
styleSheet Object SUP Element | SUP Object
Web Workshop | DHTML, HTML & CSS
SUB Element | SUB Object
Specifies that the enclosed text should be displayed in subscript, using a smaller font than
the current font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the SUB element to change some of the text to a subscript font.
(X<SUB>1</SUB>,Y<SUB>1</SUB>)
See Also
SUP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SUB Element | SUB Object TABLE Element | TA
Web Workshop | DHTML, HTML & CSS
SUP Element | SUP Object
Specifies that the enclosed text should be displayed in superscript, using a smaller font
than the current font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the SUP element to change some of the text to a superscript font.
(X<SUP>2</SUP> + Y<SUP>2</SUP>)
See Also
SUB
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SUP Element | SUP Object TBODY Element | TB
Web Workshop | DHTML, HTML & CSS
TABLE Element | TABLE Object
Specifies that the contained content is organized into a table with rows and columns.
Remarks
The following tags are valid within a table: CAPTION, COL, COLGROUP, TBODY, TD,
TFOOT, TH, THEAD, and TR.
The TABLE object model is read-only for databound tables. For example, script used
to remove a table row works correctly on an unbound table, but not on a databound
table. The properties of a table object are still available, but changes to the bound
data in a table must be made to the data source.
The properties of a table are distinct from the properties of cells contained within the
table. For example, the offsetLeft property of a multicolumn table is not the same as
the offsetLeft property of the left-most cell in the table. Refer to the appropriate
object when writing scripts involving table and/or cell objects.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the TABLE element with THEAD, TR, and TH to create a table with
three rows and two columns.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TABLE Element | TABLE Obj... TD Element | TD
Web Workshop | DHTML, HTML & CSS
TBODY Element | TBODY Object
Designates rows as the body of the table.
Remarks
TD
TH
TR
This element is exposed for all tables, even if the table does not explicitly define a
TBODY element.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the TBODY element with the TABLE, TD, THEAD, and TR objects to
create a table with the first row in the table head and the second row in the table
body.
<TABLE>
<THEAD>
<TR>
<TD>
This text is in the THEAD.
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>
This text is in the TBODY.
</TD>
</TR>
</TBODY>
</TABLE>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TBODY Element | TBODY Obj... TEXTAREA Elem
Web Workshop | DHTML, HTML & CSS
TD Element | TD Object
Specifies a cell in a table.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TD Element | TD Object TextNode Object DHT
Web Workshop | DHTML, HTML & CSS
TEXTAREA Element | TEXTAREA Object
Specifies a multiline text input control.
Remarks
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the TEXTAREA element to set the cascading style sheets (CSS)
overflow attribute to "hidden" to remove the scroll bars from the TEXTAREA.
See Also
INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TEXTAREA Element | TEXTAR... TextRange Obje
Web Workshop | DHTML, HTML & CSS
TextNode Object
Represents a string of text as a node in the document hierarchy.
Remarks
Use the createTextNode method to create a TextNode object. Once you create the
TextNode, you can add to it using the appendChild, replaceNode, or insertBefore
methods.
Members
Example
This example uses the TextNode object to change the text of an LI object.
<SCRIPT>
function fnChangeText(){
var oTextNode = document.createTextNode("New List Item 1");
var oReplaceNode = oItem1.firstChild.replaceNode(oTextNode);
}
</SCRIPT>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TextNode Object TextRectangle Object DHTML
Web Workshop | DHTML, HTML & CSS
TextRange Object
Represents text in an HTML element.
Remarks
Use this object to retrieve and modify text in an element, to locate specific strings in
the text, and to carry out commands that affect the appearance of the text.
Modify the extent of the text range by moving its start and end positions with methods
such as move, moveToElementText, and findText. Within the text range, you can
retrieve and modify plain text or HTML text. These forms of text are identical except
that HTML text includes HTML tags, and plain text does not.
This feature might not be available on non-Win32® platforms. See article q172976
I
in the Microsoft® Knowledge Base for the latest information on Internet Explorer
cross-platform compatibility.
Members
Example
This example changes the text of a BUTTON element to "Clicked" through the
TextRange object.
<SCRIPT LANGUAGE="JScript">
var b = document.all.tags("BUTTON");
if (b!=null) {
var r = b[0].createTextRange();
if (r != null) {
r.text = "Clicked";
}
}
</SCRIPT>
See Also
createTextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TextRange Object TFOOT Element | TFOOT Obj
Web Workshop | DHTML, HTML & CSS
TextRectangle Object
Specifies a rectangle that contains a line of text in either an element or a TextRange
object.
Remarks
In the following excerpt from the Gettysburg Address, four TextRectangle objects are
contained in the B element (bold text).
1. "our fathers"
2. "brought forth . . . a new nation, conceived in liberty"
3. "and dedicated to the proposition that all men are"
4. "created equal"
If you resize the window containing this text, the TextRectangle objects do not
update. Since the objects are a snapshot of the layout, the objects should update
following after an onresize event occurs.
Members
Example
This example uses the TextRectangle collection with the getClientRects and
getBoundingClientRect methods to determine the position of the text rectangle
within an element. In each line, the left-justified text does not extend to the right
margin of the box that contains the text. Using this collection, you can determine the
coordinates of the rectangle that surrounds only the content in each line. The example
code reads these rectangle coordinates and instructs the ball to move over the text
only, and not to the end of the line.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TextRectangle Object TH Element | TH Object
Web Workshop | DHTML, HTML & CSS
TFOOT Element | TFOOT Object
Designates rows as the table's footer.
Remarks
TD
TH
TR
The TFOOT element is a block element and requires a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the TFOOT element with the TABLE, TBODY, TD, and TR objects to
create a table with the first row in the table body and the second row in the table
footer.
<TABLE>
<TBODY>
<TR>
<TD>
This text is in the table body.
</TD>
</TR>
</TBODY>
<TFOOT>
<TR>
<TD>
This text is in the table footer.
</TD>
</TR>
</TFOOT>
</TABLE>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TFOOT Element | TFOOT Obj... THEAD Element
Web Workshop | DHTML, HTML & CSS
TH Element | TH Object
Specifies a header column. Header columns are centered within the cell and are bold.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
See Also
TD, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TH Element | TH Object TITLE Element | TITLE
Web Workshop | DHTML, HTML & CSS
THEAD Element | THEAD Object
Designates rows as the table's header.
Remarks
TD
TH
TR
The THEAD element is a block element and requires a closing tag.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the TFOOT element with the TABLE, TBODY, TD, and TR objects to
create a table with the first row in the table header and the second row in the table
body.
<TABLE>
<THEAD>
<TR>
<TD>
This text is in the table header.
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>
This text is in the table body.
</TD>
</TR>
</TBODY>
</TABLE>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
THEAD Element | THEAD Obj... TR Element | T
Web Workshop | DHTML, HTML & CSS
TITLE Element | title Object
Contains the title of the document.
Remarks
This element can be used only within the HEAD element. Any text between the opening
and closing TITLE tags displays in the browser title bar and in the Microsoft®
Windows® taskbar. In Web pages, "Microsoft Internet Explorer" is appended to the
title. In HTML Applications, by contrast, only the specified title appears.
Members
Example
This example uses the TITLE element to specify a title for the document.
<HEAD>
<TITLE>"Welcome to Internet Explorer!"</TITLE>
</HEAD>
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TITLE Element | TITLE Obj... TT Element | TT O
Web Workshop | DHTML, HTML & CSS
TR Element | TR Object
Specifies a row in a table.
Remarks
The TR element does not explicitly support the HEIGHT attribute. To achieve the same
effect, use the cascading style sheets (CSS) height attribute.
To change the HTML in the TR element, use the table object model. For example, use
the rowIndex property or the rows collection to retrieve a reference to a specific table
row. You can add or delete rows using the insertRow and deleteRow methods. To
retrieve a reference to a specific cell, use the cellIndex property or the cells collection.
You can add or delete rows using the insertCell and deleteCell methods. To change the
content of a particular cell, use the innerHTML or innerText property.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
The following examples show how to create a table row in HTML and script.
See Also
TABLE, borderCollapse
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TR Element | TR Object U Element | U Object
Web Workshop | DHTML, HTML & CSS
TT Element | TT Object
Renders text in a fixed-width font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
See Also
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TT Element | TT Object UL Element | UL Object
Web Workshop | DHTML, HTML & CSS
U Element | U Object
Renders text that is underlined.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
U Element | U Object userProfile Object DHTM
Web Workshop | DHTML, HTML & CSS
UL Element | UL Object
Draws lines of text as a bulleted list.
Remarks
The TYPE attribute sets the list type for all ensuing lists unless a different type value is
set.
The UL element inherits its line-height from the height of the font attribute for the
BODY. For example, if the font-size attribute for the BODY is larger than the font-size
attribute for the UL element, the list items in the UL are spaced according to the font-
size of the BODY.
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
<UL>
<LI>This is the first bulleted item in the list.
<LI>And this is the second bulleted item in the list.
</UL>
See Also
LI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
UL Element | UL Object VAR Element | VAR Obj
Web Workshop | DHTML, HTML & CSS
userProfile Object
Provides methods that allow a script to request read access to and perform read actions on
a user's profile information.
Remarks
The script request is queued before reading or writing is performed. This simplifies
user experience, because users are prompted only once for profile release permissions
for a batch of requests.
Members
Example
This script example runs on the client and uses the userProfile object to read various
values from the profile information.
// The script can now use the 'name' and 'gender' variables
// to personalize content or to send information back to the
server.
Applies To
clientInformation, navigator
See Also
profile assistantI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
userProfile Object WBR Element | WBR Object
Web Workshop | DHTML, HTML & CSS
VAR Element | VAR Object
Renders text in a small fixed-width font.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the VAR element to render the word "filename" in a small fixed-
width font.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VAR Element | VAR Object window Object DH
Web Workshop | DHTML, HTML & CSS
WBR Element | WBR Object
Inserts a soft line break into a block of NOBR text.
Remarks
This element is available in HTML as of Microsoft® Internet Explorer 3.0, and in script
as of Internet Explorer 4.0.
Members
Example
This example uses the WBR element to create line breaks. In contrast, the NOBR
element does not break lines.
<NOBR>This line of text will not break, no matter how narrow the
window gets.</NOBR>
<NOBR>This one, however,<WBR> will break after the word
"however,"
if the window gets small enough.</NOBR>
See Also
BR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
WBR Element | WBR Object XML Element | XML
Web Workshop | DHTML, HTML & CSS
window Object
Represents an open window in the browser.
Remarks
You can use the window object to retrieve information about the state of the window.
You also can use this object to gain access to the document in the window, to the
events that occur in the window, and to features of the browser that affect the window.
Typically, the browser creates one window object when it opens an HTML document.
However, if a document defines one or more frames (that is, contains one or more
FRAME or IFRAME tags), the browser creates one window object for the original
document and one additional window object for each frame. These additional objects
are child windows of the original window and can be affected by actions that occur in
the original. For example, closing the original window causes all child windows to close.
You can also create new windows (and corresponding window objects) using methods
such as open, showModalDialog, and showModelessDialog.
You can apply any window property, method, or collection to any variable or expression
that evaluates to a window object, regardless of how that window was created.
Additionally, you can access all window properties, methods, and collections in the
current window by using the property, method, or collection name directly—that is,
without prefixing it with an expression that evaluates to the current window object.
However, to help make more readable code and to avoid potential ambiguities, many
authors use the window keyword when accessing window properties, methods, and
collections for the current window. This keyword always refers to the current window.
Note Window property, method, and collection names are reserved keywords and
cannot be used as the names of variables and routines.
Windows CE
In Microsoft® Windows® CE, the document object is not available through scripting for
a window opened using the open method.
Members
Example
This example checks whether the current window contains child windows and, if it
does, displays the names of those child windows.
if ( window.frames != null ) {
for ( i = 0; i< window.frames.length; i++ )
window.alert ("Child window " +i+ " is named
"+window.frames(i).name);
}
This example shows a simple event handler function for the window's onload event. In
the absence of a "window" element, the BODY element hosts the following window
object events: onblur, onbeforeunload, onfocus, onload, and onunload.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
window Object XMP Element | XMP Object DH
Web Workshop | DHTML, HTML & CSS
XML Element | XML Object
Defines an xml data island on an HTML page.
I
Remarks
The readyState property of the XML element, available as a string value, corresponds
to the readystate property of the xmldomdocument object, which is available as a
I I
long value. The string values correspond to the long values of the XML document
object's property as follows:
0 uninitialized
1 loading
2 loaded
3 interactive
4 complete
Use the following two methods to check the value of the readyState property to
determine whether the XML data island is completely downloaded.
if (xmldoc.readyState == "complete")
window.alert ("The XML document is ready.");
if (xmldoc.XMLDocument.readyState == 4)
window.alert ("The XML document is ready.");
Members
Example
This example uses the XML element to define a simple XML data island that can be
embedded directly into an HTML page.
<XML ID="oMetaData">
<METADATA>
<AUTHOR>John Smith</AUTHOR>
<GENERATOR>Visual Notepad</GENERATOR>
<PAGETYPE>Reference</PAGETYPE>
<ABSTRACT>Specifies a data island</ABSTRACT>
</METADATA>
</XML>
This script example retrieves the text contained within the ABSTRACT field of the data
island.
var oNode =
oMetaData.XMLDocument.selectSingleNode("METADATA/ABSTRACT");
alert(oNode.text);
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
XML Element | XML Object DHTML Objects
Web Workshop | DHTML, HTML & CSS
XMP Element | XMP Object
Renders text used for examples in a fixed-width font.
Remarks
Use of this element is no longer recommended. Use the PRE or SAMP element
instead.
Members
See Also
TT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT Element | INPUT Obj... INPUT type=che
Web Workshop | DHTML, HTML & CSS
INPUT type=button Element | INPUT type=button Object
Creates a button control.
Remarks
The button element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the button element to define a button that responds appropriately
when clicked.
See Also
BUTTON, INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=button Element... INPUT type=file
Web Workshop | DHTML, HTML & CSS
INPUT type=checkbox Element | INPUT type=checkbox Object
Creates a check box control.
Remarks
When a checkbox element is selected, a name/value pair is submitted with the FORM.
The default value of checkbox is on.
The height and width styles are exposed to the checkbox element as of Microsoft®
Internet Explorer 5. The size of the element is set based on the values provided by the
author, except when a given size is below a particular minimum. The size is calculated
as follows:
If the height or width is greater than 20 pixels, the padding around the check
box is set to 4 pixels, and the inner height or width is set to 8 pixels.
If the height or width is less than 20 pixels but greater than 13 pixels, the
padding around the check box is equal to one half the specified height or width
minus 13. For example, if the specified width of the check box is 17, the
equation would be: (17-13)/2.
If the height or width is less than 12 pixels, the padding around the check box
is set to 0 and the inner width is set to the value specified by the author.
The checkbox element is an inline element and does not require a closing tag.
Members
Example
This example uses the checkbox element to create two check boxes with explanatory
text. The onclick events call two script functions. The first check box is checked.
This example implements the script when the user clicks either check box.
<SCRIPT>
function choosebox1(){
alert("Never play leapfrog with a unicorn!")
}
function choosebox2(){
SampText.insertAdjacentHTML("AfterBegin","Buy
WonderWidgets! ");
}
</SCRIPT>
The preceding HTML code and script examples create and implement the following
check boxes:
See Also
INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=checkbox Eleme... INPUT type=hid
Web Workshop | DHTML, HTML & CSS
INPUT type=file Element | INPUT type=file Object
Creates a file upload object with a text box and Browse button.
Remarks
To handle a file upload to the server, a server-side process must be running that can
handle multipart/form-data submissions. For example, the microsoft posting acceptor
I
allows Microsoft® Internet Information Server to accept file uploads. Additional
Common Gateway Interface (CGI) scripts that can handle multipart/form-data
submissions are available on the Web.
The file element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 4.0.
The file upload add-on is required to use the file element in Internet Explorer 3.02.
Users can enter a file path in the text box or click the Browse button to browse the file
system.
Members
Example
The following examples use the file element to upload a file to a server. The first
example requires Microsoft® Posting Acceptor, which can be used with Internet
Information Server (IIS) or Personal Web Server.
See Also
INPUT, upload files to the internet information server , uploading a file to iis using a
I
browser
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=file Element |... INPUT type=imag
Web Workshop | DHTML, HTML & CSS
INPUT type=hidden Element | INPUT type=hidden Object
Transmits state information about client/server interaction.
Remarks
This input type presents no control to the user, but sends the value of the value
property with the submitted form.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=hidden Element... INPUT type=pas
Web Workshop | DHTML, HTML & CSS
INPUT type=image Element | INPUT type=image Object
Creates an image control that, when clicked, causes the form to be immediately
submitted.
Remarks
The x-coordinate is submitted under the name of the control with .x appended, and the
y-coordinate is submitted under the name of the control with .y appended. Any value
property is ignored. The src property specifies the image element the same way it
specifies the IMG element.
The image element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
See Also
IMG, INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=image INPUT type=radio DHTML
Web Workshop | DHTML, HTML & CSS
INPUT type=password Element | INPUT type=password Object
Creates a single-line text entry control similar to the text control, except that text is not
displayed as the user enters it.
Remarks
The password element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses script to determine whether the password is valid for the specified
user.
<SCRIPT>
if (txtUser.value == "Paul")
if (txtPassword.value == "2ifbysea")
{
alert("Password accepted. Enjoy your ride.");
return true;
}
</SCRIPT>
See Also
INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=password INPUT type=submit D
Web Workshop | DHTML, HTML & CSS
INPUT type=radio Element | INPUT type=radio Object
Creates a radio button control.
Remarks
Use a radio button control to limit a user's selection to a single value within a set of
values. To do this, you must link together each button in a set of radio buttons by
assigning each button the same name.
When a user submits a form, a selected radio button only generates a name/value
pair in the form data if the button has a value.
To select a radio button as the default button in a set, set the checked property of the
button to true.
A user can select a radio button only if the button has a name. To clear a selected
radio button, a user must select another button in the set.
The radio element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the radio element to create three radio buttons.
This example uses script to detect which radio button the user selects.
<SCRIPT>
function detect()
{
if (radio[0].checked)
alert("You're between 1 and 10 years old.")
else if (radio[1].checked)
alert("You're 11 years old.")
else
alert("You're between 12 and 120 years old.")
}
</SCRIPT>
The preceding HTML code and script examples create and implement the following
radio buttons.
11 years old
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=radio INPUT type=submit DHTM
Web Workshop | DHTML, HTML & CSS
INPUT type=reset Element | INPUT type=reset Object
Creates a button that, when clicked, resets the form's controls to their initial values.
Remarks
The value property specifies the label displayed on the Reset button the same way it
specifies it on the Submit button.
The reset element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
See Also
BUTTON, INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=reset INPUT type=text DHTML O
Web Workshop | DHTML, HTML & CSS
INPUT type=submit Element | INPUT type=submit Object
Creates a button that, when clicked, submits the form.
Remarks
Use the value attribute to create a button with a display label that cannot be edited by
the user. The default label is application-specific. If the user clicks the Submit button to
submit the form, and that button has a name attribute specified, that button
contributes a name/value pair to the submitted data.
The submit element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
See Also
BUTTON, INPUT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
INPUT type=submit INS Element | INS Object
Web Workshop | DHTML, HTML & CSS
INPUT type=text Element | INPUT type=text Object
Creates a single-line text entry control.
Remarks
The SIZE attribute sets the number of visible characters in the text element. The
MAXLENGTH attribute sets the maximum number of characters that can be entered.
The text element is an inline element and does not require a closing tag.
This element is available in HTML and script as of Microsoft® Internet Explorer 3.0.
Members
Example
This example uses the text element to create an empty text control that can contain
15 characters without requiring the user to scroll to read all of the text.
This example uses script to detect the content of the text box and display it in a dialog
box.
<SCRIPT>
function detectEntry()
{
alert("Your name is " + textbox.value)
}
</SCRIPT>
The preceding HTML code and script examples implement the following text box. Click
the What Is Your Name? button to call the detectEntry() function.
See Also
INPUT, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
!important Declaration DHTML References
Web Workshop | DHTML, HTML & CSS
DHTML Properties
The following table lists the properties in the Dynamic HTML Object Model. For
properties that appear in multiple table cells, roll the mouse over the text to view a
ToolTip indicating the objects to which the property applies. Click the text to jump to
a full description of that property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
empty Method execScript Method DHTML Met
Web Workshop | DHTML, HTML & CSS
execCommand Method
Executes a command over the given selection or text range.
Syntax
Parameters
sCommand Required. String that specifies the command to execute, which can be any valid command identifier.
bUserInterface Optional. Boolean that specifies one of the following values:
false Default. Does not display a user interface.
true Displays a user interface, if the command supports one.
vValue Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on sCommand.
Return Value
Remarks
Do not invoke the execCommand method until after the page loads.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
prompt Method queryCommandIndeterm Meth.
Web Workshop | DHTML, HTML & CSS
queryCommandEnabled Method
Returns whether the command can be successfully executed using execCommand, given
the current state of the document.
Syntax
bEnabled = object.queryCommandEnabled(sCmdID)
Parameters
Return Value
Remarks
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
queryCommandEnabled Metho... queryComman
Web Workshop | DHTML, HTML & CSS
queryCommandIndeterm Method
Returns whether the specified command is in the indeterminate state.
Syntax
bIndeterminate = object.queryCommandIndeterm(sCmdID)
Parameters
Return Value
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
queryCommandIndeterm Meth... queryComma
Web Workshop | DHTML, HTML & CSS
queryCommandState Method
Returns the current state of the command.
Syntax
bDone = object.queryCommandState(sCmdID)
Parameters
Return Value
Boolean. Returns true if the given command has been executed on the object, false if
it has not, and null if it is not possible to determine the command state.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
queryCommandState Method queryCommandV
Web Workshop | DHTML, HTML & CSS
queryCommandSupported Method
Returns whether the current command is supported on the current range.
Syntax
bSupported = object.queryCommandSupported(sCmdID)
Parameters
Return Value
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
queryCommandSupported Met... recalc Method
Web Workshop | DHTML, HTML & CSS
queryCommandValue Method
Returns the current value of the given command.
Syntax
vCmdValue = object.queryCommandValue(sCmdID)
Parameters
Return Value
String or Boolean. Returns a string representing the command value if the command is
supported, or true/false otherwise.
Remarks
If the command returns a value, such as a color, rather than a true/false state, this
command retrieves the current value of the document or range.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BlockDirLTR Command | IDM... Command Iden
Web Workshop | DHTML, HTML & CSS
BackColor Command | IDM_BACKCOLOR Command ID
Sets or retrieves the background color of the current selection.
Scripting Information
Command BackColor
execCommand vValue Required. String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BlockDirRTL Command | IDM... BrowseMode Co
Web Workshop | DHTML, HTML & CSS
Bold Command | IDM_BOLD Command ID
Toggles the current selection between bold and nonbold.
Scripting Information
Command Bold
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BrowseMode Command | IDM_... Copy Comma
Web Workshop | DHTML, HTML & CSS
IECMDID_CLEAR_AUTOCOMPLETE_FOR_FORMS Command ID
Clears saved forms data.
C++ Information
IECMDID_ARG_CLEAR_FORMS_ALL=0
IECMDID_ARG_CLEAR_FORMS_ALL_BUT_PASSWORDS=1
IECMDID_ARG_CLEAR_FORMS_PASSWORDS_ONLY=2
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IECMDID_CLEAR_AUTOCOMPLET... CreateBook
Web Workshop | DHTML, HTML & CSS
Copy Command | IDM_COPY Command ID
Copies the current selection to the clipboard.
Scripting Information
Command Copy
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Copy Command | IDM_COPY C... CreateLink Co
Web Workshop | DHTML, HTML & CSS
CreateBookmark Command | IDM_BOOKMARK Command ID
Retrieves the name of a bookmark anchor or creates a bookmark anchor for the current
selection or insertion point.
Scripting Information
Command CreateBookmark
execCommand vValue Required. String that specifies a valid anchor name. Providing an empty string will create the tag but will leave the anchor
name blank.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CreateBookmark Command | ... Cut Command
Web Workshop | DHTML, HTML & CSS
CreateLink Command | IDM_HYPERLINK Command ID
Inserts a hyperlink on the current selection.
Scripting Information
Command CreateLink
execCommand vValue Required. String that specifies a URL. Providing an empty string will leave the URL blank.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CreateLink Command | IDM_... Delete Comman
Web Workshop | DHTML, HTML & CSS
Cut Command | IDM_CUT Command ID
Copies the current selection to the clipboard and then deletes it.
Scripting Information
Command Cut
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Cut Command | IDM_CUT Com... DirLTR Comm
Web Workshop | DHTML, HTML & CSS
Delete Command | IDM_DELETE Command ID
Deletes the current selection.
Scripting Information
Command Delete
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
EditMode Command | IDM_ED... FontName Com
Web Workshop | DHTML, HTML & CSS
Find Command | IDM_FIND Command ID
Finds and selects text in the current document.
Scripting Information
Command Find
execCommand vValue Required. String that specifies the text to be found.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Find Command | IDM_FIND C... FontSize Comm
Web Workshop | DHTML, HTML & CSS
FontName Command | IDM_FONTNAME Command ID
Sets or retrieves the font for the current selection.
Scripting Information
Command FontName
execCommand vValue Required. String that specifies a legal font name, as described by the FONT attribute.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FontName Command | IDM_FO... ForeColor Co
Web Workshop | DHTML, HTML & CSS
FontSize Command | IDM_FONTSIZE Command ID
Sets or retrieves the font size for the current selection.
Scripting Information
Command FontSize
execCommand vValue Required. String that specifies the font size, as described by the size attribute. This must be a value between 0 and 7,
inclusive.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FontSize Command | IDM_FO... FormatBlock Co
Web Workshop | DHTML, HTML & CSS
ForeColor Command | IDM_FORECOLOR Command ID
Sets or retrieves the foreground (text) color of the current selection.
Scripting Information
Command ForeColor
execCommand vValue Required. String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ForeColor Command | IDM_F... IDM_FONT Com
Web Workshop | DHTML, HTML & CSS
FormatBlock Command | IDM_BLOCKFMT Command ID
Sets or retrieves the current block format tag.
Scripting Information
Command FormatBlock
execCommand vValue Optional. String that specifies a valid block formatting tag.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Remarks
The available block formatting strings may change in subsequent releases of the
MSHTML component. Call IOleCommandTarget::Exec with the IDM_GETBLOCKFMTS
Command ID to obtain the current list of available block formatting commands that
can be passed with the IDM_BLOCKFMT Command ID.
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IDM_GETBLOCKFMTS Command ... InlineDirLTR
Web Workshop | DHTML, HTML & CSS
Indent Command | IDM_INDENT Command ID
Increases the indent of the selected text by one indentation increment.
Scripting Information
Command Indent
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InlineDirRTL Command | ID... InsertFieldset Co
Web Workshop | DHTML, HTML & CSS
InsertButton Command | IDM_BUTTON Command ID
Overwrites a button control on the current selection.
Scripting Information
Command InsertButton
execCommand vValue Optional. String that specifies an identifier for the button control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertButton Command | ID... InsertHorizontal
Web Workshop | DHTML, HTML & CSS
InsertFieldset Command | IDM_INSFIELDSET Command ID
Overwrites a box on the current selection.
Scripting Information
Command InsertFieldset
execCommand vValue Optional. String that specifies an identifier for the box.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertFieldset Command | ... InsertIFrame Com
Web Workshop | DHTML, HTML & CSS
InsertHorizontalRule Command | IDM_HORIZONTALLINE
Command ID
Overwrites a horizontal line on the current selection.
Scripting Information
Command InsertHorizontalRule
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertHorizontalRule Comm... InsertImage Com
Web Workshop | DHTML, HTML & CSS
InsertIFrame Command | IDM_IFRAME Command ID
Overwrites an inline frame on the current selection.
Scripting Information
Command InsertIFrame
execCommand vValue Optional. String that specifies an identifier for the inline frame.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertIFrame Command | ID... InsertInputButto
Web Workshop | DHTML, HTML & CSS
InsertImage Command | IDM_IMAGE Command ID
Overwrites an image on the current selection.
Scripting Information
Command InsertImage
execCommand vValue Optional. String that specifies the path and name of the image file to be inserted.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Remarks
If no path is provided for the image file, the path will default to the location of the
current document.
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertImage Command | IDM... InsertInputChe
Web Workshop | DHTML, HTML & CSS
InsertInputButton Command | IDM_INSINPUTBUTTON
Command ID
Overwrites a button control on the current selection.
Scripting Information
Command InsertInputButton
execCommand vValue Optional. String that specifies an identifier for the button control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputButton Command... InsertInputFileU
Web Workshop | DHTML, HTML & CSS
InsertInputCheckbox Command | IDM_CHECKBOX Command ID
Overwrites a check box control on the current selection.
Scripting Information
Command InsertInputCheckbox
execCommand vValue Optional. String that specifies an identifier for the check box control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputCheckbox Comma... InsertInputHidd
Web Workshop | DHTML, HTML & CSS
InsertInputFileUpload Command | IDM_INSINPUTUPLOAD
Command ID
Overwrites a file upload control on the current selection.
Scripting Information
Command InsertInputFileUpload
execCommand vValue Optional. String that specifies an identifier for the file upload control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputFileUpload Com... InsertInputImage
Web Workshop | DHTML, HTML & CSS
InsertInputHidden Command | IDM_INSINPUTHIDDEN
Command ID
Inserts a hidden control on the current selection.
Scripting Information
Command InsertInputHidden
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputHidden Command... InsertInputPass
Web Workshop | DHTML, HTML & CSS
InsertInputImage Command | IDM_INSINPUTIMAGE Command
ID
Overwrites an image control on the current selection.
Scripting Information
Command InsertInputImage
execCommand vValue Optional. String that specifies an identifier for the image control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputImage Command ... InsertInputRad
Web Workshop | DHTML, HTML & CSS
InsertInputPassword Command | IDM_INSINPUTPASSWORD
Command ID
Overwrites a password control on the current selection.
Scripting Information
Command InsertInputPassword
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputPassword Comma... InsertInputRese
Web Workshop | DHTML, HTML & CSS
InsertInputRadio Command | IDM_RADIOBUTTON Command ID
Overwrites a radio control on the current selection.
Scripting Information
Command InsertInputRadio
execCommand vValue Optional. String that specifies an identifier for the radio control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputRadio Command ... InsertInputSubm
Web Workshop | DHTML, HTML & CSS
InsertInputReset Command | IDM_INSINPUTRESET Command
ID
Overwrites a reset control on the current selection.
Scripting Information
Command InsertInputReset
execCommand vValue Optional. String that specifies an identifier for the reset control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputReset Command ... InsertInputText
Web Workshop | DHTML, HTML & CSS
InsertInputSubmit Command | IDM_INSINPUTSUBMIT
Command ID
Overwrites a submit control on the current selection.
Scripting Information
Command InsertInputSubmit
execCommand vValue Optional. String that specifies an identifier for the submit control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputSubmit Command... InsertMarquee
Web Workshop | DHTML, HTML & CSS
InsertInputText Command | IDM_TEXTBOX Command ID
Overwrites a text control on the current selection.
Scripting Information
Command InsertInputText
execCommand vValue Optional. String that specifies an identifier for the text control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertInputText Command |... InsertOrderedLis
Web Workshop | DHTML, HTML & CSS
InsertMarquee Command | IDM_MARQUEE Command ID
Overwrites an empty marquee on the current selection.
Scripting Information
Command InsertMarquee
execCommand vValue Optional. String that specifies an identifier for the marquee.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertMarquee Command | I... InsertParagraph
Web Workshop | DHTML, HTML & CSS
InsertOrderedList Command | IDM_ORDERLIST Command ID
Toggles the current selection between an ordered list and a normal format block.
Scripting Information
Command InsertOrderedList
execCommand vValue Optional. String that specifies an identifier for the ordered list.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Remarks
If the previous format block is already an ordered list, this command identifier will
append the current format block to that previous ordered list.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertOrderedList Command... InsertSelectDro
Web Workshop | DHTML, HTML & CSS
InsertParagraph Command | IDM_PARAGRAPH Command ID
Overwrites a line break on the current selection.
Scripting Information
Command InsertParagraph
execCommand vValue Optional. String that specifies an identifier for the paragraph.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertParagraph Command |... InsertSelectList
Web Workshop | DHTML, HTML & CSS
InsertSelectDropdown Command | IDM_DROPDOWNBOX
Command ID
Overwrites a drop-down selection control on the current selection.
Scripting Information
Command InsertSelectDropdown
execCommand vValue Optional. String that specifies an identifier for the drop-down selection control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertSelectDropdown Comm... InsertTextArea
Web Workshop | DHTML, HTML & CSS
InsertSelectListbox Command | IDM_LISTBOX Command ID
Overwrites a list box selection control on the current selection.
Scripting Information
Command InsertSelectListbox
execCommand vValue Optional. String that specifies an identifier for the list box selection control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertSelectListbox Comma... InsertUnorderedL
Web Workshop | DHTML, HTML & CSS
InsertTextArea Command | IDM_TEXTAREA Command ID
Overwrites a multiline text input control on the current selection.
Scripting Information
Command InsertTextArea
execCommand vValue Optional. String that specifies an identifier for the text input control.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertTextArea Command | ... Italic Command
Web Workshop | DHTML, HTML & CSS
InsertUnorderedList Command | IDM_UNORDERLIST Command
ID
Toggles the current selection between an ordered list and a normal format block.
Scripting Information
Command InsertUnorderedList
execCommand vValue Optional. String that specifies an identifier for the unordered list.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Remarks
If the previous format block is already an ordered list, this command identifier will
append the current format block to that previous ordered list.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InsertUnorderedList Comma... JustifyCenter Co
Web Workshop | DHTML, HTML & CSS
Italic Command | IDM_ITALIC Command ID
Toggles the current selection between italic and nonitalic.
Scripting Information
Command Italic
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Italic Command | IDM_ITAL... JustifyFull Comm
Web Workshop | DHTML, HTML & CSS
JustifyCenter Command | IDM_JUSTIFYCENTER Command ID
Centers the format block in which the current selection is located.
Scripting Information
Command JustifyCenter
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
JustifyFull Command | IDM... JustifyNone Comm
Web Workshop | DHTML, HTML & CSS
JustifyLeft Command | IDM_JUSTIFYLEFT Command ID
Left-justifies the format block in which the current selection is located.
Scripting Information
Command JustifyLeft
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
JustifyNone Command | IDM... Open Command
Web Workshop | DHTML, HTML & CSS
JustifyRight Command | IDM_JUSTIFYRIGHT Command ID
Right-justifies the format block in which the current selection is located.
Scripting Information
Command JustifyRight
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Open Command | IDM_OPEN C... OverWrite Co
Web Workshop | DHTML, HTML & CSS
Outdent Command | IDM_OUTDENT Command ID
Decreases by one increment the indentation of the format block in which the current
selection is located.
Scripting Information
Command Outdent
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Outdent Command | IDM_OUT... Paste Comma
Web Workshop | DHTML, HTML & CSS
OverWrite Command | IDM_OVERWRITE Command ID
Toggles the text-entry mode between insert and overwrite.
Scripting Information
Command OverWrite
execCommand vValue Optional. Boolean that specifies the text-entry mode. If the value is set to true (the default), the text-entry mode is
overwrite. If set to false, it is insert.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OverWrite Command | IDM_O... PlayImage Com
Web Workshop | DHTML, HTML & CSS
Paste Command | IDM_PASTE Command ID
Overwrites the contents of the clipboard on the current selection.
Scripting Information
Command Paste
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Redo Command | IDM_REDO C... RemoveForm
Web Workshop | DHTML, HTML & CSS
Refresh Command | IDM_REFRESH Command ID
Refreshes the current document.
Scripting Information
Command Refresh
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Refresh Command | IDM_REF... RemoveParaFo
Web Workshop | DHTML, HTML & CSS
RemoveFormat Command | IDM_REMOVEFORMAT Command ID
Removes the formatting tags from the current selection.
Scripting Information
Command RemoveFormat
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SaveAs Command | IDM_SAVE... SizeToControl
Web Workshop | DHTML, HTML & CSS
SelectAll Command | IDM_SELECTALL Command ID
Selects the entire document.
Scripting Information
Command SelectAll
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SuperScript Command | IDM... Underline Comm
Web Workshop | DHTML, HTML & CSS
UnBookmark Command | IDM_UNBOOKMARK Command ID
Removes any bookmark from the current selection.
Scripting Information
Command UnBookmark
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
UnBookmark Command | IDM_... Undo Comma
Web Workshop | DHTML, HTML & CSS
Underline Command | IDM_UNDERLINE Command ID
Toggles the current selection between underlined and not underlined.
Scripting Information
Command Underline
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Undo Command | UNDO Comma... Unselect Co
Web Workshop | DHTML, HTML & CSS
Unlink Command | IDM_UNLINK Command ID
Removes any hyperlink from the current selection.
Scripting Information
Command Unlink
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Unlink Command | IDM_UNLI... Command Iden
Web Workshop | DHTML, HTML & CSS
Unselect Command | IDM_CLEARSELECTION Command ID
Clears the current selection.
Scripting Information
Command Unselect
execCommand vValue Not applicable.
Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported,
queryCommandValue
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
In implementing dhtml behavi... DHTML, HTML &
Web Workshop | DHTML, HTML & CSS
Default Behaviors Reference
dhtml behaviors provide a means for Web developers to extend the Microsoft® Internet
I
Explorer current object model. A number of behaviors have been implemented as part of
Internet Explorer 5 and are referred to as default behaviors.
The following links provide access to the object model exposed by these default behaviors.
Behaviors
Properties
Methods
Events
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ISO Latin-1 Character Set DHTML References
Web Workshop | DHTML, HTML & CSS
HTML Character Sets
Character sets determine how the bytes that represent the text of your HTML document
are translated to readable characters. Microsoft® Internet Explorer interprets the bytes in
your document according to the applied character set translations. It interprets numeric or
hex character references ("〹" or "ሴ") as ISO10646 code points,
consistent with the Unicode Standard, version 2.0, and independent of the chosen
character set. Named entities ("&") are displayed independently of the chosen character
set as well. The display of an arbitrary numeric character reference requires the existence
of a font that is able to display that particular character on the user's system. Accordingly,
the content in the first column of the following tables may not render as expected on all
systems.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
all Collection DHTML References
Web Workshop | DHTML, HTML & CSS
DHTML Collections
The following is a list of the collections exposed by the Dynamic
HTML Object Model.
Did you find this topic useful? Suggestions for other topics? write
us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onabort Event DHTML References
Web Workshop | DHTML, HTML & CSS
DHTML Events
The following events are exposed by the Dynamic HTML Object Model.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
add DHTML References
Web Workshop | DHTML, HTML & CSS
DHTML Methods
The following is a list of the methods exposed by the
Dynamic HTML Object Model.
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Color Table In dhtml tutorialsInt DHTML Reference
Web Workshop | DHTML, HTML & CSS
Tips and Tricks
As with any type of programming, writing bug-free, efficient scripts that meet your
expectations takes a bit of work. The following sections provide some tips and hints to
make that work take less time and go more smoothly.
function msieversion()
// Return Microsoft Internet Explorer (major) version number, or 0
for others.
// This function works by finding the "MSIE " string and extracting
the version number
// following the space, up to the decimal point for the minor
version, which is ignored.
{
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 ) // is Microsoft Internet Explorer;
return version number
return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".",
msie ) ) )
else
return 0 // is other browser
}
This function runs on most browsers and returns either the major version number for any
Microsoft Internet Explorer browser or zero for all other browsers. Use of this function
ensures that the script will be compatible with future versions of Internet Explorer.
Scripts should always check version numbers greater than or equal to a target version so
as to be compatible with future versions. Existing scripts that check for userAgent equal to
"MSIE 3" should be changed to check the version correctly so that these scripts will
recognize Internet Explorer 4.0, which supports all of the functionality of the previous
version.
The following example shows how to correctly check the client browser version.
if ( msieversion() >= 4 )
document.alert( "This is IE4 or later - safe to use all IE4
features" )
else if ( msieversion() >= 3 )
document.alert( "This is IE3 - safe to use ActiveX" )
else
document.alert( "This is not IE" )
Canceling a Button Click
The following HTML example shows a common scripting mistake related to event handling
and canceling the default action.
<HTML>
<HEAD><TITLE>Canceling the Default Action</TITLE>
<SCRIPT LANGUAGE=
"JScript"> function askConfirm()
{ return window.confirm ("Choose OK to follow hyperlink, Cancel
to
not.")
}
</SCRIPT> <BODYonload="b3.onclick=askConfirm">
<!-- Try links with different hookups - should be canceled by
"Cancel" to confirm dialog. -->
</BODY>
</HTML>
The first A element in this example does not work properly. Without the return in the
onclick JScript expression, the browser interprets the function expression, throws away the
resulting value, and leaves the default action unaffected.
The other A elements correctly bind the return value to the event, hence the default action
can be canceled when false is returned.
Preventing a Document From Being Cached
You can prevent a document from being cached by adding the following META tag to the
document.
Preventing the document from being cached ensures that a fresh copy of the document will
always be retrieved from the site, even during the user's current session, regardless of
how the user has set the browser's caching options. This is useful if the content of the
document changes frequently.
Using Objects
Objects are ActiveX® Controls or other similar components that provide custom
capabilities and services for HTML documents. You can add a control to your document by
using the OBJECT element, and you can gain access to the capabilities and services of the
control by using its properties and methods from script.
When using objects, be aware that Dynamic HTML extends every object by providing these
additional properties:
If a control has properties with these same names, you will not be able to access the
properties unless you preface the name with the object property. For example, assume
that an ActiveX control is added to the document by using the following:
In this example, there are two widths: an extended property set within the OBJECT
element, and a property belonging to the control that is set using the PARAM element. To
access these from script, you use the following code:
var tickDuration;
tickDuration = 50;
var activeObjectCount;
var activeObjects;
var itemDeactivated;
var tickGeneration;
tickGeneration = 0;
function initializePath(e) {
e.waypointX = new Array();
e.waypointY = new Array();
e.duration = new Array();
function compact() {
var i, n, c;
n = new Array();
c = 0;
itemDeactivated = false;
for (i=0; i<activeObjectCount; i++) {
if (activeObjects[i].active == true) {
n[c] = activeObjects[i];
c++;
}
}
activeObjects = n;
activeObjectCount = c;
}
function tick(generation) {
//alert("tick: "+generation);
if (itemDeactivated)
compact();
if (activeObjectCount == 0) {
return;
}
else {
for (i=0; i<activeObjectCount; i++) {
moveElement(activeObjects[i]);
}
window.setTimeout("tick("+generation+");", tickDuration);
}
}
function start(e) {
if (itemDeactivated)
compact();
activeObjects[activeObjectCount] = e;
activeObjectCount++;
if (activeObjectCount == 1) {
tickGeneration++;
tick(tickGeneration);
}
}
if (e.waypointX == null)
return;
startX = e.waypointX[startPoint];
startY = e.waypointY[startPoint];
endX = e.waypointX[endPoint];
endY = e.waypointY[endPoint];
duration = e.duration[endPoint];
e.ticks = duration / tickDuration;
e.endPoint = endPoint;
e.active = true;
e.currTick = 0;
e.style.posLeft = startX;
e.style.posTop = startY;
start(e);
}
function moveElement(e) {
e.style.posLeft += e.dx;
e.style.posTop += e.dy;
e.currTick++;
1. Load the script by using the src attribute of the SCRIPT element.
2. Initialize the paths by using the initializePath function.
3. Set the way points by using the addWaypoint function.
4. Set the path-complete handlers using the runWaypoint function.
<body>
<script src="htmlpath.js">
</script>
<script>
addWaypoint(Item4, 0, 0, 0, 0);
addWaypoint(Item4, 1, 200, 200, 2000);
function endfunction() {
// syntax for runWaypoint is Item, start point, end point
runWaypoint(Item3, 0, 1);
runWaypoint(Item4, 0, 1);
runWaypoint(Item5, 0, 1);
runWaypoint(Item6, 0, 1);
function endfunction2() {
runWaypoint(Item1, 0, 1);
}
Item1.onpathcomplete = endfunction;
Item6.onpathcomplete = endfunction2;
</script>
</body>
</html>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the latest
version. Then reload this page to view the sample.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DHTML, HTML & CSS
Web Workshop | DHTML, HTML & CSS
Visual Filters and Transitions Reference
With the introduction of Microsoft® Internet Explorer 4.0,
Web page authors can now apply multimedia-style effects to
their content through the use of visual filters and
transitions. These effects are implemented in Web pages
using a cascading style sheet (CSS) attribute. Visual filters
and transitions can be applied to standard HTML controls,
such as text containers, images, and any other windowless
object. Transitions are time-varying filters that can create a
transition from one visual state to another. By combining
filters and transitions with basic scripting, authors have a
powerful tool for creating visually engaging and interactive
documents.
Filters
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
!DOCTYPE Element
Web Workshop | DHTML, HTML & CSS
HTML Elements
The following topics list the set of elements defined by
HTML. The links take you to the element definitions, which
contain the set of members for the element.
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
font-variant Attribute | ... form Property DHT
Web Workshop | DHTML, HTML & CSS
font-weight Attribute | fontWeight Property
Sets or retrieves the weight of the font of the object.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
Key words for font-weight values are mapped to specific font variations depending on
the fonts that are installed on the user's computer. In many cases, the user cannot see
the difference between different font-weight settings because the system chooses the
closest match.
Setting the font-weight to 400 is equivalent to normal, and 700 is equivalent to bold.
A font-weight of bolder or lighter is interpreted relative to the parent object's
weight. A value of bolder for text whose parent is normal would set the text to bold.
Internet Explorer 3.0 supports the font-weight attribute through the font attribute.
Example
The following examples use the font-weight attribute and the fontWeight property
to change the font weight.
This example uses LI as a selector in an embedded (global) style sheet to set the font
weight to bolder.
<STYLE>
LI { font-weight:bolder }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the font weight to bolder when an
onmouseover event occurs.
<P STYLE="font-size:14"
onmouseover="this.style.fontWeight='bolder'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
font
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | Component
Development
Component Development
For navigation tips, please see using this site .
I
This section contains information you'll need to create
components for your Web pages, using either ActiveX™ or
Dynamic HTML scriptlet technology.
ActiveX
We recommend reading the ActiveX controls introduction
I
and overview for starters. For a sampling of the
I
technology's versatility, read using activex with asp ,
I
creating activex components in c++ , and the abcs of mfc
I
activex controls .
I
HTML Components
Get acquainted with the DHTML Scriptlets Introduction and
Overview before diving into the Container Object Reference
and the Object Model Extensions.
To See
Understand scriptlets and how they work Scriptlets Overview
Create scriptlets and add them to your applications Designing and Using
Scriptlets
Find descriptions of the properties, methods, and events that you can use Scriptlet Container
when including a scriptlet in your application Object Reference
Find descriptions of the properties, methods, and events that you can use Scriptlet Model
when creating a scriptlet Extensions
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Designing a Scriptlet
A scriptlet is simply a DHTML page that uses certain
conventions to define its properties, methods, and events.
Note You can determine from within the .htm file whether it
is being used as a scriptlet or simply as a standalone Web
page. For details, see the version property.
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Adding Scriptlets to Your Application
You can use scriptlets as you would any control.
<OBJECT ID="Scriptlet1"
TYPE="text/x-scriptlet"
DATA="http://myserver/sample.htm">
You can also resize the container object from within the
scriptlet by using a script to set the DHTML script object's
pixelHeight and pixelWidth properties. The following
example shows how you can resize the scriptlet container
when the scriptlet is first loaded.
<HTML ID="MyPage">
<HEAD>
<SCRIPT LANGUAGE="VBScript">
Sub window_onload()
MyPage.style.pixelHeight = 300
MyPage.style.pixelWidth = 400
End Sub
</SCRIPT>
</HEAD>
If you change the .htm file after creating the control, the
display in the control is not updated until the next time the
page is read. This occurs when the application is run or if
you change the url property of the control again.
ScriptContainer1.ToggleColor (0)
See Also
Scriptlets Overview
Designing a Scriptlet
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Defining Event Handlers
When you use a scriptlet in your host application, the
application can be notified about events that occur in the
scriptlet. The scriptlet can expose two types of events:
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
frozen Property Welcome to Scriptlet Tech...
Web Workshop | Component Development
event Property
Provides state information about a standard DHTML event passed from the scriptlet.
Applies To
Syntax
value = ScriptContainer.event.member
Remarks
This property is read-only. The event property provides a way to get state information
about any of the standard events passed from the scriptlet: onclick, ondblclick,
onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseup. This
property corresponds to the DHTML event object.
To get state information, you can query the values of the event property's members,
which include altKey, ctrlKey, keyCode, offsetX, offsetY, shiftKey,
srcElement, type, and others. The following example script illustrates how you can
use the event property to get more information about a standard event:
Sub ScriptContainer1_onkeyup()
MsgBox "The character typed was " &
ScriptContainer1.event.keyCode
MsgBox "The Alt key state was " &
ScriptContainer1.event.altKey
MsgBox "The Ctrl key state was " &
ScriptContainer1.event.ctrlKey
MsgBox "The Shift key state was " &
ScriptContainer1.event.shiftKey
MsgBox "The mouse was at " & offsetX & ", " & offsetY
MsgBox "The affected control was " &
ScriptContainer1.event.srcElement
MsgBox "The event was " & ScriptContainer1.event.type
End Sub
For more information about using the event property, refer to the event object in the
DHTML documentation.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
frozen Property scrollbar Property Welcome to
Web Workshop | Component Development
readyState Property
Returns information about the load state of the scriptlet hosted in the container object.
Applies To
Syntax
ScriptContainer.readyState = integer
Remarks
The readyState property returns an integer value between 1 and 4 indicating the load
state of the scriptlet, with the following values:
Value Definition
1 or 2 Undefined
3 Scriptlet text has been loaded, but controls on the scriptlet's .htm page might not yet be functional.
4 Scriptlet is completely loaded
In general, you should not attempt to access the scriptlet's functionality before the
readyState property is set to 4. You can check the value of this property in a handler for
the onreadystatechange event.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollbar Property selectableContent Propert...
Web Workshop | Component Development
scrollbar Property
Specifies whether the scriptlet container object displays a scrollbar.
Applies To
scriptlet
Syntax
window.external.scrollbar = boolean
Remarks
This property provides a way to set the scriptlet container object's scrollbar property from
within the scriptlet.
By default, the value of this property is false. If you set this property to true:
A vertical scrollbar always appears in the scriptlet container object. If the scriptlet's
height is less than the height of the scriptlet container object's window, the vertical
scrollbar is disabled.
A horizontal scrollbar appears if the scriptlet's width is greater than the width of the
scriptlet container object's window
To set the size of the scriptlet container object window from within the scriptlet, see
Adding Scriptlets to Your Application.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
selectableContent Propert... version Property
Web Workshop | Component Development
url Property
Specifies the Universal Resource Locator (URL) of the scriptlet's .htm file to be displayed in
the scriptlet container object.
Applies To
Syntax
ScriptContainer.url = URLString
Remarks
You can specify the URL of any .htm file, either local or on a Web server. This property can
be set at design time only.
Important If you are adding the scriptlet to a Web page, do not set this property to the
URL of the current page. Doing so causes a recursive call to the page and will cause the
browser stop functioning.
If you are using the scriptlet in a host application that has a Web context (such as Internet
Explorer), you can specify an absolute path (for example, http://myserver/start.htm) or a
relative path that does not include the protocol, or domain, or path (for example,
page2.htm). If you specify a relative URL, the path is relative to the page in which the
scriptlet appears.
If you specify a URL that is not valid, no error message is displayed, but the scriptlet
container object remains blank.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondblClick Event Welcome to Scriptlet Tech...
Web Workshop | Component Development
onclick Event
Sent when the scriptlet forwards an onclick event.
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
Applies To
Scriptlet container object
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onClick Event onkeyDown Event Welcome to
Web Workshop | Component Development
ondblclick Event
Sent when the scriptlet forwards an ondblclick event.
ScriptContainer_ondblClick()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondblClick Event onkeyPress Event Welcome
Web Workshop | Component Development
onkeydown Event
Sent when the scriptlet forwards an onkeydown event.
ScriptContainer_onkeydown()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeyDown Event onkeyUp Event Welcome to
Web Workshop | Component Development
onkeypress Event
Sent when the scriptlet forwards an onkeypress event.
Applies To
ScriptContainer_onkeypress()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
The scriptlet's handler calls the bubbleEvent method to pass the event to the host
application.
You can get information about the state of the event by querying the scriptlet object
container's event property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeyPress Event onmousedown, onmouseup E
Web Workshop | Component Development
onkeyup Event
Sent when the scriptlet forwards an onkeyup event.
Applies To
ScriptContainer_onkeyup()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
The scriptlet's handler calls the bubbleEvent method to pass the event to the host
application.
You can get information about the state of the event by querying the scriptlet object
container's event property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeyUp Event onmousemove Event Welcom
Web Workshop | Component Development
onmousedown, onmouseup Events
Sent when the scriptlet forwards an onmousedown or onmouseup event.
Applies To
ScriptContainer_onmousedown()
ScriptContainer_onmouseup()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
The scriptlet's handler calls the bubbleEvent method to pass the event to the host
application.
You can get information about the state of the event by querying the scriptlet object
container's event property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmousedown, onmouseup Ev... onreadystatec
Web Workshop | Component Development
onmousemove Event
Sent when the scriptlet forwards an onmousemove event.
Applies To
ScriptContainer_onmousemove()
JavaScript Syntax
Remarks
The scriptlet container object receives this event if both of these conditions are true:
The scriptlet's handler calls the bubbleEvent method to pass the event to the host
application.
You can get information about the state of the event by querying the scriptlet object
container's event property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmousemove Event onscriptletevent Event W
Web Workshop | Component Development
onreadystatechange Event
Sent to indicate whether the scriptlet has completed loading.
Applies To
ScriptContainer_onreadystatechange ()
JavaScript Syntax
Remarks
This event is fired multiple times while the scriptlet is loading. The final time, it indicates
that the scriptlet's .htm page is fully loaded and its scripts can be called. To test the
current state, you can get the value of the scriptlet container object's readystate property.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onreadystatechange Event Welcome to Scriptle
Web Workshop | Component Development
onscriptletevent Event
Notifies the scriptlet container object that a custom event has occurred in the scriptlet.
Applies To
Syntax
Parameters
eventName
eventObject
Note The exact content of both parameters depends on what information was passed in
the scriptlet's corresponding raiseEvent method.
Remarks
This event is the complement of the scriptlet's raiseEvent method. For more information,
see Defining Custom Events. For information about notifying the host application about
standard events, see Handling Standard Events.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
event Property readyState Property Welcome
Web Workshop | Component Development
frozen Property
Indicates whether the scriptlet container object is ready to handle events.
Applies To
Scriptlet
Syntax
boolean = window.external.frozen
Remarks
This property is read-only. When it is True, events will not be received by the scriptlet
container object because the container is not yet ready. When it is False, the container will
receive event notification.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollbar Property url Property Welcome to Sc
Web Workshop | Component Development
selectableContent Property
Specifies whether the user can select the contents of the scriptlet.
Applies To
Scriptlet
Syntax
window.external.selectableContent = boolean
Remarks
By default, the value of this property is false. If this property is true, users can select text
or objects in the scriptlet while it is shown in the scriptlet container object, and then copy
or drag them. If this property is false, users can click objects in the scriptlet, but cannot
select them.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
url Property Welcome to Scriptlet Tech...
Web Workshop | Component Development
version Property
Returns the version and platform of the scriptlet container object DLL.
Applies To
Scriptlet
Syntax
version = window.external.version
Remarks
1.0a win32
You can use the version property to determine whether the page is being used
as a scriptlet or as a standalone Web page. Use a statement such as the following:
If the value of controlMode is true after this statement has executed, the page
is being used as a scriptlet. Otherwise the page is being used as a standalone
page.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
raiseEvent Method Welcome to Scriptlet Tech...
Web Workshop | Component Development
bubbleEvent Method
Sends event notification for a standard event to the host application.
Applies To
Scriptlet
Syntax
window.external.bubbleEvent()
Remarks
Use this method to pass a standard DHTML event (such as onbuttonclick, onmousemove,
or onkeypress) from the scriptlet to the host application. For more details, see Handling
Standard Events.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bubbleEvent Method setContextMenu Method
Web Workshop | Component Development
raiseEvent Method
Passes a custom event notification from the scriptlet to the host application.
Applies To
Scriptlet
Syntax
Parameters
eventName
eventObject
A variant type that typically includes a reference to the object on the scriptlet that
triggered the event.
Remarks
This method is the complement of the scriptlet container object's onscriptletevent event.
Use this method to notify the host application about a non-standard event. For more
information, see Defining Custom Events. For information about notifying the host
application about standard events, see Handling Standard Events.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
raiseEvent Method Welcome to Scriptlet Tech...
Web Workshop | Component Development
setContextMenu Method
Constructs a context menu that is displayed when a user right-clicks a scriptlet in the
scriptlet container object.
Applies To
Scriptlet
Syntax
window.external.setContextMenu( menuDefinition )
Parameters
menuDefinition
Defines the command text and commands contained in the context menu. A one-
dimensional array in which the menu items are defined using sequences of two
elements, n and n+1.
Element n The command text. Shortcut keys are defined by preceding a letter with "&".
Element n+1 The method to be called when the command is chosen. You cannot pass parameters to the method.
Note Context menus can only be defined in scripts written in VBScript or JavaScript,
because only those languages can create arrays usable by the setContextMenu
method.
For example, the following script defines a context menu with three commands:
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BEHAVIOR Attribute | beha... BGCOLOR Attribu
Web Workshop | DHTML, HTML & CSS
behavior Attribute | behavior Property
Sets or retrieves the location of the dynamic html (dhtml) behavior .
I
Syntax
Possible Values
The property is read/write with no default value; the proposed cascading style sheets
(CSS) extension attribute is not inherited.
In the following Example section, one example demonstrates how two behaviors can
be applied to an element to achieve a combination of effects. Conflicts resulting from
applying multiple behaviors to an element are resolved based on the order in which the
behavior is applied to the element. Each succeeding behavior takes precedence over
the previous behavior in the order. For example, if multiple behaviors set the element's
color, the prevailing color is the one set by the behavior last applied to the element.
The same rule applies in resolving name conflicts, such as with property, method, or
event names exposed by multiple behaviors.
Once the behavior property has been defined for the element, the addBehavior
method can be used to dynamically attach additional behaviors to the element.
The following examples demonstrate various ways of applying the behavior property
on a page.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
WBR, XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DIRECTION Attribute | dir... DISABLED Attribut
Web Workshop | DHTML, HTML & CSS
direction Attribute | direction Property
Sets or retrieves the reading order of the specified object.
Syntax
HTML { direction:sDirection }
Scripting object.style.direction [ =sDirection ]
Possible Values
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP,
SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
dir
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
float Attribute | styleFl... font-family Attribute |
Web Workshop | DHTML, HTML & CSS
font Attribute | font Property
Sets or retrieves up to six separate font properties of the object.
Syntax
Possible Values
sFont String that specifies up to six of the space-delimited values listed first in the following table, plus one or more of the values listed after them:
font-style Any of the range of font-style values available to the fontStyle property.
font-variant Any of the range of font-variant values available to the fontVariant property.
font-weight Any of the range of font-weight values available to the fontWeight property.
font-size Any of the range of font-size values available to the fontSize property.
line-height Any of the range of line-height values available to the lineHeight property.
font-family Any of the range of font-family values available to the fontFamily property.
caption Text font used in objects that have captions (buttons, labels, and so on).
icon Text font used in icon labels.
menu Text font used in menus.
messagebox Text font used in dialog boxes.
smallcaption Text font used in small controls.
statusbar Text font used in window status bars.
The property is read/write with the default value set by the browser; the cascading
style sheets (CSS) attribute is inherited.
This is a composite property that specifies up to six font values, in the following order:
font-style, font-variant, font-weight, font-size, line-height, font-family. Setting
the font property also sets the component properties. In this case, the string must be
a combination of valid values for the component properties, with no more than one
value per property. If the string does not contain a value for a component property,
that property is set to its default.
Example
The following examples use the font attribute and the font property to change font
characteristics.
This example uses an inline style sheet to set the font attributes.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
@charset Rule @import Rule DHTML Propertie
Web Workshop | DHTML, HTML & CSS
@font-face Rule
Sets a font to embed in the HTML document.
Syntax
Possible Values
This feature allows you to use specific fonts that might not be available on your local
system. The URL should point to an embedded OpenType file (.eot or .ote format). The
file contains compressed font data that is converted to a TrueType font. For more
information about the font embedding feature and pointers to a tool for creating .eot
files, see font embedding .
I
Example
This example embeds a font in an HTML document by referencing its source from
another site.
<HTML>
<HEAD>
<STYLE>
@font-face {
font-family:comic;
src:url(http://valid_url/some_font_file.eot);
}
</STYLE>
</HEAD>
<BODY>
<P STYLE="font-family:comic;font-size:18pt">
This paragraph uses the font-face rule defined
in the above style element. The rule embeds
an OpenType file for the Comic Sans font.
</P>
</BODY>
</HTML>
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
font Attribute | font Pro... font-size Attribute | f
Web Workshop | DHTML, HTML & CSS
font-family Attribute | fontFamily Property
Sets or retrieves the name of the font used for text in the object.
Syntax
Possible Values
The property is read/write with the default value set by the browser; the cascading
style sheets (CSS) attribute is inherited.
The value is a prioritized list of font family names and/or generic family names. List
items are separated by commas to minimize confusion between multiple-word font
family names. If the font family name contains white space, it should be quoted with
single or double quotation marks; generic font family names are values and,
accordingly, no quotes should be used.
Because you don't know which fonts users have installed, you should provide a list of
alternatives with a generic font family at the end of the list. This list can include
embedded fonts. For more information about embedding fonts, see the @font-face
rule.
If fantasy is specified for generic-name, the text renders in the default font.
Example
The following examples use the font-family attribute and the fontFamily property to
change font characteristics.
This example uses a call to an embedded style sheet to set the font family.
<STYLE>
P { font-family:"Arial"}
.other { font-family:"Courier"}
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the font family when an onmousedown
event occurs.
<DIV onmousedown="this.style.fontFamily='Courier'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
font
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
font-family Attribute | f... fontSmoothingEnable
Web Workshop | DHTML, HTML & CSS
font-size Attribute | fontSize Property
Sets or retrieves the size of the font used for text in the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is inherited.
Negative values are not allowed. Font sizes using the proportional "em" measure are
based on the font size of the parent object.
Possible length values specified in a relative measurement, using the height of the
element's font (em) or the height of the letter "x" (ex), are supported in Internet
Explorer 4.0 and later.
Example
The following examples use the font-size attribute and the fontSize property to
change font characteristics.
This example sets the font size on several paragraphs using different size values.
<STYLE>
BODY{font-size: 10pt }
.P1 {font-size: 14pt }
.P2 {font-size: 75% }
.P3 {font-size: xx-large }
.P4 {font-size: larger }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the font size to 14pt when an onmouseover
event occurs.
<DIV STYLE="font-size:12pt"
onmouseover="this.style.fontSize='14pt'">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fontSmoothingEnabled Prop... font-variant Attr
Web Workshop | DHTML, HTML & CSS
font-style Attribute | fontStyle Property
Sets or retrieves the font style of the object as italic, normal, or oblique.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
The oblique value is available as of Internet Explorer 4.0. Internet Explorer 4.0
renders italic and oblique identically.
Example
The following examples use the font-style attribute and the fontStyle property to
change font characteristics.
This example uses H3 as a selector to set the font style to italic in H3 headings.
<STYLE>
H3 { font-style:italic }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the font style to italic when an
onmousedown event occurs.
<DIV onmousedown="this.style.fontStyle='italic'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
font
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
font-style Attribute | fo... font-weight Attribute
Web Workshop | DHTML, HTML & CSS
font-variant Attribute | fontVariant Property
Sets or retrieves whether the text of the object is in small capital letters.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
Example
The following examples use the font-variant attribute and the fontVariant property
to change the font to small capitals.
This example uses P as a selector in an embedded (global) style sheet to set the font
style to small-caps in all paragraphs.
<P STYLE="font-variant:small-caps">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the font style to small-caps when an
onmousedown event occurs.
<DIV onmousedown="this.style.fontVariant='small-caps'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
font
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ID Attribute | id Propert... indeterminate Prope
Web Workshop | DHTML, HTML & CSS
ime-mode Attribute | imeMode Property
Sets or retrieves the state of an Input Method Editor (IME).
Syntax
Possible Values
The property is read/write with a default value of auto; the proposed cascading style
sheets (CSS) extension attribute is inherited.
An Input Method Editor (IME) allows users to enter and edit Chinese, Japanese, and
Korean characters. The IME is an essential component for writing Chinese, Japanese,
and Korean scripts. These writing systems have more characters than can be encoded
for a regular keyboard. The IMEs for these languages use sequences of base
characters that describe an individual character or group of characters to enter a larger
set of characters. Base characters can be component letters from Hangul syllables,
phonetic components for Japanese Kanji characters, or various combinations for
Chinese characters.
To compose text with an IME, the user generally uses dictionary lookup and contextual
analysis, especially in languages where homonyms are frequent, as in Japanese. A
user typically starts by entering a few component characters, optionally selecting from
various choices, and a confirmation command.
Inactive mode. The keyboard acts like a regular keyboard and input is limited to
a small set of characters.
Active mode. The IME accepts component characters or processing commands.
HTML authors can provide users with some control by specifying an IME mode for a
specific text entry. For example, if Japanese users enter information in a registration
form, they might be required to enter their names in Kanji and Roman characters. By
default, the users would have to make sure that the IME is inactive when entering their
names in the Latin alphabet. The user would activate the IME to enter Kanji letters,
then deactivate the IME to complete the form in the Latin alphabet. By controlling the
IME mode, the HTML author prevents the user from having to activate and deactivate
the IME.
Example
Applies To
INPUT_text, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
lastModified Property layout-grid-char Attribut.
Web Workshop | DHTML, HTML & CSS
layout-grid Attribute | layoutGrid Property
Sets or retrieves the composite document grid properties that specify the layout of text
characters.
Syntax
Possible Values
The property is read/write with no default value; the proposed cascading style sheets
(CSS) extension attribute is inherited.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Example
This example uses the layout-grid attribute to specify character layout for a block of
text.
<STYLE>
DIV.layout { layout-grid: char line 12px 12px .5in }
</STYLE>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL,
OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid Attribute | l... layout-grid-char-spac
Web Workshop | DHTML, HTML & CSS
layout-grid-char Attribute | layoutGridChar Property
Sets or retrieves the size of the character grid used for rendering the text content of an
element.
Syntax
Possible Values
The property is read/write with a default value of none; the proposed cascading style
sheets (CSS) extension attribute is inherited.
The visual effects of the layout-grid-char attribute are similar to the lineHeight
property.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Note For this property to have an effect, the layout-grid-mode attribute must be set to
line or both.
Example
This example uses the layout-grid-char attribute to specify character layout for a
block of text.
<STYLE>
DIV.layout { layout-grid-char: auto }
</STYLE>
<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>
Applies To
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT,
PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid-char Attribut... layout-grid-line Attr
Web Workshop | DHTML, HTML & CSS
layout-grid-char-spacing Attribute | layoutGridCharSpacing
Property
Sets or retrieves the character spacing used for rendering the text content of an element
with the layout-grid-type attribute set to loose.
Syntax
Possible Values
The property is read/write with a default value of auto; the proposed cascading style
sheets (CSS) extension attribute is inherited.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Note For this property to have an effect, the layout-grid-mode attribute must be set to
char or both, and the layout-grid-type attribute must be set to loose.
Example
<STYLE>
DIV.layout { layout-grid-char-spacing: auto }
</STYLE>
<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>
Applies To
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT,
PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid-char-spacing ... layout-grid-mode A
Web Workshop | DHTML, HTML & CSS
layout-grid-line Attribute | layoutGridLine Property
Sets or retrieves the grid line value used for rendering the text content of an element.
Syntax
Possible Values
The property is read/write with a default value of none; the proposed cascading style
sheets (CSS) extension attribute is inherited.
The visual effects of the layout-grid-line attribute are similar to the lineHeight
property.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Note For this property to have an effect, the layout-grid-mode attribute must be set to
line or both.
Example
This example uses the layout-grid-line attribute to specify character layout for a
block of text.
<STYLE>
DIV.layout { layout-grid-line: auto }
</STYLE>
Applies To
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT,
PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid-line Attribut... layout-grid-type Attr
Web Workshop | DHTML, HTML & CSS
layout-grid-mode Attribute | layoutGridMode Property
Sets or retrieves whether the text layout grid uses two dimensions.
Syntax
Possible Values
The property is read/write with a default value of both; the proposed cascading style
sheets (CSS) extension attribute is inherited.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Example
This example uses the layout-grid-mode attribute to specify character layout for a
block of text.
<STYLE>
DIV.layout { layout-grid-mode: line }
</STYLE>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR, OBJECT,
OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid-mode Attribut... left Attribute | left
Web Workshop | DHTML, HTML & CSS
layout-grid-type Attribute | layoutGridType Property
Sets or retrieves the type of grid used for rendering the text content of an element.
Syntax
Possible Values
fixed Grid used for monospaced layout. The layout rules are as follows:
All noncursive characters are treated as equal; every character is centered within a single grid
space by default.
Runs of cursive characters are treated as strips the same way as in a strict grid.
Justification or any other character-width changing behaviors are disabled.
The property is read/write with a default value of loose; the proposed cascading style
sheets (CSS) extension attribute is inherited.
Web documents in East Asian languages, such as Chinese or Japanese, usually create a
page layout for characters using a one- or two-dimensional grid. You can use the
layout-grid attribute to incorporate this layout into Web documents.
Example
This example uses the layout-grid-type attribute to specify character layout for a
block of text.
<STYLE>
DIV.layout { layout-grid-type: strict }
</STYLE>
<DIV CLASS = "layout">
This is a block element containing a sentence of sample text.
</DIV>
Applies To
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT,
PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
letter-spacing Attribute ... line-height Attribute
Web Workshop | DHTML, HTML & CSS
line-break Attribute | lineBreak Property
Sets or retrieves line-breaking rules for Japanese text.
Syntax
Possible Values
The property is read/write with a default value of normal; the proposed cascading style
sheets (CSS) extension property is inherited.
ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP
See Also
wordBreak
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
line-break Attribute | li... link Pseudo-class D
Web Workshop | DHTML, HTML & CSS
line-height Attribute | lineHeight Property
Sets or retrieves the distance between lines in the object.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
Line height is the distance between the descender of the font and the top of the
internal leading of the font. A negative line height is allowed to achieve various
shadowing effects.
If a formatted line contains more than one object, the maximum line height applies. In
this case, negative values are not allowed.
Internet Explorer 3.0 supports the line-height attribute through the font attribute.
Example
The following examples use the line-height attribute and the lineHeight property to
control the height of paragraph lines.
<STYLE>
P { line-height:8mm}
BLOCKQUOTE { line-height:4mm }
</STYLE>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
This example uses inline scripting to set the distance between lines when an
onmouseover event occurs.
<DIV STYLE="font-size:14"
onmouseover="this.style.lineHeight='6mm'">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
length Property line-break Attribute | li... DHT
Web Workshop | DHTML, HTML & CSS
letter-spacing Attribute | letterSpacing Property
Sets or retrieves the amount of additional space between letters in the object.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
When specified as a positive length value, the letter-spacing attribute adds the
specified value to the default spacing between characters within an element. A
negative length value decreases the space between characters. Letter spacing can be
influenced by justification.
Example
The following examples use the letter-spacing attribute and the letterSpacing
property to change the space between letters.
<STYLE>
BLOCKQUOTE { letter-spacing:-0.2mm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the spacing to 1 millimeter when an
onmouseover event occurs.
<DIV STYLE="font-size:14"
onmouseover="this.style.letterSpacing='1mm'">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ROWSPAN Attribute | rowSp... ruby-overhang A
Web Workshop | DHTML, HTML & CSS
ruby-align Attribute | rubyAlign Property
Sets or retrieves the position of the ruby text specified by the RT object.
Syntax
Possible Values
The property is read/write with a default value of auto; the proposed cascading style
sheets (CSS) extension attribute is not inherited.
The rubyAlign property specifies the alignment of the ruby text defined by the RT
object, and is set on the RUBY object.
Example
This example uses the ruby-align attribute and the rubyAlign property to set the
alignment of the ruby text. It uses an inline style sheet to set the ruby-align attribute
to right.
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
RUBY
See Also
rubyPosition, rubyOverhang
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ruby-align Attribute | ru... ruby-position Attribu
Web Workshop | DHTML, HTML & CSS
ruby-overhang Attribute | rubyOverhang Property
Sets or retrieves the position of the ruby text specified by the RT object.
Syntax
Possible Values
The property is read/write with a default value of auto; the proposed cascading style
sheets (CSS) extension attribute is not inherited.
The rubyOverhang property specifies the overhang of the ruby text defined by the RT
object, and is set on the RUBY object.
Example
This example uses the ruby-overhang attribute and the rubyOverhang property to
set the overhang of the ruby text. It uses an inline style sheet to set the ruby-
overhang attribute to none.
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
RUBY
See Also
rubyAlign, rubyPosition
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ruby-overhang Attribute |... RULES Attribute |
Web Workshop | DHTML, HTML & CSS
ruby-position Attribute | rubyPosition Property
Sets or retrieves the position of the ruby text specified by the RT object.
Syntax
Possible Values
The property is read/write with a default value of above; the proposed cascading style
sheets (CSS) extension attribute is not inherited.
The rubyPosition property specifies the position of the ruby text defined by the RT
object, and is set on the RUBY object.
Example
This example uses the ruby-position attribute and the rubyPosition property to set
the position of the ruby text. It uses an inline style sheet to set the ruby-position
attribute to inline.
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
RUBY
See Also
rubyAlign, rubyOverhang
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text Property text-autospace Attribute ... DHT
Web Workshop | DHTML, HTML & CSS
text-align Attribute | textAlign Property
Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or
justified.
Syntax
Possible Values
The property is read/write with a default value of left; the cascading style sheets
(CSS) attribute is inherited.
Because this property is inherited, all block-level objects inside a DIV object having
textAlign=center are centered.
Example
This examples uses the text-align attribute and the textAlign property to align text
within the object.
This example uses P as a selector and two classes to call an embedded style sheet that
aligns the text according to the respective rule.
<STYLE>
P { text-align:center }
.align1 { text-align:right }
.align2 { text-align:justify }
</STYLE>
</HEAD>
<BODY>
<P onclick= "this.className='align1'"
ondblclick="this.className='align2'">
. . . </P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the alignment of the text when an
onmouseover event occurs.
<P STYLE="font-size:14"
onmouseover="this.style.textAlign='center'">
. . . </P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, INPUT type=password, INPUT type=text, LI,
LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TEXTAREA, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-autospace Attribute ... textDecorationBlink
Web Workshop | DHTML, HTML & CSS
text-decoration Attribute | textDecoration Property
Sets or retrieves whether the text in the object has blink, line-through, overline, or
underline decorations.
Syntax
Possible Values
The property is read/write with a default value of none (see the Remarks section); the
cascading style sheets (CSS) attribute is not inherited.
Default value is underline for A when used with href, U, and INS.
Default value is line-through for STRIKE, S, and DEL.
If the value none is placed at the end of the values, all values are cleared. For
example, setting {text-decoration: underline overline blink none} causes none of
the decorations to render.
If the object has no text (for example, the IMG object in HTML) or is an empty object
(for example, "<EM> </EM>"), this property has no effect.
If you set the text-decoration attribute to none on the BODY object, the A objects
are still underlined. To remove the underline from the A objects, either set the style
inline or use A as a selector in the global style sheet.
Specifying the textDecoration property for block elements affects all inline children.
If it is specified for, or affects, an inline element, it affects all boxes generated by the
element.
The overline and blink possible values are available as of Internet Explorer 4.0.
Although blink is exposed, it is not rendered.
Example
The following examples use the text-decoration attribute and the textDecoration
property to decorate text within the object.
This example uses an inline style sheet to draw a line through the text within the
object.
<DIV STYLE="text-decoration:line-through">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to underline the text within the SPAN object when
the user moves the mouse over the SPAN.
<SPAN STYLE="font-size:14"
onmouseover=this.style.textDecoration="underline"
:
</SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-indent Attribute | t... text-transform Attrib
Web Workshop | DHTML, HTML & CSS
text-justify Attribute | textJustify Property
Sets or retrieves the type of alignment used to justify text in the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the proposed cascading style
sheets (CSS) extension attribute is not inherited.
For this property to affect text layout, the text-align property must be set to justify.
Applies To
ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
textDecorationUnderline P... text-justify Attribu
Web Workshop | DHTML, HTML & CSS
text-indent Attribute | textIndent Property
Sets or retrieves the indentation of the text in the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is inherited.
The property can be negative. An indent is not inserted in the middle of an object that
was broken by another object (such as BR in HTML).
Example
The following examples use the text-indent attribute and the textIndent property to
indent the object's text.
This example uses calls to an embedded style sheet to change the indent on the text
when an onclick event occurs. The text was originally indented 2 centimeters using DIV
as a selector in the style sheet.
<STYLE>
DIV { text-indent:2cm }
.click1 { text-indent:50% }
.click2 { text-indent: }
</STYLE>
</HEAD>
<BODY>
<DIV onclick="this.className='click1'"
ondblclick="this.className='click2'">
. . . </DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to indent the text within the DIV when an
onmouseover event occurs.
<DIV onmouseover=this.style.textIndent="2cm"
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CENTER, currentStyle, DD, DFN, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, ISINDEX, LI, LISTING, MARQUEE,
MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TH, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-justify Attribute | ... tFoot Property DHTM
Web Workshop | DHTML, HTML & CSS
text-transform Attribute | textTransform Property
Sets or retrieves the rendering of the text in the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is inherited.
The following examples use the text-transform attribute and the textTransform
property to transform a block of text from lower case to upper case when the user
moves the mouse over the text. The text transforms back to lower case when the user
clicks the text.
This example uses three calls to an embedded (global) style sheet to transform the
text.
<STYLE>
.transform1 { text-transform:uppercase }
.transform2 { text-transform:lowercase }
.transform3 { text-transform:none }
</STYLE>
</HEAD>
<BODY>
<DIV STYLE="font-size:14"
onmouseover="this.className='transform1'"
onclick= "this.className='transform2'"
ondblclick="this.className='transform3'">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to transform the text when different mouse events
occur.
<DIV STYLE="font-size:14"
onmouseover="this.style.textTransform='uppercase'"
onmouseout="this.style.textTransform='lowercase'"
onclick="this.style.textTransform='none'">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... uniqueID Property
Web Workshop | DHTML, HTML & CSS
unicode-bidi Attribute | unicodeBidi Property
Sets or retrieves the level of embedding with respect to the bidirectional algorithm.
Syntax
HTML { unicode-bidi:sEmbedLevel }
Scripting object.unicodeBidi [ = sEmbedLevel ]
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
Remarks
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP,
SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VCARD_NAME Attribute | vc... visibility Attribut
Web Workshop | DHTML, HTML & CSS
vertical-align Attribute | verticalAlign Property
Sets or retrieves the vertical positioning of the object.
Syntax
Possible Values
The property is read/write with a default value of baseline; the cascading style sheets
(CSS) attribute is not inherited.
The values sub and super are supported on text. The other values are supported for
objects that support VALIGN.
Example
This example uses of the verticalAlign property to align text within a table cell.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
COL, currentStyle, custom, IMG, runtimeStyle, SPAN, style, TBODY, TD, TFOOT, TH, THEAD, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
width Attribute | width P... word-spacing Attribu
Web Workshop | DHTML, HTML & CSS
word-break Attribute | wordBreak Property
Sets or retrieves line-breaking behavior within words, particularly where multiple
languages appear in the object.
Syntax
HTML { word-break:sBreak }
Scripting object.style.wordBreak [ = sBreak ]
Possible Values
The property is read/write with a default value of normal; the proposed cascading style
sheets (CSS) extension attribute is inherited.
ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP
See Also
lineBreak
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
word-break Attribute | wo... WRAP Attribute | w
Web Workshop | DHTML, HTML & CSS
word-spacing Attribute | wordSpacing Property
Sets or retrieves the amount of additional space between words in the object.
Syntax
Possible Values
The property is read/write with a default value of normal; the cascading style sheets
(CSS) attribute is inherited.
The attribute adds the specified spacing after each word. Justification can influence
word spacing.
The length value indicates an addition to the default space between words. Negative
values are permitted.
Example
This example uses the word-spacing attribute and the wordSpacing property to
increase the amount of space between words in a SPAN.
<STYLE>
SPAN.spacing{word-spacing: 10;}
</STYLE>
<SCRIPT>
function fnChangeSpace(){
oSpan.style.wordSpacing =
oSelSpace.options[oSelSpace.selectedIndex].text;
}
</SCRIPT>
<SELECT ID = "oSelSpace" onchange = "fnChangeSpace()">
<OPTION>10
<OPTION>15
<OPTION>20
</SELECT>
<SPAN ID = "oSpan" CLASS = "spacing">
The quick brown fox jumped over the lazy dog.
</SPAN>
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL,
VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
availWidth Property BACKGROUND Attribute | b
Web Workshop | DHTML, HTML & CSS
background Attribute | background Property
Sets or retrieves up to five separate background properties of the object.
Syntax
Possible Values
sBackground String that specifies up to five of the following space-delimited values, in any order:
color Any of the range of color values available to the backgroundColor property.
image Any of the range of image values available to the backgroundImage property.
repeat Any of the range of repeat values available to the backgroundRepeat property.
attachment Any of the range of attachment values available to the backgroundAttachment property.
position Any of the range of position values available to the backgroundPosition property.
The property is read/write with a default value of transparent none repeat scroll
0% 0%. The cascading style sheets (CSS) attribute is not inherited.
Individual background properties not set by the composite background property are
set to their default values. For example, the default value for image is none. Setting
background: white is equivalent to setting background: white none repeat scroll
0% 0%. So, in addition to setting the background color to white, setting background:
white clears any image, repeat, attachment, or position values previously set.
The background properties render in the object's content and padding; however,
borders are set using the border properties.
In Microsoft® Internet Explorer 3.0, elements that expose the background property
only support the color and image values; the attachment value is only supported by
the BODY, TABLE, and TD elements. In block elements, such as P and DIV, background
images and colors appear only behind text in Internet Explorer 3.0; in Internet
Explorer 4.0 and later, backgrounds stretch from margin to margin when used with
block elements.
Although objects do not inherit the background property, the background image or
color of an object's parent appears behind an object if a background is not specified.
For more information about supported colors, see the Color Table.
Example
The following examples use the background property and the background attribute
to set the background values.
This example uses inline event handlers to modify the background-color and
background-position attributes of an image. These attributes are specified in an
embedded style sheet using the background attribute.
<STYLE>
.style1{background:beige url(sphere.jpg) no-repeat top center}
.style2{background:ivory url(sphere.jpeg) no-repeat bottom
right}
</STYLE>
</HEAD>
<BODY>
<SPAN onmouseover="this.className='style1'"
onmouseout="this.className='style2'">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BACKGROUND Attribute | ba... background-colo
Web Workshop | DHTML, HTML & CSS
background-attachment Attribute | backgroundAttachment
Property
Sets or retrieves how the background image is attached to the object within the document.
Syntax
Possible Values
The property is read/write with a default value of scroll; the cascading style sheets
(CSS) attribute is not inherited.
This property can be set with the other background properties by using the
background composite property.
Example
This example uses an inline style sheet to set the background to fixed.
<STYLE >
BODY { background-attachment:fixed }
</STYLE>
</HEAD>
<BODY background="some.jpg">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background-attachment Att... background-imag
Web Workshop | DHTML, HTML & CSS
background-color Attribute | backgroundColor Property
Sets or retrieves the color behind the content of the object.
Syntax
Possible Values
The property is read/write with a default value of transparent; the cascading style
sheets (CSS) attribute is not inherited.
This property can be set with the other background properties by using the
background composite property.
Internet Explorer 3.0 supports the background-color attribute, but only when it's set
by using the background attribute.
Windows CE
Example
This example uses an inline style sheet to set the background color to beige.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the background color to beige.
<SPAN onmouseover="this.style.backgroundColor='beige'">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, OPTION, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background-color Attribut... background-positio
Web Workshop | DHTML, HTML & CSS
background-image Attribute | backgroundImage Property
Sets or retrieves the background image of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
The URL identifies the image file. When setting a background image, you can set a
background color to be used when the image is unavailable. When the image is
available, it overlays the background color.
This property may be set with other background properties by using the background
composite property.
Internet Explorer 3.0 supports the background-image attribute, but only when it's
set through the background attribute.
Example
This example uses a call to an embedded (global) style sheet to show and hide the
background image.
<STYLE>
.setUrl { background-image: url(sphere.jpg) }
.loseUrl { background-image: url(none) }
</STYLE>
</HEAD>
<BODY>
<SPAN STYLE="font-size:14" onmouseover="this.className='setUrl'"
onmouseout="this.className='loseUrl'">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to show and hide the background image.
<SPAN
onmouseover="this.style.backgroundImage='url(sphere.jpeg)'">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background-image Attribut... backgroundPositio
Web Workshop | DHTML, HTML & CSS
background-position Attribute | backgroundPosition Property
Sets or retrieves the position of the background of the element.
Syntax
Possible Values
The property is read/write with a default value of 0% 0%; the cascading style sheets
(CSS) attribute is not inherited.
If only one value is set, that value applies to the horizontal coordinate, and the vertical
is set to 50%. If both values are set, the first value applies to the horizontal coordinate
and the second value applies to the vertical.
Setting the values to 0% 0% positions the background-image to the upper left corner of
the element's content excluding the padding.
Specifying right center has the following effect: Because right is assumed to be an
x-coordinate direction, right will overwrite the center value; the background shifts
right accordingly.
This property may be set together with the other background properties using the
background composite property.
Example
The following examples use the background-position attribute and the
backgroundPosition property to specify the position of a background image.
This example uses a call to an embedded (global) style sheet to move the sphere.
<STYLE>
.style1 { background-position:top center }
.style2 { background-position:bottom right }
</STYLE>
</HEAD>
<BODY onload="oSpan.className='style1'">
<SPAN STYLE="font-size:14; width:250;" ID="oSpan"
onmouseover="this.className='style2'"
onmouseout="this.className='style1'">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
<SPAN onmouseover="this.style.backgroundPosition='bottom
right'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
backgroundPositionY Prope... BALANCE Attribut
Web Workshop | DHTML, HTML & CSS
background-repeat Attribute | backgroundRepeat Property
Sets or retrieves how the backgroundImage property of the object is tiled.
Syntax
Possible Values
The property is read/write with a default value of repeat; the cascading style sheets
(CSS) attribute is not inherited.
The repeat-x and repeat-y values make the image repeat horizontally and vertically,
respectively, creating a single band of images from one side to the other.
This property can be set with other background properties by using the background
composite property.
Example
This example uses a call to an embedded (global) style sheet to tile the image.
<STYLE>
.style1 { background-image:url(sphere.jpg);
background-repeat:repeat }
.style2 { background-image:url(sphere.jpeg);
background-repeat:no-repeat }
</STYLE>
</HEAD>
<BODY>
<SPAN onmouseover="this.className='style1'"
onmouseout="this.className='style2'"
onclick="this.className=''">
. . . </SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example shows how to use inline scripting to tile the image.
<SPAN
onmouseover="this.style.backgroundImage='url(sphere.jpeg)';
this.style.backgroundRepeat='repeat'">
:
</SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLOR Attribute | color P... colorDepth Property
Web Workshop | DHTML, HTML & CSS
color Attribute | color Property
Sets or retrieves the color of the text of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with no default value; the cascading style sheets (CSS)
attribute is inherited.
Some browsers do not recognize color names, but all browsers should recognize red-
green-blue (RGB) color values and display them correctly.
Windows CE
In Microsoft® Windows® CE, specifying a value for the color property of the OPTION
element when applied through the style object has no effect.
Example
The following examples use the color attribute and the color property to change the
text color of an object.
This example uses a call to an embedded (global) style sheet to change the text color
to red when an onmouseover event occurs.
<STYLE>
.color1 { color:red }
.color2 { color: }
</STYLE>
</HEAD>
<BODY>
<SPAN STYLE="font-size:14" onmouseover="this.className='color1'"
onmouseout="this.className='color2'"> . . .
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the text color to red when an
onmouseover event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OL, OPTION, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BGPROPERTIES Attribute | ... BORDER Attribute
Web Workshop | DHTML, HTML & CSS
border Attribute | border Property
Sets or retrieves the properties to be drawn around the object.
Syntax
Possible Values
sBorder String that specifies one or more of the following space-delimited values:
width Any of the range of width values available to the borderWidth property.
style Any of the range of style values available to the borderStyle property.
color Any of the range of color values available to the borderColor property.
The property is read/write with a default value of medium none; the cascading style
sheets (CSS) attribute is not inherited.
The border property is a composite property that sets the width, style, and color
values for all four sides of an object.
You must specify a style when specifying a width and/or color; otherwise, the border
does not render.
All individual border properties not set by the composite border property are set to
their default values. For example, the default value for width is medium.
The setting border=thin is identical to border=thin none; the default value for the
border color is the same as the text color if one is not initially set. So, not only does
the property set width to thin, it also clears any style or color values previously set.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
For more information about supported colors, see the Color Table.
Example
The following examples use the border attribute and the border property to specify
the composite border properties.
This example uses a call to an embedded (global) style sheet to modify the border
attribute.
<HEAD>
<STYLE>
.applyBorder { border:0.2cm groove orange }
.removeBorder { border:none }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='applyBorder'"
onmouseout="this.className='removeBorder'">
<IMG src="sphere.jpg"></TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE, TD,
TEXTAREA, TH, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BORDER Attribute | border... border-bottom-co
Web Workshop | DHTML, HTML & CSS
border-bottom Attribute | borderBottom Property
Sets or retrieves the properties of the bottom border of the object.
Syntax
Possible Values
sBottom String that specifies one or more of the following space-delimited values:
width Any of the range of width values available to the borderBottomWidth property.
style Any of the range of style values available to the borderBottomStyle property.
color Any of the range of color values available to the borderBottomColor property.
The property is read/write with a default value of medium none; the cascading style
sheets (CSS) attribute is not inherited.
The borderBottom property is a composite property that sets the width, color, and
style values for the bottom border of an object.
All individual border properties not set by the composite borderBottom property are
set to their default values. For example, the default value for width is medium.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
For more information about supported colors, see the Color Table.
Example
The following examples use the borderBottom property and the border-bottom
attribute to specify the various properties for the bottom border.
This example uses a call to an embedded (global) style sheet to change the attributes
of the bottom border.
<HEAD>
<STYLE>
TD { border-bottom:0.5cm solid yellow }
.change { border-bottom:0.5cm groove pink }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''"><IMG src="sphere.jpg"></TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE, TD,
TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-bottom Attribute |... border-bottom-sty
Web Workshop | DHTML, HTML & CSS
border-bottom-color Attribute | borderBottomColor Property
Sets or retrieves the color of the bottom border of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with a default value equal to the value of the color property;
the cascading style sheets (CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
This example uses a call to an embedded (global) style sheet to change the color of
the bottom border.
<HEAD>
<STYLE>
TD { border-bottom-color: red;
border-width: 0.5cm; border-style: groove}
.blue { border-bottom-color: blue}
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
TD onmouseover="this.className='blue'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the color of the bottom border.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderBottomColor='blue'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
currentStyle, border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-bottom-color Attri... border-bottom-wid
Web Workshop | DHTML, HTML & CSS
border-bottom-style Attribute | borderBottomStyle Property
Sets or retrieves the style of the bottom border of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded style sheet to change the style of the bottom
border to groove.
<HEAD>
<STYLE>
TD { border-bottom-style:solid;
border-width=0.3cm }
.change { border-bottom-style:groove}
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the bottom border to groove.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderBottomStyle='groove'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-bottom-style Attri... border-collapse Att
Web Workshop | DHTML, HTML & CSS
border-bottom-width Attribute | borderBottomWidth Property
Sets or retrieves the width of the bottom border of the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must either have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded (global) style sheet to change the width of
the bottom border to 1 centimeter when a mouse click occurs.
<HEAD>
<STYLE>
TD { border-bottom-width:3mm }
.changeborder1 { border-bottom-width:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onclick="this.className='changeborder1'"
ondblclick="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the width of the bottom border to 1
centimeter when a mouse click occurs.
<TD onclick="this.style.borderBottomWidth='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-bottom-width Attri... border-color Attrib
Web Workshop | DHTML, HTML & CSS
border-collapse Attribute | borderCollapse Property
Sets or retrieves a value indicating whether the row and cell borders of a table are joined
into a single border or detached as in standard HTML.
Syntax
Possible Values
The property is read/write with a default value of separate; the cascading style sheets
(CSS) attribute is not inherited.
This example demonstrates how to use the border-collapse attribute and the
borderCollapse property to manipulate the border on a table.
<P>
<INPUT TYPE=button
onclick="oTable.style.borderCollapse='separate'"
VALUE="separate">
<INPUT TYPE=button
onclick="oTable.style.borderCollapse='collapse'"
VALUE="collapse">
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TABLE
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-collapse Attribute... BORDERCOLOR Attr
Web Workshop | DHTML, HTML & CSS
border-color Attribute | borderColor Property
Sets or retrieves the border color of the object.
Syntax
Possible Values
sColor String that specifies up to four color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with a default value equal to the value of the color property;
the cascading style sheets (CSS) attribute is not inherited.
Up to four different colors can be specified in the following order: top, right, bottom,
left. If one color is supplied, it is used for all four sides. If two colors are supplied, the
first is used for the top and bottom, and the second is used for left and right. If three
colors are supplied, they are used for top, right and left, and bottom, respectively.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
The borderColor property does not render if the borderStyle property is set to none.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
The following examples use the border-color attribute and the borderColor property
to specify the border color.
This example uses a call to an embedded (global) style sheet to change the color of
the border to blue from an initial value of red when the mouse moves over the image.
<HEAD>
<STYLE>
TD { border-color: red; border-width: 0.5cm }
.blue { border-color: blue }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='blue'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the color of the border to blue when the
mouse moves over the image.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderColor='blue';
this.style.borderStyle='solid'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
borderColorLight Property border-left-color Attr
Web Workshop | DHTML, HTML & CSS
border-left Attribute | borderLeft Property
Sets or retrieves the properties of the left border of the object.
Syntax
Possible Values
sLeft String that specifies one or more of the following space-delimited values:
width Any of the range of width values available to the borderLeftWidth property.
style Any of the range of style values available to the borderLeftStyle property.
color Any of the range of color values available to the borderLeftColor property.
The property is read/write with a default value of medium none; the cascading style
sheets (CSS) attribute is not inherited.
The borderLeft property is a composite property that sets the width, color, and style
values for the left border of an object.
All individual border properties not set by the composite borderLeft property are set
to their default values. For example, the default value for width is medium.
For more information about supported colors, see the Color Table.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the borderLeft property and the border-left attribute to
specify the composite border-left properties.
This example uses a call to an embedded (global) style sheet to modify the attributes
of the left border.
<HEAD>
<STYLE>
TD { border-left:0.5cm solid yellow }
.change { border-left:0.5cm groove pink }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the properties of the left border.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE, TD,
TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-left Attribute | b... border-left-style Attr
Web Workshop | DHTML, HTML & CSS
border-left-color Attribute | borderLeftColor Property
Sets or retrieves the color of the left border of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with a default value equal to the value of the color property;
the cascading style sheets (CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
The following examples use the border-left-color attribute and the borderLeftColor
property to specify the color of the left border.
This example uses a call to an embedded (global) style sheet to change the color of
the left border from red to blue when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-left-color: red;
border-width: 0.5cm; border-style: groove}
.blue { border-left-color: blue}
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='blue'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the color of the left border from red to
blue when an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderLeftColor='blue'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-left-color Attribu... border-left-width Att
Web Workshop | DHTML, HTML & CSS
border-left-style Attribute | borderLeftStyle Property
Sets or retrieves the style of the left border of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
Inline elements must have an absolute position or layout to use this property.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the border-left-style attribute and the borderLeftStyle
property to specify the style of the left border.
This example uses a call to an embedded (global) style sheet to change the style of
the left border from solid to groove when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-left-style:solid; border-width=0.3cm }
.change { border-left-style:groove }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the left border to groove
when an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderLeftStyle='groove'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-left-style Attribu... border-right Attribut
Web Workshop | DHTML, HTML & CSS
border-left-width Attribute | borderLeftWidth Property
Sets or retrieves the width of the left border of the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must either have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded (global) style sheet to change the width of
the left border width to 1 centimeter when a mouse click occurs.
<HEAD>
<STYLE>
TD { border-left-width:3mm }
.changeborder1 { border-left-width:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onclick="this.className='changeborder1'"
ondblclick="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR></TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the width of the left border width to 1
centimeter when a mouse click occurs.
<TD onclick="this.style.borderLeftWidth='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border, borderWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-left-width Attribu... border-right-color A
Web Workshop | DHTML, HTML & CSS
border-right Attribute | borderRight Property
Sets or retrieves the properties of the right border of the object.
Syntax
Possible Values
sRight String that specifies one or more of the following space-delimited values:
width Any of the range of width values available to the borderRightWidth property.
style Any of the range of style values available to the borderRightStyle property.
color Any of the range of color values available to the borderRightColor property.
The property is read/write with a default value of medium none; the cascading style
sheets (CSS) attribute is not inherited.
The borderRight property is a composite property that sets the width, color, and style
values for the right border of an object.
All individual border properties not set by the composite borderRight property are set
to their default values. For example, the default value for width is medium.
For more information about supported colors, see the Color Table.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the borderRight property and the border-right attribute
to specify the composite properties.
This example uses a call to an embedded (global) style sheet to change the attributes
of the right border when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-right:0.5cm solid yellow }
.change { border-right:0.5cm groove pink }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg"></TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the attributes of the right border when an
onmouseover event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE, TD,
TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-right Attribute | ... border-right-style At
Web Workshop | DHTML, HTML & CSS
border-right-color Attribute | borderRightColor Property
Sets or retrieves the color of the right border of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with a default value equal to the value of the color property;
the cascading style sheets (CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
This example uses a call to an embedded (global) style sheet to change the color of
the right border from red to blue when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-right-color: red;
border-width: 0.5cm; border-style: groove}
.blue { border-right-color: blue }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='blue'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the color of the right border to blue when
an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderRightColor='blue';>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-right-color Attrib... border-right-width A
Web Workshop | DHTML, HTML & CSS
border-right-style Attribute | borderRightStyle Property
Sets or retrieves the style of the right border of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded (global) style sheet to change the style of
the right border from solid to groove when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-right-style:solid; border-width=0.3cm }
.change { border-right-style:groove }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the right border to groove
when an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderRightStyle='groove'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-right-style Attrib... border-style Attribut
Web Workshop | DHTML, HTML & CSS
border-right-width Attribute | borderRightWidth Property
Sets or retrieves the width of the right border of the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must either have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded (global) style sheet to change the width of
the right border to 1 centimeter when a mouse click occurs.
<HEAD>
<STYLE>
TD { border-right-width:3mm }
.changeborder1 { border-right-width:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onclick="this.className='changeborder1'"
ondblclick="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR></TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline script to change the width of the right border to 1 centimeter
when a mouse click occurs.
<TD onclick="this.style.borderRightWidth='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border, borderWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-right-width Attrib... border-top Attribute
Web Workshop | DHTML, HTML & CSS
border-style Attribute | borderStyle Property
Sets or retrieves the style of the left, right, top, and bottom borders of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
A border-width greater than 0 must be set for the border-style attribute to render.
Example
The following examples use the border-style attribute and the borderStyle property
to specify the border style.
This example uses a call to an embedded (global) style sheet to change the style of
the border to groove when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-style:solid; border-width=0.5cm }
.change { border-style:groove }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the border to groove when an
onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderStyle='groove'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-style Attribute | ... border-top-color Attr
Web Workshop | DHTML, HTML & CSS
border-top Attribute | borderTop Property
Sets or retrieves the properties of the top border of the object.
Syntax
Possible Values
sTop String that specifies one or more of the following space-delimited values:
width Any of the range of width values available to the borderTopWidth property.
style Any of the range of style values available to the borderTopStyle property.
color Any of the range of color values available to the borderTopColor property.
The property is read/write with a default value of medium none; the cascading style
sheets (CSS) attribute is not inherited.
The borderTop property is a composite property that sets the width, color, and style
values for the top border of an object.
All individual border properties not set by the composite borderTop property are set
to their default values. For example, the default value for width is medium.
For more information about supported colors, see the Color Table.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the border-top attribute and the borderTop property to
specify the composite properties.
This example uses a call to an embedded (global) style sheet to change the attributes
of the top border when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-top:0.5cm solid yellow }
.change { border-top:0.5cm groove pink }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the top border when an onmouseover
event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE, TD,
TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-top Attribute | bo... border-top-style Att
Web Workshop | DHTML, HTML & CSS
border-top-color Attribute | borderTopColor Property
Sets or retrieves the color of the top border of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is read/write with a default value equal to the value of the color property;
the cascading style sheets (CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
The following examples use the border-top-color attribute and the borderTopColor
property to specify the color of the top border.
This example uses a call to an embedded (global) style sheet to change the color of
the top border to blue when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-top-color: red;
border-width: 0.5cm; border-style: groove }
.blue { border-top-color: blue }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='blue'"
onmouseout="this.className=''">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the color of the top border to blue when
an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderTopColor='blue'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-top-color Attribut... border-top-width At
Web Workshop | DHTML, HTML & CSS
border-top-style Attribute | borderTopStyle Property
Sets or retrieves the style of the top border of the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the border-top-style attribute and the borderTopStyle
property to specify the style of the top border.
This example uses a call to an embedded (global) style sheet to change the style of
the top border from solid to groove when an onmouseover event occurs.
<HEAD>
<STYLE>
TD { border-top-style:solid;
border-width=0.3cm }
.change { border-top-style:groove}
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='change'"
onmouseout="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the top border to groove
when an onmouseover event occurs.
<TD onmouseover="this.style.borderWidth='0.5cm';
this.style.borderTopStyle='groove'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-top-style Attribut... border-width Attribu
Web Workshop | DHTML, HTML & CSS
border-top-width Attribute | borderTopWidth Property
Sets or retrieves the width of the top border of the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
This example uses a call to an embedded (global) style sheet to change the width of
the top border to 1 centimeter when a mouse click occurs.
<HEAD>
<STYLE>
TD { border-top-width:3mm }
.changeborder1 { border-top-width:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onclick="this.className='changeborder1'"
ondblclick="this.className=''">
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline script to change the width of the top border to 1 centimeter
when a mouse click occurs.
<TD onclick="this.style.borderTopWidth='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-top-width Attribut... bottom Property
Web Workshop | DHTML, HTML & CSS
border-width Attribute | borderWidth Property
Sets or retrieves the width of the left, right, top, and bottom borders of the object.
Syntax
Possible Values
The property is read/write with a default value of medium; the cascading style sheets
(CSS) attribute is not inherited.
Up to four different widths can be specified, in the following order: top, right, bottom,
left. If one width is specified, it is used for all four sides. If two widths are specified,
the first is used for the top and bottom borders, and the second is used for left and
right borders. If three widths are specified, they are used for top, right/left, and
bottom borders, respectively.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
The borderWidth property does not render if the borderStyle property is set to none.
Example
The following examples use the border-width attribute and the borderWidth
property to specify the width of the border.
This example uses a call to an embedded (global) style sheet to change the width of
the border to 1 centimeter when a mouse click occurs.
<HEAD>
<STYLE>
TD { border-width:3mm }
.changeborder1 { border-width:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onclick="this.className='changeborder1'"
ondblclick="this.className=''">
<IMG src="sphere.jpg"></TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline script to change the width of the border to 1 centimeter when
a mouse click occurs.
<TD onclick="this.style.borderWidth='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
border
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLASS Attribute | classNa... CLEAR Attribute |
Web Workshop | DHTML, HTML & CSS
clear Attribute | clear Property
Sets or retrieves whether the object allows floating objects on its left and/or right sides, so
that the next text displays past the floating objects.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is not inherited.
The value of this property lists the sides where floating objects are not accepted.
Example
The following examples use the clear attribute and the clear property to specify
placement of text relative to floating objects.
This example uses a call to an embedded (global) style sheet to move the text below
the floating objects when italic text is encountered.
<STYLE>
I { clear:left }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example changes the position of the paragraph relative to the floating object on
its left side.
<HEAD>
<SCRIPT>
function fnClear(){
oClear.style.clear="left";
}
function fnClear2(){
oClear.style.clear="none";
}
</SCRIPT>
</HEAD>
<BODY>
<img src="/workshop/graphics/sphere.jpg" style="float:left">
<SPAN ID="oClear">
<P>This is an example of the clear attribute.<P>
</span>
<P>
<INPUT TYPE=button value="clear = left"
onclick="fnClear()">
<INPUT TYPE=button value="clear = none"
onclick="fnClear2()">
</P>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
firstChild Property font Attribute | font Pro...
Web Workshop | DHTML, HTML & CSS
float Attribute | styleFloat Property
Sets or retrieves on which side of the object the text will flow.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute has a default value of none and is not inherited.
With a value of left or right, the object is treated as block-level—that is, the display
property is ignored. For example, floating paragraphs allow the paragraphs to appear
side-by-side on a page.
Objects following a floating object move in relation to the position of the floating
object.
The floating object is moved left or right until it reaches the border, padding, or margin
of another block-level object.
DIV and SPAN objects must have a width set for the float attribute to render. In
Internet Explorer 5, DIV and SPAN objects are assigned a width by default and will
render if a width is not specified.
Example
This example shows how the float attribute affects the flow of the text. The sphere
image floats to the left of the text, and the cone floats to the right.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting and the styleFloat property to swap images when
the mouse moves over the button.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED,
FIELDSET, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU,
OBJECT, OL, P, PRE, RT, RUBY, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL,
VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LOWSRC Attribute | lowsrc... margin-bottom At
Web Workshop | DHTML, HTML & CSS
margin Attribute | margin Property
Sets or retrieves the width of the left, right, bottom, and top margins of the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
This is a composite property that specifies up to four width values, in the following
order: top, right, bottom, left. If one width value is specified, it is used for all four
sides. If two width values are specified, the first is used for the top and bottom
borders, and the second is used for left and right borders. If three width values are
specified, they are used for the top, right/left, and bottom borders, respectively.
Negative margins are supported except for top and bottom margins on inline objects.
As of Internet Explorer 4.0, you can specify length values relative to the height of the
element's font (em) or the height of the letter "x" (ex).
In Internet Explorer 3.0, the specified margin value is added to the default value of the
object. In Internet Explorer 4.0 and later, the margin value is absolute. The margin
properties do not work with the TD and TR objects in Internet Explorer 4.0, but they
do work in Internet Explorer 3.0. To set margins in the cell for Internet Explorer 4.0
and later, apply the margin to an object, such as DIV or P, within the TD.
To use this property, inline objects must have an absolute position or layout. Element
layout is set by providing a value for the height property or the width property.
Example
The following examples use the margin attribute and the margin property to change
the margin of the object.
This example uses the IMG object as a selector to set the margin of images to 1
centimeter.
<STYLE>
IMG { margin:1cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the margin of the image to 5 millimeters when
an onmouseover event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
margin Attribute | margin... MARGINHEIGHT At
Web Workshop | DHTML, HTML & CSS
margin-bottom Attribute | marginBottom Property
Sets or retrieves the height of the bottom margin of the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
As of Internet Explorer 4.0 and later, you can specify possible length values relative to
the height of the element's font (em) or the height of the letter "x" (ex).
In Internet Explorer 3.0, the specified margin value is added to the default value of the
object. In Internet Explorer 4.0 and later, the margin value is absolute. The margin
properties do not work with the TD and TR objects in Internet Explorer 4.0, but they
do work in Internet Explorer 3.0. To set margins in the cell for Internet Explorer 4.0
and later, apply the margin to an object, such as DIV or P, within the TD.
To use this property, inline objects must have an absolute position or layout. Element
layout is set by providing a value for the height property or the width property.
Negative margins are supported, except for top and bottom margins on inline objects.
Example
The following examples use the margin-bottom attribute and the marginBottom
property to change the margin of the object.
This example uses the IMG object as a selector to set the bottom margin on images to
2 centimeters.
<STYLE>
IMG { margin-bottom:2cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the bottom margin of the image to 1
centimeter when an onmouseover event occurs.
<IMG
src="sphere.jpg"onmouseover="this.style.marginBottom='1cm'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MARGINHEIGHT Attribute | ... margin-right Att
Web Workshop | DHTML, HTML & CSS
margin-left Attribute | marginLeft Property
Sets or retrieves the width of the left margin of the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
As of Internet Explorer 4.0 and later, you can specify possible length values relative to
the height of the element's font (em) or the height of the letter "x" (ex).
In Internet Explorer 3.0, the specified margin value is added to the default value of the
object. In Internet Explorer 4.0 and later, the margin value is absolute. The margin
properties do not work with the TD and TR objects in Internet Explorer 4.0, but they
do work in Internet Explorer 3.0. To set margins in the cell for Internet Explorer 4.0
and later, apply the margin to an object, such as DIV or P, within the TD.
To use this property, inline objects must have an absolute position or layout. Element
layout is set by providing a value for the height property or the width property.
Negative margins are supported, except for top and bottom margins on inline objects.
Example
The following examples use the margin-left attribute and the marginLeft property to
change the margin of the object.
This example uses the IMG object as a selector to set the left margin to 2 centimeters
for all images.
<STYLE>
IMG { margin-left:2cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the left margin of the image to 1 centimeter
when an onclick event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
margin-left Attribute | m... margin-top Attribut
Web Workshop | DHTML, HTML & CSS
margin-right Attribute | marginRight Property
Sets or retrieves the width of the right margin of the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
As of Internet Explorer 4.0 and later, you can specify possible length values relative to
the height of the element's font (em) or the height of the letter "x" (ex).
In Internet Explorer 3.0, the specified margin value is added to the default value of the
object. In Internet Explorer 4.0 and later, the margin value is absolute. The margin
properties do not work with the TD and TR objects in Internet Explorer 4.0, but they
do work in Internet Explorer 3.0. To set margins in the cell for Internet Explorer 4.0
and later, apply the margin to an object, such as DIV or P, within the TD.
To use this property, inline objects must have an absolute position or layout. Element
layout is set by providing a value for the height property or the width property.
Negative margins are supported, except for top and bottom margins on inline objects.
Example
The following examples use the margin-right attribute and the marginRight
property to change the margin of the object.
This example uses IMG as a selector and margin1 as a class in an embedded style
sheet to set the right margin of an image when an onclick event or ondblclick event
occurs.
<STYLE>
IMG { margin-right:1cm }
.margin1 { margin-right:2cm }
</STYLE>
</HEAD>
<BODY>
<IMG src="sphere.jpg" onclick="this.className='margin1'"
ondblclick="this.className=''">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the right margin of the image to 1 centimeter
when the onclick event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
margin-right Attribute | ... MARGINWIDTH Attr
Web Workshop | DHTML, HTML & CSS
margin-top Attribute | marginTop Property
Sets or retrieves the height of the top margin of the object.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
As of Internet Explorer 4.0 and later, you can specify possible length values relative to
the height of the element's font (em) or the height of the letter "x" (ex).
In Internet Explorer 3.0, the specified margin value is added to the default value of the
object. In Internet Explorer 4.0 and later, the margin value is absolute. The margin
properties do not work with the TD and TR objects in Internet Explorer 4.0, but they
do work in Internet Explorer 3.0. To set margins in the cell for Internet Explorer 4.0
and later, apply the margin to an object, such as DIV or P, within the TD.
To use this property, inline objects must have an absolute position or layout. Element
layout is set by providing a value for the height property or the width property.
Negative margins are supported, except for top and bottom margins on inline objects.
Example
The following examples use the margin-top attribute and the marginTop property to
change the margin of the object.
This example uses HR as a selector and margin1 as a class in an embedded style sheet
to set the top margin of the horizontal rule.
<STYLE>
HR { margin-top:2cm }
.margin1 { margin-top:4cm }
</STYLE>
</HEAD>
<BODY>
<HR onclick="this.className='margin1'"
ondblclick="this.className=''">
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set and reset the margin when the onclick and
ondblclick events occur, respectively.
<HR onclick="this.style.marginTop='2cm'"
ondblclick="this.style.marginTop=''">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, currentStyle, custom, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, Hn, HR, IFRAME, IMG,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, ISINDEX, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, SPAN, style, TABLE,
TD, TEXTAREA, TH, UL, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
owningElement Property padding-bottom Attrib
Web Workshop | DHTML, HTML & CSS
padding Attribute | padding Property
Sets or retrieves the amount of space to insert between the object and its margin or, if
there is a border, between the object and its border.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
This is a composite property that specifies up to four padding values, in the following
order: top, right, bottom, left. If one width value is specified, it is used for all four
sides. If two width values are specified, the first is used for the top and bottom
borders, and the second is used for left and right borders. If three width values are
specified, they are used for top, right/left, and bottom borders, respectively. Negative
values are not allowed.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the padding attribute and the padding property to
change the padding of the object.
<STYLE>
TD { padding:3mm 8mm }
.padding1 { padding:1cm }
</STYLE>
</HEAD>
<BODY>
<TABLE BORDER>
<TR>
<TD onmouseover="this.className='padding1'"
onmouseout="this.className=''" ALIGN=middle>
<IMG src="sphere.jpg">
</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cell's top and bottom padding to 0.5
centimeters and its left and right padding to 0.2 centimeters when an onmouseover
event occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
padding Attribute | paddi... padding-left Attribu
Web Workshop | DHTML, HTML & CSS
padding-bottom Attribute | paddingBottom Property
Sets or retrieves the amount of space to insert between the bottom border of the object
and the content.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the padding-bottom attribute and the paddingBottom
property to change the padding of the object.
This example uses TD as a selector in an embedded style sheet to set the bottom
padding for all table cells to 1 centimeter.
<STYLE>
TD { padding-bottom:1cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cell's bottom padding to 1 centimeter
when an onmouseover event occurs.
<TD onmouseover="this.style.paddingBottom='1cm'"
onmouseout="this.style.paddingBottom=''">
<IMG src="sphere.jpg">
</TD>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
padding-bottom Attribute ... padding-right Attr
Web Workshop | DHTML, HTML & CSS
padding-left Attribute | paddingLeft Property
Sets or retrieves the amount of space to insert between the left border of the object and
the content.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the padding-left attribute and the paddingLeft property
to change the padding of the object.
This example uses TD as a selector in an embedded style sheet to set the left padding
for all table cells to 1 centimeter.
<STYLE>
TD { padding-left:1cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cell's left padding to 1 centimeter when an
onmouseover event occurs.
<TD onmouseover="this.style.paddingLeft='1cm'"
onmouseout="this.style.paddingLeft=''">
<IMG src="sphere.jpg">
</TD>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
padding-left Attribute | ... padding-top Attribut
Web Workshop | DHTML, HTML & CSS
padding-right Attribute | paddingRight Property
Sets or retrieves the amount of space to insert between the right border of the object and
the content.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the padding-right attribute and the paddingRight
property to change the padding of the object.
This example uses TD as a selector in an embedded style sheet to set the right
padding for all table cells to 1 centimeter.
<STYLE>
TD { padding-right:1cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cell's right padding to 1 centimeter when
an onmouseover event occurs.
<TD onmouseover="this.style.paddingRight='1cm'"
onmouseout="this.style.paddingRight=''">
<IMG src="sphere.jpg">
</TD>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
padding-right Attribute |... page-break-after At
Web Workshop | DHTML, HTML & CSS
padding-top Attribute | paddingTop Property
Sets or retrieves the amount of space to insert between the top border of the object and
the content.
Syntax
Possible Values
The property is read/write with a default value of 0; the cascading style sheets (CSS)
attribute is not inherited.
To use this property, inline elements must have an absolute position or layout.
Element layout is set by providing a value for the height property or the width
property.
Example
The following examples use the padding-top attribute and the paddingTop property
to change the padding of the object.
This example uses TD as a selector in an embedded style sheet to set the top padding
for all table cells to 1 centimeter.
<STYLE>
TD { padding-top:1cm }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cell's top padding to 1 centimeter when an
onmouseover event occurs.
<TD onmouseover="this.style.paddingTop='1cm'"
onmouseout="this.style.paddingTop=''">
<IMG src="sphere.jpg">
</TD>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TABINDEX Attribute | tabI... tagName Property
Web Workshop | DHTML, HTML & CSS
table-layout Attribute | tableLayout Property
Sets or retrieves whether the table layout is fixed.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
You can optimize table rendering performance by specifying the tableLayout property.
This property causes Internet Explorer to render the table one row at a time, providing
users with information at a faster pace. The tableLayout property determines column
widths for a table in the following order:
1. By using information in the width property for the COL or COLGROUP element.
2. By using information in the width property for the TD elements in the first row.
3. By dividing the table columns equally, regardless of the size of the content.
If the content of a cell exceeds the fixed width of the column, the content is wrapped
or, if wrapping is not possible, it is clipped. If the tableLayout property is set to
fixed, the overflow property can be used to handle content that exceeds the width of
a TD element. If the row height is specified, wrapped text is clipped when it exceeds
the set height.
Setting the property to fixed significantly improves table rendering speed, particularly
for longer tables.
Setting row height further improves rendering speed, again enabling the browser's
parser to begin rendering the row without having to examine the content of each cell
in the row to determine row height.
Example
This example uses the CSS attribute to set the table layout to fixed.
<TABLE STYLE="table-layout:fixed" WIDTH=600>
<COL WIDTH=100><COL WIDTH=300><COL WIDTH=200>
<TR HEIGHT=20>
<TD>...</TD><TD>...</TD><TD>...</TD>
</TR>
:
</TABLE>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
disabled Property documentElement Property
Web Workshop | DHTML, HTML & CSS
display Attribute | display Property
Sets or retrieves whether the object is rendered.
Syntax
Possible Values
The property is read/write with a default value of block for block elements and inline
for inline elements; the cascading style sheets (CSS) attribute is not inherited.
In Internet Explorer 4.0, the block, inline, and list-item values are not supported
explicitly, but do render the element.
The block and inline values are supported explicitly as of Internet Explorer 5.
All visible HTML objects are block or inline. For example, a DIV object is a block
element, and a SPAN object is an inline element. Block elements typically start a new
line and can contain other block elements and inline elements. Inline elements do not
typically start a new line and can contain other inline elements or data. Changing the
values for the display property affects the layout of the surrounding content by:
Adding a new line after the element with the value block.
Removing a line from the element with the value inline.
Hiding the data for the element with the value none.
In contrast to the visibility property, display=none reserves no space for the object on
the screen.
This example show the effect of changing the values for the display property between
inline, block, and none.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
linkColor Property list-style-image Attribut...
Web Workshop | DHTML, HTML & CSS
list-style attribute | listStyle Property
Sets or retrieves up to three separate listStyle properties of the object.
Syntax
Possible Values
sStyle String that specifies up to three of the following values, in any order:
type Any of the range of type values available to the listStyleType property.
position Any of the range of position values available to the listStylePosition property.
image Any of the range of image values available to the listStyleImage property.
The property is read/write with a default value set by the browser; the cascading style
sheets (CSS) attribute is inherited.
The listStyle property is a composite property. When specifying both the type and
image values, the image value takes precedence, unless the image value is set to none
or the image pointed to by the URL cannot display.
When the left margin of a list item is set to 0 using one of the margin properties, the
list item markers do not show. The margin should be set to a minimum of 30 points.
Example
The following examples use the list-style attribute and the listStyle property to set
the list style.
Note For the UL.compact to override the image that is set with the UL selector, you
must explicitly set the list-style-image attribute to 'none'.
<STYLE>
UL { list-style: outside url(dot.gif) }
UL.compact { list-style-image:none; list-style: inside
circle }
</STYLE>
</HEAD>
<BODY>
<UL>
<LI>...
<LI>...
</UL>
<UL CLASS=compact>
<LI>...
<LI>...
</UL>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the list. If the default image
cannot be located, a hollow circle is used.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
list-style attribute | li... list-style-position Attri.
Web Workshop | DHTML, HTML & CSS
list-style-image Attribute | listStyleImage Property
Sets or retrieves which image to use as a list-item marker for the object.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is inherited.
When the image is available, it replaces the marker that is set with the listStyleType
marker.
If the left margin of the list item is set to 0 using one of the margin properties, the list-
item markers do not show. The margin should be set to a minimum of 30 points.
Example
The following examples use the list-style-image attribute and the listStyleImage
property to set the image for markers.
This example uses UL as a selector in an embedded (global) style sheet to set the
marker to the dot.gif image.
<STYLE>
UL { list-style-image:url(dot.gif) }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the style of the list-item marker to an
image when an onmouseover event occurs.
<UL onmouseover="this.style.listStyleImage='url(dot.gif)'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
list-style-image Attribut... list-style-type Attribu
Web Workshop | DHTML, HTML & CSS
list-style-position Attribute | listStylePosition Property
Sets or retrieves how the list-item marker is drawn relative to the content of the object.
Syntax
Possible Values
The property is read/write with a default value of outside; the cascading style sheets
(CSS) attribute is inherited.
If the left margin of a list item is set to 0 using one of the margin properties, the list-
item markers do not show. The margin should be set to a minimum of 30 points.
Example
<STYLE>
UL { list-style-position:inside }
UL.compact { list-style-position:outside }
</STYLE>
</HEAD>
<BODY>
<UL>
<LI>...
<LI>...
</UL>
<UL CLASS=compact>
<LI>...
<LI>...
</UL>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the marker position when an
onmouseover event occurs.
<SPAN STYLE="width:3cm"
onmouseover="this.style.listStylePosition='inside'"
onmouseout="this.style.listStylePosition='outside'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
list-style-position Attri... LOOP Attribute | loop
Web Workshop | DHTML, HTML & CSS
list-style-type Attribute | listStyleType Property
Sets or retrieves the predefined type of the line-item marker for the object.
Syntax
Possible Values
The property is read/write with a default value of disc; the cascading style sheets
(CSS) attribute is inherited.
The listStyleType property determines the appearance of the list-item marker if the
value of the list-style-image attribute is set to none, or if the image pointed to by the
URL cannot be displayed.
If the left margin of a line item is set to 0 using one of the margin properties, the list-
item markers do not show. The margin should be set to a minimum of 30 points.
Example
The following examples use the list-style-type attribute and the listStyleType
property to set the markers.
This example uses UL as a selector in an embedded (global) style sheet to change the
marker type to circle.
<STYLE>
UL { list-style-type:circle }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the marker type on when an onmouseover
event occurs.
<UL onmouseover="this.style.listStyleType='circle'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bottom Property BOTTOMMARGIN Attribute | ..
Web Workshop | DHTML, HTML & CSS
bottom Attribute | bottom Property
Sets or retrieves the bottom position of the object in relation to the bottom of the next
positioned object in the document hierarchy.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
The bottom attribute should be used only when the position attribute is set;
otherwise, the value of the bottom attribute is ignored.
Because the value of the bottom property is a string, the property cannot be used in
script to calculate the position of the object in the document; instead, the pixelBottom
property or the posBottom property should be used.
For more information about how to access the dimension and location of objects on the
page through the DHTML object model, see measuring element dimension and location
.
I
Example
This example uses the bottom attribute to set a DIV object 50 pixels from the bottom
of the client area.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, custom, DD, DFN, DIR, DIV, DL, FIELDSET, FORM, Hn,
HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio,
INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE,
runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
pixelTop, posTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientY Property clipBottom Property DHTML P
Web Workshop | DHTML, HTML & CSS
clip Attribute | clip Property
Sets or retrieves which part of a positioned object is visible.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
This property defines the shape and size of the positioned object that is visible. The
position must be set to absolute. Any part of the object that is outside the clipping
region is transparent. Any coordinate can be replaced by the value auto, which
exposes the respective side (meaning the side is not clipped).
The order of the values clip:rect(0 0 50 50) renders the object invisible as it sets
the top and right positions of the clipping region to 0. To achieve a 50-by-50 view port,
use clip:rect(0 50 50 0).
The clip attribute and the clip property are available on the Macintosh platform, as of
Internet Explorer 5.
Example
The following examples use clip attribute and the clip property to modify the
appearance of an image.
This example uses a call to an embedded (global) style sheet to clip the image.
<DIV Style="position:absolute;top:0;left:200;
clip:rect(0.6cm 3cm 2cm 0.5cm)">
<IMG SRC="sphere.jpg">
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET,
FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL,
P, PRE, RUBY, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TD, TEXTAREA, TH, TR, TT, U, UL, VAR,
XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
height Property HEIGHT Attribute | height...
Web Workshop | DHTML, HTML & CSS
height Attribute | height Property
Sets or retrieves the height of the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the CSS attribute is not
inherited.
If the height property of an IMG is specified, but width property is not specified, the
resulting width of the IMG is sized proportionally according to the specified height
property and the actual width (in pixels) of the image in the source file.
If you specify the height property of an IMG, and both the height and width of the
image in the source file are identical, the width of the image will match the height.
If you specify the height property and width property of an IMG, the resulting image
dimensions will match those specified.
Percentage values refer to the parent object's height. Negative values are not allowed.
The following examples use the height attribute and the height property to change
the height of the object.
This example uses an inline style sheet to set the height of an image to 4 centimeters.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the height of an image when an onclick
event occurs.
<BUTTON onclick="height1.style.height='1cm'">Shrink
sphere</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
APPLET, BUTTON, currentStyle, custom, DIV, EMBED, FIELDSET, HR, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file,
INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, MARQUEE,
OBJECT, runtimeStyle, SPAN, style, TABLE, TEXTAREA, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
layout-grid-type Attribut... left Property DHTM
Web Workshop | DHTML, HTML & CSS
left Attribute | left Property
Sets or retrieves the position of the object relative to the left edge of the next positioned
object in the document hierarchy.
Syntax
Possible Values
This property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
You should use the left attribute only when the position attribute is set; otherwise, the
value of the left attribute is ignored.
Because the value of the left property is a string, you cannot use the property in script
to calculate the position of the object in the document; instead, you should use the
pixelLeft property or the posLeft property.
For more information about how to access the dimension and location of objects on the
page through the DHTML object model, see measuring element dimension and location
.
I
Example
The following examples use the left attribute and the left property to change the
position of the object.
This example uses an inline style sheet to set the position of an image 100 pixels to
the right of the parent object's left edge.
<DIV STYLE="position:absolute;left:100px">
<IMG SRC="cone.jpg"></DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to change the position of two images when an
onclick event occurs.
<BUTTON onclick="cone.style.left='100px';
sphere.style.left='200px'">
. . .</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED,
FIELDSET, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU,
OBJECT, OL, P, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
pixelLeft, posLeft
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
outerText Property overflow-x Attribute | ov...
Web Workshop | DHTML, HTML & CSS
overflow Attribute | overflow Property
Sets or retrieves how to manage the content of the object when the content exceeds the
height and/or width of the object.
Syntax
Possible Values
The property is read/write with a default value of visible; the cascading style sheets
(CSS) attribute is not inherited.
For the TEXTAREA object, only the hidden value is valid. Setting the overflow
property to hidden on a TEXTAREA object hides its scroll bars.
Setting the overflow property to visible causes the content to clip to the size of the
window or frame that contains the object.
Example
The following examples use the overflow attribute and the overflow property to
manage content of the object.
This example uses an inline style to automatically adjust itself to overflowing content
when the page is loaded.
This example allows the user to dynamically change the overflow property of a DIV
object by choosing one of the possible overflow values from a SELECT object.
<SCRIPT>
function SetOverflow(o, sValue)
{
o.style.overflow = sValue;
}
</SCRIPT>
<DIV ID="div1"
STYLE="font-size:18pt;background-
color:yellow;height:50px;width:75px">
The quick brown fox jumped over the lazy dog.
</DIV>
<SELECT onchange="SetOverflow(div1,
this.options[this.selectedIndex].text)">
<OPTION SELECTED>visible
<OPTION>scroll
<OPTION>hidden
<OPTION>auto
</SELECT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, CENTER, CITE, CODE, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT,
EM, EMBED, FIELDSET, FONT, FORM, Hn, I, INS, KBD, LABEL, LEGEND, LI, LISTING, MENU, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S,
SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TD, TEXTAREA, TT, U, UL, VAR, XMP
See Also
Syntax
HTML { overflow-x:sOverflow }
Scripting object.style.overflowX [ =sOverflow ]
Possible Values
The property is read/write with a default value of visible; the proposed cascading
style sheets (CSS) extension attribute is not inherited.
For the TEXTAREA object, only the hidden value is valid. Setting the property to
hidden on a TEXTAREA object hides its scroll bars.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, CENTER, CITE, CODE, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT,
EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MENU, OL, P, PLAINTEXT, PRE, Q, RT, RUBY,
runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
overflow-x Attribute | ov... owningElement Prop
Web Workshop | DHTML, HTML & CSS
overflow-y Attribute | overflowY Property
Sets or retrieves how to manage the content of the object when the content exceeds the
height of the object.
Syntax
HTML { overflow-y:sOverflow }
Scripting object.style.overflowY [ =sOverflow ]
Possible Values
The property is read/write with a default value of visible; the proposed cascading
style sheets (CSS) extension attribute is not inherited.
For the TEXTAREA object, only the hidden value is valid. Setting the property to
hidden on a TEXTAREA object hides its scroll bars.
Applies To
A, ACRONYM, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, CENTER, CITE, CODE, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT,
EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MENU, OL, P, PLAINTEXT, PRE, Q, RT, RUBY,
runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posHeight Property posLeft Property DHTML P
Web Workshop | DHTML, HTML & CSS
position Attribute | position Property
Retrieves the type of positioning used for the object.
Syntax
Possible Values
The property is read-only with a default value of static; the cascading style sheets
(CSS) attribute is not inherited.
Remarks
Setting the property to absolute pulls the object out of the "flow" of the document
and positions it regardless of the layout of surrounding objects. If other objects already
occupy the given position, they do not affect the positioned object, nor does the
positioned object affect them. Instead, all objects are drawn at the same place,
causing the objects to overlap. This overlap is controlled by using the z-index attribute
or property. Absolutely positioned objects do not have margins, but they do have
borders and padding.
Setting the property to relative places the object in the natural HTML flow of the
document, but offsets the position of the object based on the preceding content. The
following syntax shows how to create superscript text by placing the text in a SPAN
that is positioned relative to the remaining text in the paragraph.
Text and objects that follow a relatively positioned object occupy their own space and
do not overlap the natural space for the positioned object. In contrast, text and objects
that follow an absolutely positioned object occupy what would have been the natural
space for the positioned object before it was pulled out of the flow.
The size of the content determines the size of objects with layout. For example, setting
the height and position properties on a DIV object gives it layout. The content of the
DIV determines the size. In this case, the content determines the size of the width.
For an overview about how to use dynamic positioning, see positioning .
I
See the Applies To section for elements that can be relatively and absolutely
positioned.
Example
This examples uses the position property's absolute, static, and relative values
to change the position of the text.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET,
FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL,
P, PRE, RUBY, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TD, TEXTAREA, TH, TR, TT, U, UL, VAR,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
right Property RIGHTMARGIN Attribute | r... D
Web Workshop | DHTML, HTML & CSS
right Attribute | right Property
Sets or retrieves the position of the object relative to the right edge of the next positioned
object in the document hierarchy.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
Only use the right attribute when the position attribute is set; otherwise, the value of
the right attribute is ignored.
You cannot use the right property in script to calculate the position of the object in the
document, because the value of the right property is a string. Instead, use the
pixelRight property or the posRight property.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the right attribute to set a DIV object 50 pixels from the right of
the client area.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, DD, DFN, DIR, DIV, DL, FIELDSET, FORM, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE,
runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
toElement Property top Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
top Attribute | top Property
Sets or retrieves the position of the object relative to the top of the next positioned object
in the document hierarchy.
Syntax
Possible Values
The property is read/write with a default value of auto; the CSS attribute is not
inherited.
The top attribute should be used only when the position attribute is set; otherwise, the
value of the top attribute is ignored.
Because the value of the top property is a string, you cannot use the property in script
to calculate the position of the object in the document; instead, use the pixelTop or the
posTop property.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
The following examples use the top attribute and the top property to change the
position of the object.
This example uses an inline style to set the position of a DIV object.
<DIV STYLE="position:absolute;top:100px">
. . . </DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline script to change the position of the image set by an inline
style. The change occurs during onmouseover and onmouseout events.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, currentStyle, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED,
FIELDSET, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU,
OBJECT, OL, P, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
pixelTop, posTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
vertical-align Attribute ... visited Pseudo-class
Web Workshop | DHTML, HTML & CSS
visibility Attribute | visibility Property
Sets or retrieves whether the content of the object is displayed.
Syntax
Possible Values
The property is read/write with a default value of inherit; the cascading style sheets
(CSS) attribute is not inherited unless the value is set to inherit.
Unlike display:none, objects that are not visible still reserve the same physical space in
the content layout as they would if they were visible. You can change the visibility
through scripting to show and hide overlapping content based on user interaction. For
a child object to be visible, the parent object also must be visible. For document style
scripting information, see dynamic styles .
I
Example
The following examples use the visibility attribute and the visibility property to
determine whether the object is visible.
This example uses two calls to an embedded (global) style sheet to hide and then
show the image when the user moves the mouse over and off the text.
<STYLE>
.vis1 { visibility:visible }
.vis2 { visibility:hidden }
</STYLE>
</HEAD>
<BODY>
<IMG ID="oSphere" SRC="sphere.jpg">
<P onmouseover="oSphere.className='vis2'"
onmouseout="oSphere.className='vis1'">
Move the mouse over this text to make the sphere
disappear.</P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
<SCRIPT>
function disappear()
{
oSphere.style.visibility="hidden";
}
function reappear()
{
oSphere.style.visibility="visible";
}
</SCRIPT>
</HEAD>
<BODY>
<IMG SRC="sphere.jpeg" ID="oSphere">
Move the mouse over <SPAN ID="oTxt" onmouseover="disappear()"
onmouseout="reappear()"> this text</SPAN>
to see the sphere disappear.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN,
DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file,
INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL,
LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
WIDTH Attribute | width P... word-break Attribu
Web Workshop | DHTML, HTML & CSS
width Attribute | width Property
Sets or retrieves the width of the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
If you specify the width property of an IMG, but not the height property, the resulting
height of the IMG is sized proportionally to the specified width property and the
actual height, in pixels, of the source image file. Consider the following example:
If you specify the width property of an IMG, and the height and width of the image in
the source file are identical, the height of the image matches the width.
If you specify the height property and the width property of an IMG, the resulting
image dimensions match the height and width specified.
Percentage values refer to the parent object's width. Negative values are not allowed.
The following examples use the width attribute and the width property to change the
width of the object.
This example uses an inline style sheet to set the width of an image.
<DIV STYLE="position:absolute;top:10px;left:10px;width=1in">
. . . </DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the width of an image when an onclick event
occurs.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD,
Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, MAP, MARQUEE, MENU, META, NEXTID,
NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
y Property DHTML Properties
Web Workshop | DHTML, HTML & CSS
z-index Attribute | zIndex Property
Sets or retrieves the stacking order of positioned objects.
Syntax
Possible Values
Example
<IMG SRC="cone.jpg"
STYLE="position:absolute;
top:100; left:100; z-index:4">
<DIV STYLE="position:absolute; top:100;
left:100;
color:red; background-color:beige;
font-weight:bold;
z-index:1">
. . . </DIV>
STYLE="position:absolute;top:10px;left:10px
;"
onclick="cone.style.zIndex=1;
sphere.style.zIndex=2">
<IMG ID="sphere" SRC="sphere.jpg"
STYLE="position:absolute;top:1px;left:1px;"
onclick="cone.style.zIndex=2;
sphere.style.zIndex=1">
This feature requires Internet Explorer 4.0 or later. Click
the icon below to install the latest version. Then reload
this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, I,
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text,
ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE,
runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
padding-top Attribute | p... page-break-before
Web Workshop | DHTML, HTML & CSS
page-break-after Attribute | pageBreakAfter Property
Sets or retrieves whether a page break occurs after the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
If there are conflicts between this property and the pageBreakBefore value on the
object previously displayed in the browser, the value that results in the largest number
of page breaks is used.
Example
The following examples use the page-break-after attribute and the pageBreakAfter
property to start printing on a new page.
This example uses the P element as a selector in an embedded style sheet to break the
page at the end of all paragraphs.
<STYLE>
P { page-break-after: always }
</STYLE>
</HEAD>
<BODY>
<P>
:
</P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses a call to a function to turn off the page break after the object that
has an id value of idParagraph.
<SCRIPT>
function offBreak()
{
idParagraph.style.pageBreakAfter="";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="offBreak()">Turn off break</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, ISINDEX, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
page-break-after Attribut... palette Property D
Web Workshop | DHTML, HTML & CSS
page-break-before Attribute | pageBreakBefore Property
Sets or retrieves whether a page break occurs before the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is not inherited.
If there are conflicts between this property and the pageBreakAfter value object
previously displayed in the browser, the value that results in the largest number of
page breaks is used.
Example
This example uses the H3 element as a selector in an embedded style sheet to break
the page before all H3 headings.
<STYLE>
H3 { page-break-before: always }
</STYLE>
</HEAD>
<BODY>
<H3>Start New Section on New Page</H3>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses a call to a function to turn off the page break before the object that
has an id value of idParagraph. When the page is printed, a page break occurs before
the first paragraph unless the user clicks the Turn Off Break button.
<SCRIPT>
function offBreak()
{
idParagraph.style.pageBreakBefore="";
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onClick="offBreak()">Turn off break</BUTTON>
<P ID="Paragraph" STYLE="page-break-before:always">
:
</P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BLOCKQUOTE, BODY, BUTTON, CENTER, currentStyle, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, ISINDEX, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, style, TABLE, TD, TR, UL, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fileUpdatedDate Property firstChild Property D
Web Workshop | DHTML, HTML & CSS
filter Attribute | filter Property
Sets or retrieves the filter or collection of filters applied to the object.
Syntax
Possible Values
The property is read/write with no default value; the proposed cascading style sheets
(CSS) extension attribute is not inherited.
When using a SPAN or DIV object, be sure to specify at least one of the three required
CSS attributes: height, width, or position (absolute or relative).
The shadow filter can be applied to the IMG object by setting the filter on the image's
parent container.
For more information about filters, see creating multimedia effects with visual filters
and transitions . The filter mechanism is extensible and allows you to develop and add
I
additional filters later.
Example
The following examples use the filter attribute and the filter property to apply filters.
This example uses an inline style sheet to set the filter on an image.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
BODY, BUTTON, custom, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ACTION Attribute | action... activeElement Prop
Web Workshop | DHTML, HTML & CSS
active Pseudo-class
Sets the style of anchor when the link is engaged or active.
Syntax
Possible Values
Active means that the user currently is navigating the link. The active pseudo-class is
often used to set specific styles for the other states of a link: link, visited, and hover.
Using pseudo-classes on objects other than the A object has no effect.
Example
This example uses the active pseudo-class to set the attributes of the active link.
Applies To
HTML A
Scripting N/A
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ctrlKey Property DATA Attribute | data Pro...
Web Workshop | DHTML, HTML & CSS
cursor Attribute | cursor Property
Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.
Syntax
Possible Values
The property is read/write with a default value of auto; the cascading style sheets
(CSS) attribute is inherited.
The following examples use the cursor attribute and the cursor property to change
the cursor as it passes over an object.
This example uses a call to an embedded (global) style sheet to set the cursor to hand
as the cursor passes over all paragraphs.
<STYLE>
P { cursor:hand }
</STYLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses inline scripting to set the cursor to hand as the cursor passes over
the paragraph.
<P onmouseover="this.style.cursor='hand'">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, currentStyle, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
hostname Property href Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
hover Pseudo-class
Sets the style of the anchor when the user hovers the mouse over the links.
Syntax
Possible Values
Hover means that the user has the mouse positioned over the link and has hesitated.
If the user simply passes the mouse over the link, the style does change. The hover
pseudo-class is often used with specific styles for the other states of a link: active,
link, and visited.
The syntax in the following example uses a colon (:) to specify a pseudo-class.
Example
This example sets the style of an anchor. When the user hovers the mouse over a
hyperlink to which the following style sheet has been applied, the text displays in red,
converts to uppercase, and is spaced 1 centimeter apart.
<STYLE>
A:hover { color:red; text-transform:uppercase; letter-
spacing:1cm }
</STYLE>
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
@font-face Rule @media Rule DHTML Propert
Web Workshop | DHTML, HTML & CSS
@import Rule
Imports an external style sheet.
Syntax
Possible Values
sUrl String that specifies the URL that references a cascading style sheet.
The semicolon in the syntax is required; if omitted, the style sheet is not imported
properly and an error message is generated.
The @import rule, like the LINK element, links an external style sheet to a document.
This helps the Web author establish a consistent "look" across multiple HTML pages.
Whereas the LINK element specifies the name of the style sheet to import using its
HREF attribute, the @import rule specifies the style sheet definition inside a LINK or
a STYLE tag. In the scripting model, this means the owningElement property of the
style sheet defined through the @import rule is either a STYLE or a LINK object.
The @import rule should occur at the start of a style sheet, before any declarations.
Although Internet Explorer 4.0 allows @import statements to appear anywhere within
the style sheet definition, the rules contained within the @import style sheet are
applied to the document before any other rules defined for the containing style sheet.
This rule order affects expected rendering.
Rules in the style sheet override rules in the imported style sheet.
Example
This example uses the @import rule to import a style sheet located at
http://anotherStyleSheet.css.
<STYLE type="css/text">
@import url(http://anotherStyleSheet.css);
P {color:blue}
</STYLE>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
@charset Rule DHTML Properties
Web Workshop | DHTML, HTML & CSS
!important Declaration
Increases the weight or importance of a particular rule.
Syntax
HTML { sAttribute:sValue!important }
Scripting N/A
Possible Values
<STYLE>
P {color:red!important}
</STYLE>
<P STYLE="color:green">This will be red.</P>
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DFN, DIR,
DIV, DL, DT, EM, FIELDSET, FORM, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL,
P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
line-height Attribute | l... LINK Attribute | link P
Web Workshop | DHTML, HTML & CSS
link Pseudo-class
Sets or retrieves the style of the <A> element for the default state of the link.
Syntax
Possible Values
The link pseudo-class often is set with specific styles for the other states—active,
visited, and hover—of a link.
Internet Explorer 3.0 applies the link pseudo-class value to the visited psuedo-class.
Example
<STYLE>
A:link{ color: #FF0000 } // unvisited link
A:visited { color: #CFCFCF } // visited links
</STYLE>
Applies To
See Also
hover, visited
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
visibility Attribute | vi... VLINK ATTRIBUTE | vL
Web Workshop | DHTML, HTML & CSS
visited Pseudo-class
Sets the style of the anchor for previously visited links.
Syntax
Possible Values
The visited pseudo-class often is used with the active, link, and hover pseudo-
elements to define the various states of a link.
Example
This example sets unvisited links to red and visited links to blue, and uses a colon (:)
to specify a pseudo-class.
Applies To
HTML A
Scripting N/A
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cloneNode Method close Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
close Method
Closes the current browser window or HTML Application (HTA).
Syntax
window.close()
Return Value
No return value.
Remarks
The way that you close a window programmatically determines whether the user gets
prompted. If you invoke the close method on a window that you did not open with
script, the user sees a confirm dialog box. This also happens if you use close to exit
the last running instance of Microsoft® Internet Explorer. You can only use the close
method silently with HTAs. In the case of HTAs, the application is trusted and follows a
different security model.
When a function fired by an event on the BODY object calls the close method, the
window.close method is implied. When an event on the BODY object calls the close
method, the document.close method is implied.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
top Attribute | top Prope... top Property DHTM
Web Workshop | DHTML, HTML & CSS
top Property
Retrieves the topmost ancestor window, which is its own parent.
Syntax
HTML N/A
Scripting [ oTop = ] window.top
Possible Values
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
selectorText Property SHAPE Attribute | shape
Web Workshop | DHTML, HTML & CSS
self Property
Retrieves a reference to the current window or frame.
Syntax
HTML N/A
Scripting [ oSelf = ] object.self
Possible Values
Remarks
You can use the property to explicitly refer to the current window or frame. To improve
scripting efficiency, you also can use it to make implicit window references explicit.
Applies To
FRAME, window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
recordset Property REL Attribute | rel Prope...
Web Workshop | DHTML, HTML & CSS
referrer Property
Retrieves the URL of the location that referred the user to the current page.
Syntax
HTML N/A
Scripting [ sUrl= ] document.referrer
Possible Values
Remarks
This property returns a value only when the user reaches the current page through a
link from the previous page. Otherwise, document.referrer returns an empty string;
it also returns an empty string when the link is from a secure site.
For example, if PageA.htm includes a link to PageB.htm, and the user clicks that link,
the document.referrer on PageB.htm returns "PageA.htm". However, if the user is on
PageA.htm and types PageB.htm into the address line or uses Open in the File menu to
get to PageB.htm, the document.referrer returns an empty string.
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onLine Property outerHTML Property DHTML P
Web Workshop | DHTML, HTML & CSS
opener Property
Sets or retrieves a reference to the window that created the current window.
Syntax
HTML N/A
Scripting window.opener [ =sWindow ]
Possible Values
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
href Property HREF Attribute | href Pro... DHT
Web Workshop | DHTML, HTML & CSS
HREF Attribute | href Property
Sets or retrieves the destination URL or anchor point.
Syntax
Possible Values
When an anchor is specified, the link to that address is represented by the text
between the opening and closing anchor tags.
Applies To
A, AREA, LINK
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NAME Attribute | name Pro... nameProp Proper
Web Workshop | DHTML, HTML & CSS
NAME Attribute | name Property
Sets or retrieves the name of the control, bookmark, or application.
Syntax
Possible Values
When submitting a FORM, use the name property to bind the value of the control. The
name is not the value displayed for the button, reset, and submit input types. The
internally stored value, not the displayed value, is the one submitted with the form.
Microsoft® JScript® (compatible with ECMA 262 language specification) allows the
name to be changed at run time. This does not cause the name in the programming
model to change in the collection of elements, but it does change the name used for
submitting elements.
In Internet Explorer 5, the name property cannot be set at run time on anchor objects
dynamically created with the createElement method. To create an anchor with a
NAME attribute, include the attribute and value when using the createElement
method, or use the innerHTML property.
Example
Applies To
A, APPLET, BUTTON, FORM, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, LINK, MAP, OBJECT, PARAM, RT, RUBY, SELECT,
TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
A Element | A Object Members
Designates the start or destination of a hypertext link.
Properties
Methods
Collections
Behaviors
Styles
widthpadding-rightpaddingcursorvisibilityfont-styletext-
autospaceleftoverflow-xfont-variantoverflow-
ylinkbackgrounddirectionpositionbackground-
positionclearvisitedword-spacingtoppadding-
lefthoverlayout-grid-modepadding-bottomrightfont-
sizeoverflowletter-spacingdisplayfloatfont-
familyactivebehaviorbackground-repeattext-
transformbackground-imagebottomcliptext-
decorationcolorz-indexfontfont-weightbackground-
colorunicode-bidiline-heightlayout-gridpadding-top
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
ACRONYM Element | ACRONYM Object
Members
Indicates an acronym abbreviation.
Properties
Methods
Events
Collections
Behaviors
Styles
widthdirectionoverflowpadding-
rightdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
ADDRESS Element | ADDRESS Object
Members
Specifies information, such as address, signature, and
authorship, of the current document.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviorword-breaktext-
transformbackground-repeatbackground-
imagebottomvisibilityfont-stylecliptext-
autospaceleftoverflow-xfont-varianttext-
decorationoverflow-yline-
breakbackgroundcolordirectionz-indextext-
justifypositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
APPLET Element | APPLET Object Members
Places executable content on the page.
Properties
Methods
Events
onbeforecut , onbeforeeditfocus , onbeforepaste , onblur
, oncellchange , onclick , oncontextmenu , oncut ,
ondataavailable , ondatasetchanged ,
ondatasetcomplete , ondblclick , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onload ,
onlosecapture , onmousedown , onmousemove ,
onmouseout , onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onrowenter , onrowexit , onrowsdelete , onrowsinserted
, onscroll
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-
rightfloatdisplaypaddingcursorbehaviorbottomvisibilitycli
ptext-autospaceleftoverflow-xoverflow-ycolorz-
indexpositioncleartoppadding-leftlayout-gridlayout-grid-
modeheightpadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
cookieEnabled Property cpuClass Property DH
Web Workshop | DHTML, HTML & CSS
COORDS Attribute | coords Property
Sets or retrieves the coordinates of a hyperlink AREA within an image MAP.
Syntax
Possible Values
sCoords String that specifies the coordinates. The format of this string depends on the value of the SHAPE attribute of the AREA element. For
details, see the Remarks section.
The format of sCoords depends on the value of the SHAPE attribute as follows:
SHAPE= "circ" or COORDS= "x1,y1,r" – Where x1,y2 are the coordinates of the center of the circle, and r is the radius of the circle.
"circle"
SHAPE= "poly" or COORDS= "x1,y1,x2,y2...xn,yn" – Where each x,y pair contains the coordinates of one vertex of the polygon.
"polygon"
SHAPE= "rect" or COORDS= "x1,y1,x2,y2" – Where x1,y1 are the coordinates of the upper-left corner of the rectangle and x2,y2 are the
"rectangle" coordinates of the lower-right coordinates of the rectangle.
Example
This example provides the full code for an image map of the solar system. Clicking on
the sun or any planet links to an individual image. The user can click the Back button
from the image to return to the solar system image map.
Applies To
AREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
self Property shiftKey Property DHTML Proper
Web Workshop | DHTML, HTML & CSS
SHAPE Attribute | shape Property
Sets or retrieves the shape of a hyperlink AREA in an image MAP.
Syntax
Possible Values
The value of the SHAPE attribute determines the format of the COORDS attribute.
This example provides the full code for an image map of the solar system. When you
click on the sun or any planet, you will link to the image associated with the x,y
coordinate. You can click the Back button from the image to return to the solar system
image map.
Applies To
AREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
AREA Element | AREA Object Members
Defines the shape, coordinates, and associated URL of one
hyperlink region within a client-side image MAP.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforeeditfocus ,
onbeforepaste , onblur , onclick , oncontextmenu ,
oncopy , oncut , ondblclick , ondrag , ondragend ,
ondragenter , ondragleave , ondragover , ondragstart ,
ondrop , onfocus , onhelp , onkeydown , onkeypress ,
onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onselectstart
Collections
Behaviors
Styles
widthdirectionunicode-bidibehaviorlayout-gridlayout-
grid-modetext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
areas Collection behaviorUrns Collection DHT
Web Workshop | DHTML, HTML & CSS
attributes Collection
Retrieves a collection of attributes of the object.
Syntax
[ collAttributes = ] object.attributes
[ oObject = ] object.attributes(iIndex)
Possible Values
Members
Remarks
The attributes collection does not include expando properties. To access the expando
properties of an object, use the JScript® (compatible with ECMA 262 language
specification) for...in construct.
The attributes collection does not expose the style object. Use the cssText property of
the object's style property to retrieve the persistent representation of the cascading
styles associated with an object.
Unlike other DHTML collections, such as all and children, the attributes collection is
static. Modifications to the properties of an object are not automatically reflected by an
existing reference to the attributes collection of that object.
Example
This example shows how to iterate through the collection of attributes of the specified
object, displaying the name and value of the attributes as well as the language of the
attribute (HTML or script).
<SCRIPT>
function ShowAttribs(oElem)
{
txtAttribs.innerHTML = '';
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
EVENT Attribute | event P... FACE Attribute | fa
Web Workshop | DHTML, HTML & CSS
expando Property
Sets or retrieves whether arbitrary variables can be created within an object.
Syntax
HTML N/A
Scripting document.expando [ =bExpand ]
Possible Values
You can extend the properties on an object by creating arbitrary properties with
values. You should be careful, however, because you can unintentionally set a property
value when scripting in a case-sensitive language such as Microsoft® JScript®
(compatible with ECMA 262 language specification). For example, if the property value
is borderColor and you type the value "bordercolor = 'blue'", you have, in fact, created
another property on the style object called bordercolor with the value 'blue'. If you
query the value of the property, the value "blue" is returned. However, the borders for
the element do not turn blue.
Microsoft® Visual Basic® Scripting Edition (VBScript) does not support expando
properties on its native language objects, nor does it cause Microsoft® Internet
Explorer to create expando properties on its objects. Internet Explorer supports
creation of expando properties on its objects, in any language, through setAttribute.
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
Attribute Object Members
Represents an attribute or property of an HTML element as
an object.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
SPAN Attribute | span Pro... S SRC Attribute | src
Web Workshop | DHTML, HTML & CSS
specified Property
Retrieves whether an attribute has been specified.
Syntax
HTML N/A
Scripting [ bSpecified = ] object.specified
Possible Values
Remarks
Example
This example uses the specified property to determine the attributes set for an
object. The function checks each attribute, and lists all of the attributes of the object
and the value of each attribute. In addition, each attribute that is set is displayed.
<SCRIPT>
function fnFindSpecified(){
var oAttributes=oList.attributes;
alert(oAttributes(0).nodeName);
for(var i=0;i<oAttributes.length;i++){
var oNode=document.createElement("LI");
var oNodeValue=document.createTextNode(i + " "
+ oAttributes(i).nodeName + " = "
+ oAttributes(i).nodeValue);
oList.appendChild(oNode);
oNode.appendChild(oNodeValue);
if(oAttributes(i).nodeValue!=null){
alert(oAttributes(i).nodeName
+ " specified: " + oAttributes(i).specified);
}
}
}
</SCRIPT>
Attribute
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
B Element | B Object Members
Specifies that the text should be rendered in bold.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BASE Element | BASE Object Members
Specifies an explicit URL used to resolve links and
references to external sources such as images and style
sheets.
Properties
Methods
Events
onreadystatechange
Collections
Styles
widthbehaviorlayout-gridlayout-grid-modetext-
autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BASEFONT Element | BASEFONT Object
Members
Sets a base font value to be used as the default font when
rendering text.
Properties
Methods
Events
onreadystatechange
Collections
Styles
widthfont-familybehaviorlayout-gridlayout-grid-
modetext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
dialogWidth Property DIRECTION Attribute | dir
Web Workshop | DHTML, HTML & CSS
DIR Attribute | dir Property
Sets or retrieves the reading order of the object.
Syntax
Possible Values
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DEL,
DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
direction
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
BDO Element | BDO Object Members
Allows authors to disable the bidirectional algorithm for
selected fragments of text.
Properties
Methods
Events
Collections
Behaviors
Styles
directionoverflowpositionpadding-
rightdisplaypaddingunicode-bidipadding-leftlayout-
gridcliplayout-grid-modepadding-toptext-
autospaceoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BGSOUND Element | BGSOUND Object
Members
Enables pages with background sounds or soundtracks to be
created.
Properties
Methods
Events
onreadystatechange
Collections
Behaviors
clientCaps , download , homePage
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BIG Element | BIG Object Members
Specifies that the enclosed text should be displayed in a
larger font than the current font.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BLOCKQUOTE Element | BLOCKQUOTE
Object Members
Sets apart a quotation in text.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
onbeforeupdate Event onbounce Event DHTM
Web Workshop | DHTML, HTML & CSS
onblur Event
Fires when the object loses the input focus.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Cause an object to lose focus:
Click the mouse on the document background or another control.
Use the keyboard to navigate from one object to the next.
Invoke the blur method when an object has focus.
Switch focus to a different application or open a second browser window.
Default action Switches focus away from the object on which the event is fired.
The onblur event fires on the original object before the onfocus or onclick event fires
on the object that is receiving focus. Where applicable, the onblur event fires after the
onchange event.
Use the focus events to determine when to prepare an object to receive or validate
input from the user.
As of Microsoft® Internet Explorer 5, you must set the TABINDEX attribute of elements
that expose the onblur event.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to display the name of the object that has lost focus—that is,
the object that fires the onblur event.
<HTML>
<BODY>
<INPUT TYPE=text NAME=txtFName VALUE="First Name"
onblur="alert(event.srcElement.name)">
<INPUT TYPE=text NAME=txtLName VALUE="Last Name"
onblur="alert(event.srcElement.name)">
<INPUT TYPE=text NAME=txtPhone VALUE="Phone"
onblur="alert(event.srcElement.name)">
</BODY>
</HTML>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DIV, DL, DT,
EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file,
INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD,
LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, window, XMP
See Also
blur, focus
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onfinish Event onhelp Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onfocus Event
Fires when the object receives the focus.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Give focus to an object:
Click an object.
Use keyboard navigation.
Invoke the focus method.
When one object loses focus and another object receives focus, the onfocus event
fires on the object receiving focus only after the onblur event fires on the object
losing focus. Use the focus events to determine when to prepare an object to receive
input from the user.
As of Microsoft® Internet Explorer 5, you can force elements that do not implicitly
receive focus to receive focus by adding them to the document tabbing order using
the TABINDEX attribute.
As of Internet Explorer 5, elements retain focus within the current browser history
when the user returns to a page. To avoid firing the onfocus event unintentionally for
an element when the document loads, invoke the focus method on another element.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onfocus event to make INPUT_text and LABEL objects more
accessible. When the INPUT_text object has focus, the onfocus event fires and the
backgroundColor, fontSize, and fontWeight properties are changed to give the control
more prominence.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DIV, DL,
DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT,
SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, window, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeyup Event onlosecapture Event DHTML E
Web Workshop | DHTML, HTML & CSS
onload Event
Fires immediately after the browser loads the object.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Open a page in the browser to invoke this event for the document or any object within it.
Default action Loads the object for which the event is specified.
The onload attribute of the BODY object sets an onload event handler for the
window. This technique of calling the window onload event through the BODY object
is overridden by any other means of invoking the window onload event, provided the
handlers are in the same script language.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses an onload event handler to display a message in the window's
status bar when the page has finished loading.
<BODY>
<SCRIPT FOR=window EVENT=onload LANGUAGE="JScript">
window.status = "Page is loaded!";
</SCRIPT>
</BODY>
This example sets an onload event handler for an IMG object. The handler uses the
event object to retrieve the URL of the image.
<SCRIPT>
function imageLoaded()
{
window.status = "Image " + event.srcElement.src + " is
loaded";
}
</SCRIPT>
<BODY>
<IMG SRC="sample.gif" onload="imageLoaded()">
</BODY>
Applies To
See Also
onreadystatechange, onunload
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onsubmit Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onunload Event
Fires immediately before the object is unloaded.
Syntax
Remarks
Bubbles No
Cancels No
To
invoke Close the current browser window.
Navigate to another location by entering a new address or selecting a Favorite.
Click the Back, Forward, Refresh, or Home button.
Click on an anchor that refers the browser to another Web page.
Invoke the anchor click method.
Invoke the document write method.
Invoke the document open method.
Invoke the document close method.
Invoke the window close method.
Invoke the window open method, providing the possible value _self for the
window name.
Invoke the window navigate or NavigateAndFind method.
Invoke the location replace method.
Invoke the location reload method.
Specify a new value for the location href property.
Submit a FORM to the address specified in the ACTION attribute via the
INPUT_submit control, or invoke the form submit method.
<HEAD>
<SCRIPT FOR=window EVENT=onunload>
alert("The onunload event fired for the
window object.");
</SCRIPT>
<SCRIPT>
function fnRelocate()
{
location.href="/workshop/samples/author/dhtml
/refs/onunloadEX_target.htm";
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE=button VALUE="Go To Page 2"
onclick="fnRelocate()">
<IMG ID=imgTest
SRC="/workshop/graphics/prop_rw.gif">
</BODY>
Applies To
FRAMESET, window
See Also
onload
Did you find this topic useful? Suggestions for other topics? write
us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
BODY Element | body Object Members
Specifies the beginning and end of the document body.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursorfiltertext-indentvisibilityfont-
styleborder-left-colormargin-lefttext-autospaceoverflow-
xlayout-grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifybackground-positionborder-right-
colorborder-rightword-spacingpadding-leftlayout-grid-
modepadding-bottomfont-sizeborder-
bottomoverflowletter-spacingdisplayfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagetext-decorationcolorborder-styleborder-top-
widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthbackground-
attachmentborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
BR Element | BR Object Members
Inserts a line break.
Properties
Methods
Events
onlosecapture , onreadystatechange
Collections
attributes , behaviorUrns
Behaviors
clientCaps , download , homePage
Styles
widthbehaviorlayout-gridlayout-grid-modetext-
autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
value Property VALUE Attribute | value P... DH
Web Workshop | DHTML, HTML & CSS
VALUE Attribute | value Property
Sets or retrieves the value of the object.
Syntax
Possible Values
sValue String that specifies the value of an object or a FORM control. The purpose of the string depends on the type of control, as follows:
checkbox The selected value. The control submits this value only if the user has selected the control. Otherwise,
the control submits no value.
file The value, a file name, typed by the user into the control. Unlike other controls, this value is read-only.
hidden The control submits this value when the form is submitted.
OPTION The selected value. The containing list box control submits this value only if the user has selected the
option.
password The default value. The control displays this value when it is first created and when the user clicks the
reset button.
radio The button label. If not set, the label defaults to "Reset".
reset The selected value. The control submits this value only if the user has selected the control. Otherwise,
the control submits no value.
submit The button label. If not set, the label defaults to "Submit Query."
text The default value. The control displays this value when it is first created and when the user clicks the
reset button.
This property is read/write with a default value of on for the checkbox and radio
objects, Submit Query for the submit object, and Reset for the reset object. All
other objects have no default value.
The VALUE attribute of the PARAM object specifies a value passed to an APPLET,
EMBED, or OBJECT object.
Example
This example sets the value for each option to an integer string (for example, a part
number).
<SELECT>
<OPTION VALUE="123">Item One
<OPTION VALUE="456">Item Two
<OPTION VALUE="789">Item Three
</SELECT>
Applies To
BUTTON, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, OPTION, PARAM
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
innerHTML Property ISMAP Attribute | isMap P..
Web Workshop | DHTML, HTML & CSS
innerText Property
Sets or retrieves the text between the start and end tags of the object.
Syntax
HTML N/A
Scripting object.innerText [ = sTxt ]
Possible Values
sTxt String that specifies the text between the start and end tags.
Remarks
The innerText property is read-only on the HTML, TABLE, TBODY, TFOOT, THEAD, and
TR objects.
When the innerText property is set, the given string completely replaces the existing
content of the object.
You can set this property only after the onload event fires on the window. When
dynamically creating a tag using TextRange, innerHTML, or outerHTML, use Microsoft®
JScript® (compatible with ECMA 262 language specification) to create new events to
handle the newly formed tags. Microsoft® Visual Basic® Scripting Edition (VBScript) is
not supported.
You can change the value of the TITLE element using the document.title property.
To change the contents of the TABLE, TFOOT, THEAD, and TR elements, use the
table object model. For example, use the rowIndex property or the rows collection to
retrieve a reference to a specific table row. You can add or delete rows using the
insertRow and deleteRow methods. To retrieve a reference to a specific cell, use the
cellIndex property or the cells collection. You can add or delete rows using the
insertCell and deleteCell methods. To change the content of a particular cell, use the
innerHTML property.
Example
This example uses the innerText property to replace an object's contents. The object
surrounding the text is not replaced.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, EM, FIELDSET,
FONT, FORM, HEAD, Hn, HTML, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, OPTION, P,
PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP, XMP
See Also
insertAdjacentText
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
BUTTON Element | BUTTON Object
Members
Specifies a container for rich HTML that is rendered as a
button.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthfiltertext-indentvisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
CAPTION Element | CAPTION Object
Members
Specifies a brief description for a TABLE.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorvisibilityfont-styleborder-left-colormargin-
lefttext-autospacefont-
variantbackgrounddirectionborder-bottom-
colorbackground-positionclearborder-right-colorborder-
rightword-spacingpadding-leftlayout-grid-modepadding-
bottomfont-sizeborder-bottomletter-spacingdisplayfont-
familymargin-rightbehaviortext-transformbackground-
repeatborder-top-stylebackground-imagetext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
CENTER Element | CENTER Object
Members
Centers subsequent text and images.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
CITE Element | CITE Object Members
Indicates a citation by rendering text in italic.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
clientInformation Object Members
Contains information about the Web browser.
Properties
Methods
javaEnabled , taintEnabled
Collections
plugins
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
USEMAP Attribute | useMap... userLanguage Pr
Web Workshop | DHTML, HTML & CSS
userAgent Property
Retrieves a string equivalent to the HTTP user-agent request header.
Syntax
HTML N/A
Scripting [ sUserAgent = ] navigator.userAgent
Possible Values
Remarks
The HTTP user-agent request header contains information about compatibility, the
browser, and the platform name. For more information about the browser, see the
appName property. For more information about the platform, see the appVersion
property.
The userAgent property returns a different value depending on the browser and
platform versions. For example, Microsoft® Internet Explorer 4.01 returns the
following string for Microsoft ® Windows® 95.
Example
This example uses the userAgent property to specify a required platform before
additional script is executed. For example, if Windows 95 is a requirement for the
document, you can use a variable to determine whether the user is running the
necessary operating system. The "bIs95" variable is set to true if Windows 95 is found
in the userAgent value and the additional script is processed.
<SCRIPT>
var bIs95=false;
window.onload=fnInit;
function fnInit(){
if(navigator.userAgent.indexOf("Windows 95")>-1){
bIs95=true;
}
if(bIs95==true){
// Process additional script.
}
}
</SCRIPT>
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
clipboardData Object Members
Provides access to predefined clipboard formats for use in
editing operations.
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
CODE Element | CODE Object Members
Specifies a code sample.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onclick ,
oncontextmenu , oncopy , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onhelp , onkeydown , onkeypress
, onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
COL Element | COL Object Members
Specifies column-based defaults for the table properties.
Properties
Methods
Events
onreadystatechange
Collections
all , attributes , behaviorUrns , childNodes , children
Behaviors
Styles
widthfont-sizepadding-rightletter-
spacingdisplaypaddingfont-familycursorbehaviortext-
transformbackground-repeatbackground-imagevertical-
alignvisibilityfont-styletext-autospacefont-varianttext-
decorationbackgroundcolordirectionz-indexbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightpadding-leftlayout-
gridlayout-grid-modepadding-toppadding-bottom
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
COLGROUP Element | COLGROUP Object
Members
Contains a group of columns.
Properties
Methods
Events
onreadystatechange
Collections
Behaviors
Styles
widthfont-sizepadding-rightletter-
spacingdisplaypaddingfont-familycursorbehaviortext-
transformbackground-repeatbackground-
imagevisibilityfont-styletext-autospacefont-varianttext-
decorationbackgroundcolordirectionz-indexbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightpadding-leftlayout-
gridlayout-grid-modepadding-toppadding-bottom
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
childNodes Collection controlRange Collection
Web Workshop | DHTML, HTML & CSS
children Collection
Retrieves a collection of elements that are direct descendants of the object.
Syntax
[ collChildren = ] object.children
[ oObject = ] object.children(vIndex [, iSubIndex])
Possible Values
Members
Remarks
Similar to the objects contained in the all collection, the objects contained in the
children collection are undefined if the child elements are overlapping tags.
Example
This example shows how to determine the collections for two DIV elements, divONE
and divTWO. The children collection for divONE includes IMG, DIV, and BUTTON. The
children collection for divTWO includes P.
<DIV id=divONE>
<IMG src=mygif.gif>
<DIV id=divTWO>
<P>Some text in a paragraph
</DIV>
<BUTTON> The label for the button </BUTTON>
</DIV>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S,
SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, THEAD, TITLE, TR, TT, U, UL, VAR,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
COMMENT Element | COMMENT Object
Members
Indicates a comment that is not displayed.
Properties
Methods
Events
onpropertychange , onreadystatechange
Collections
Styles
widthbehaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
HTML Element | HTML Objec... I Element | I Ob
Web Workshop | DHTML, HTML & CSS
HTML Comment Element
Prevents any enclosed text or HTML source code from being parsed and displayed in the
browser window.
Remarks
Example
This example uses HTML COMMENT tags, "<!-- -->", to insert a comment in an HTML
document.
<!-- This text will not appear in the browser window. -->
See Also
COMMENT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AddFavorite Method addReadRequest Method
Web Workshop | DHTML, HTML & CSS
addImport Method
Adds a style sheet to the imports collection for the given style sheet.
Syntax
Parameters
sURL Required. String that specifies the location of the source file for the style sheet.
iIndex Optional. Integer that specifies the requested position for the style sheet in the collection. If this value is not given, the style sheet is added
to the end of the collection.
Return Value
Integer. Returns a zero-based index value that specifies the position of the imported
style sheet in the imports collection.
Applies To
styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
currentStyle Object Members
Represents the cascaded format and style of the object as
specified by global style sheets, inline styles, and HTML
attributes.
Properties
backgroundAttachment , backgroundColor ,
backgroundImage , backgroundPositionX ,
backgroundPositionY , backgroundRepeat ,
borderBottomColor , borderBottomStyle ,
borderBottomWidth , borderColor , borderLeftColor ,
borderLeftStyle , borderLeftWidth , borderRightColor ,
borderRightStyle , borderRightWidth , borderStyle ,
borderTopColor , borderTopStyle , borderTopWidth ,
borderWidth , bottom , clear , clipBottom , clipLeft ,
clipRight , clipTop , color , cursor , direction , fontFamily
, fontSize , fontStyle , fontVariant , fontWeight , height ,
layoutGridChar , layoutGridCharSpacing , layoutGridLine
, layoutGridMode , layoutGridType , left , letterSpacing ,
lineHeight , listStyleImage , listStylePosition ,
listStyleType , margin , marginBottom , marginLeft ,
marginRight , marginTop , overflow , overflowX ,
overflowY , pageBreakAfter , pageBreakBefore , right ,
styleFloat , tableLayout , textAlign , textDecoration ,
textIndent , textTransform , top , unicodeBidi ,
verticalAlign , visibility , width , zIndex
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
XMLDocument Property y Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
XMLNS Attribute
Declares a namespace for custom tags in an HTML document.
Syntax
Possible Values
sNamespace String that specifies the namespace used as a prefix to custom tags, or the following value:
urn Uniform Resource Name (URN) that uniquely identifies the namespace.
The syntax for XMLNS is based on the W3C xml namespace spec . Although the
I
W3C draft allows you to declare namespaces on all tags, Internet Explorer supports
namespace declaration only on the HTML tag.
You can declare multiple namespaces on the HTML tag, as the syntax below shows:
Example
This example shows how to declare a namespace when one of the default behaviors in
Internet Explorer, clientCaps, is used as a custom tag in an HTML document. Note how
you must add the declared namespace (in this case, MSIE) to the custom tag when it
is defined.
This example also shows how the clientCaps behavior can be used to install the
Internet Explorer Data Binding component, if the component does not already exist in
the user's system.
Applies To
HTML
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
@import Rule ACCESSKEY Attribute | acc... D
Web Workshop | DHTML, HTML & CSS
@media Rule
Sets the media types for a set of styleSheet rules.
Syntax
Possible Values
Applies To
STYLE
See Also
media
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
custom Element | custom Object Members
Represents a user-defined element.
Properties
Methods
Events
Collections
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorvertical-alignfiltervisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xfont-
variantoverflow-ybackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviortext-transformbackground-
repeatborder-top-stylebackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottomfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
setCapture Method setEndPoint Method DHTM
Web Workshop | DHTML, HTML & CSS
setData Method
Assigns data in a specified format to the dataTransfer or clipboardData object.
Syntax
Parameters
sDataFormat Required. String that specifies the format of the data to be transferred, using one of the following values:
Text Transfers data formatted as text.
URL Transfers data formatted as a URL.
sData Required. String that specifies the data supplied by the source object. This information can be descriptive text, a source path to an
image, or a URL for an anchor. When you pass URL as the sDataFormat parameter, you must use sData to provide the location of the
object being transferred.
Return Value
Boolean. Returns true if the data was successfully added, or false otherwise.
Remarks
Example
This example uses the setData and getData methods with the dataTransfer object to
create a shortcut to an image.
Applies To
clipboardData, dataTransfer
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getClientRects Method getElementById Method
Web Workshop | DHTML, HTML & CSS
getData Method
Retrieves the data in the specified format from the clipboard through the dataTransfer or
clipboardData objects.
Syntax
sRetrieveData = object.getData(sDataFormat)
Parameters
sDataFormat Required. String that specifies one of the following data format values:
Text Retrieves data formatted as text.
URL Retrieves data formatted as a URL.
Return Value
String. Returns the data in the format retrieved from clipboard through the
dataTransfer or clipboardData object. Depending on the information contained in
setData, this variable can retrieve a path to an image, text, or an anchor URL.
Remarks
The getData method enforces cross-frame security and allows data transfers within
the same domain only. To the user this means that dragging a selection between
different security protocols, such as HTTP and HTTPS, will fail. In addition, dragging a
selection between two instances of the browser with different security levels, where
the first instance is set to medium and the second is set to high, will fail. Finally,
dragging a selection into the browser from another drag-enabled application, such as
Microsoft® Word, also will fail.
To use the getData method to retrieve data from the clipboard within the oncopy or
oncut event, specify window.event.returnValue=false within the event handler
script.
Example
The following examples use the setData and getData methods of the dataTransfer
object to drop text in a new location and create a desktop shortcut.
Applies To
clipboardData, dataTransfer
See Also
Properties
dropEffect , effectAllowed
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DD Element | DD Object Members
Indicates the definition in a definition list. The definition is
usually indented in the definition list.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DEL Element | DEL Object Members
Indicates text that has been deleted from the document.
Properties
Methods
Events
Behaviors
Styles
widthdirectionoverflowpadding-
rightdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DFN Element | DFN Object Members
Indicates the defining instance of a term.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomtext-indentvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DIR Element | DIR Object Members
Denotes a directory list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DIV Element | DIV Object Members
Specifies a container that renders HTML.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforeeditfocus ,
onbeforepaste , onblur , onclick , oncontextmenu ,
oncopy , oncut , ondblclick , ondrag , ondragend ,
ondragenter , ondragleave , ondragover , ondragstart ,
ondrop , onfilterchange , onfocus , onhelp , onkeydown
, onkeypress , onkeyup , onlosecapture , onmousedown
, onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onscroll , onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursorfiltertext-indentvisibilityfont-
styleborder-left-colormargin-lefttext-
autospaceleftoverflow-xlayout-grid-linefont-
variantoverflow-yline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DL Element | DL Object Members
Denotes a definition list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onlosecapture , onmousedown , onmousemove ,
onmouseout , onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
nextPage Method open Method DHTML Metho
Web Workshop | DHTML, HTML & CSS
open Method
Opens a new window and loads the document specified by a given URL, or opens a blank
document if a URL is not provided.
Syntax
Parameters
sURL Optional. String that specifies the URL of the document to display. If no URL is specified, a new window with about:blank is displayed.
sName Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a FORM or an A
element.
In Internet Explorer 5 and later, specifying the value _search opens sURL in the browser's search pane.
sFeatures Optional. String that specifies the window ornaments to display. The following features are supported:
channelmode = { yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show
the channel band. The default is no.
directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. The default is yes.
fullscreen = { yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal
window. The default is no, which displays the browser in a normal
window.
Use full-screen mode carefully. Because this mode hides the
browser's title bar and menus, you should always provide a button or
other visual clue to help the user close the window. ALT+F4 also
closes the new window.
height = number Specifies the height of the window, in pixels. The minimum value is
100.
left = number Specifies the left position, in pixels. This value is relative to the
upper-left corner of the screen.
location = { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly
into the browser. The default is yes.
menubar = { yes | no | 1 | 0 } Specifies whether to display the menu bar. The default is yes.
resizable = { yes | no | 1 | 0 } Specifies whether to display resize handles at the corners of the
window. The default is yes.
scrollbars = { yes | no | 1 | 0 } Specifies whether to display horizontal and vertical scroll bars. The
default is yes.
status = { yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window.
The default is yes.
titlebar = { yes | no | 1 | 0 } Specifies whether to display a title bar for the window. This
parameter is ignored unless the caller is an html applicationIn or a
trusted dialog box. The default is yes.
toolbar = { yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons
such as Back, Forward, and Stop available. The default is yes.
top = number Specifies the top position, in pixels. This value is relative to the
upper-left corner of the screen.
width = number Sets the width of the window, in pixels. The minimum value is 100.
bReplace Optional. Boolean that specifies whether the URL that is loaded into the new page should create a new entry in the window's browsing
history or replace the current entry in the browsing history. If set to true, no new history entry is created.
Return Value
Returns a reference to the new window object. Use this reference to script properties
and methods on the new window.
Remarks
By default, the open method creates a window that has a default width and height and
the standard menu, toolbar, and other features of Microsoft® Internet Explorer. You
can alter this set of features by using the sFeatures parameter. This parameter is a
string consisting of one or more feature settings. When one feature is specified, any
additional features that are not specified are disabled. If no features are specified, the
window features maintain their default values. In addition to enabling a feature with
the specified possible value, simply listing the feature name also enables that feature
for the new window.
Internet Explorer 5 allows further control over windows through the implementation of
title in the sFeatures parameter of the open method. Turn off the title bar by
opening the window from a trusted application, such as Microsoft® Visual Basic® or an
HTML Application (HTA). These applications are considered trusted, because each uses
Internet Explorer interfaces instead of the browser.
Windows CE
In Microsoft® Windows® CE, the document object is not available through scripting for
a window opened using the open method.
Example
This example uses the open method to create a new window that contains
Sample.htm. The new window is 200 pixels by 400 pixels and has a status bar, but it
does not have a toolbar, menu bar, or address field.
window.open("Sample.htm",null,
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=
no");
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
document Object Members
Represents the HTML document in a given browser window.
Properties
Methods
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
DT Element | DT Object Members
Indicates a definition term within a definition list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagecliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
EM Element | EM Object Members
Emphasizes text, usually by rendering it in italic.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagevisibilityfont-stylecliptext-
autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottom
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
EMBED Element | EMBED Object Members
Allows documents of any type to be embedded.
Properties
Methods
Events
onbeforecut , onbeforepaste , onblur , onclick ,
oncontextmenu , oncut , ondblclick , onfocus , onhelp ,
onload , onlosecapture , onmousedown , onmousemove
, onmouseout , onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onscroll
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthborder-bottomoverflowpadding-
rightfloatdisplaypaddingmargin-rightborder-right-
widthcursorbehaviorborder-top-stylevisibilityclipborder-
left-colormargin-lefttext-autospaceleftoverflow-
xoverflow-yborder-styleborder-topborder-top-
widthdirectionborder-bottom-colormargin-
bottompositionclearborder-left-styleborder-right-
colorborder-rightmarginborder-widthunicode-
biditoppadding-leftborder-bottom-stylelayout-
gridborder-left-widthborder-leftheightlayout-grid-
modepadding-toppadding-bottomborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
FRAMESPACING Attribute | ... hash Property
Web Workshop | DHTML, HTML & CSS
fromElement Property
Retrieves the object the mouse pointer is exiting during the onmouseover and onmouseout
events.
Syntax
HTML N/A
Scripting [ oObject = ] event.fromElement
Possible Values
oObject Object that specifies the previous location of the mouse pointer.
Example
In this example, the alert returns "mouse arrived" when the mouse pointer moves over
the button.
<SCRIPT>
function testMouse(oObject) {
if(!oObject.contains(event.fromElement)) {
alert("mouse arrived");
}
}
</SCRIPT>
:
<BUTTON ID=oButton onmouseover="testMouse(this)">Mouse Over
This.</BUTTON>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TITLE Attribute | title P... top Attribute | top Pro
Web Workshop | DHTML, HTML & CSS
toElement Property
Retrieves a reference to the object to which the user is moving the mouse pointer.
Syntax
HTML N/A
Scripting [ oObject = ] event.toElement
Possible Values
oObject Object that specifies the object being moved to by the mouse.
Example
This example uses the toElement property to display the tagName of the object to
which the user moves the mouse pointer.
<SCRIPT>
function fnGetTo(){
spanTo.innerHTML=window.event.toElement.tagName;
}
</SCRIPT>
:
<SPAN onmouseout="fnGetTo()">
<P>Mouse Over This</P>
<P>toElement: <SPAN ID="spanTo"></SPAN></P>
</SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmouseout Event onmouseup Event DHTML
Web Workshop | DHTML, HTML & CSS
onmouseover Event
Fires when the user moves the mouse pointer into the object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Move the mouse pointer into an object.
Default action Initiates any action associated with this event.
The event occurs when the user moves the mouse pointer into the object, and it does
not repeat unless the user moves the mouse pointer out of the object and then back
into it.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onmouseover event to apply a new style to an object.
<DIV>
<P onmouseover="this.style.color='red'"
onmouseout="this.style.color='black'">
Move the mouse pointer over this text, then move it elsewhere in
the
document. Move the mouse pointer over this text, then move it
elsewhere in the document.
</DIV>
This example shows how to change the value of a text area in response to mouse
events.
<DIV>
<P>Move the mouse pointer into the text area to fire the
onmouseover event. Move it out to clear the text.
<TEXTAREA NAME=txtMouseTrack
onmouseover="this.value='onmouseover fired'"
onmouseout="this.value=''">
</TEXTAREA>
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmousemove Event onmouseover Event DH
Web Workshop | DHTML, HTML & CSS
onmouseout Event
Fires when the user moves the mouse pointer outside the boundaries of the object.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Move the mouse pointer out of an object.
Default action Initiates any action associated with this event.
When the user moves the mouse over an object, one onmouseover event occurs,
followed by one or more onmousemove events as the user moves the mouse pointer
within the object. One onmouseout event occurs when the user moves the mouse
pointer out of the object.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
The following examples use the mouseout event to create interactive effects.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY,
TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
event Object Members
Represents the state of an event, such as the element in
which the event occurred, the state of the keyboard keys,
the location of the mouse, and the state of the mouse
buttons.
Properties
Collections
bookmarks , boundElements
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
external Object Members
Allows access to an additional object model provided by
host applications of the Microsoft® Internet Explorer
browser components.
Properties
menuArguments
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
FIELDSET Element | FIELDSET Object
Members
Draws a box around the text and other elements that the
field set contains.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modeheightpadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
FONT Element | FONT Object Members
Specifies a new font, size, and color to be used for
rendering the enclosed text.
Properties
Methods
Events
onbeforecut , onbeforepaste , onblur , onclick ,
oncontextmenu , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onfocus , onhelp , onkeydown ,
onkeypress , onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onselectstart
Collections
Behaviors
Styles
widthdirectionoverflowpadding-
rightdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
MULTIPLE Attribute | mult... NAME Attribute | n
Web Workshop | DHTML, HTML & CSS
NAME Attribute | name Property
Sets or retrieves the window or frame name.
Syntax
Possible Values
The name property identifies which frame displays the content of a linked document.
Example
window.name="MyWindow";
parent.frames[0].name="Left";
This example shows how the NAME attribute for a window can be persisted in HTML,
but only when defined in a frame within a frameset.
<FRAMESET>
<FRAME NAME="Left" SRC="blank.htm">
<FRAME NAME="Right" SRC="contents.htm">
</FRAMESET>
This example uses the window's open method to assign the name property.
window.open("file.htm","Frame1");
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HTTP-EQUIV Attribute | ht... ime-mode Attribut
Web Workshop | DHTML, HTML & CSS
ID Attribute | id Property
Retrieves the string identifying the object.
Syntax
Possible Values
sID Any alphanumeric string that begins with a letter. The underscore (_) can also be used.
In Microsoft® Internet Explorer 5 and later, the property is read/write. The property
has no default value.
Remarks
The id should be unique throughout the scope of the current document. If a document
contains more than one object with the same identifier, the objects are exposed as a
collection that can be referenced only in ordinal position.
Example
This example sets the ID attribute and then passes it to a function to manipulate the
object that the attribute is attached to.
<SCRIPT>
function checkCols(oObject)
{
var iColumns = oObject.cols;
alert (iColumns);
}
</SCRIPT>
</HEAD>
<BODY>
<TABLE ID=oTable BORDER COLS=3 onclick="checkCols(this)">
<TR><TD>Column 1</TD><TD>Column 2</TD><TD>Column 3</TD></TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, styleSheet, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL,
VAR, WBR, XML, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
controlRange Collection embeds Collection DH
Web Workshop | DHTML, HTML & CSS
elements Collection
Retrieves a collection, in source order, of all objects in a given form.
Syntax
[collElements = ]form.elements
[oObject= ]form.elements(vIndex [,iSubIndex])
Possible Values
Members
Remarks
This collection can contain any combination of the INPUT, SELECT, and TEXTAREA
objects.
Applies To
FORM
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onstop Event onunload Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onsubmit Event
Fires when a form is about to be submitted.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Submit a form using the INPUT TYPE=submit, INPUT TYPE=image, or BUTTON TYPE=submit object.
Default action Causes a form to be sent to whatever location is stipulated in the ACTION attribute of the form object.
You can override this event by returning false in the event handler. Use this capability
to validate data on the client side to prevent invalid data from being submitted to the
server. If the event handler is called by the onsubmit attribute of the form object, the
code must explicitly request the return value using the return function, and the event
handler must provide an explicit return value for each possible code path in the event
handler function.
The submit method does not invoke the onsubmit event handler.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to use onsubmit on a form to request the return value using
the return function.
<BODY>
<FORM NAME="oDoSubmit"
onsubmit="return(myOnSubmitEventHandler());">
</FORM>
</BODY>
Applies To
FORM
See Also
ACTION, METHOD
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
FORM Element | FORM Object Members
Specifies that the contained controls take part in a form.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onreset ,
onresize , onselectstart , onsubmit
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
ACCESSKEY Attribute | acc... active Pseudo-cla
Web Workshop | DHTML, HTML & CSS
ACTION Attribute | action Property
Sets or retrieves the URL to which the FORM content is to be sent for processing.
Syntax
Possible Values
sURL String that specifies the URL to be used. If a relative path is specified, the base URL of the document is assumed.
The way the data is submitted depends on the value of the method and encoding
properties.
Example
This example uses the ACTION attribute to post a form to a specified URL.
<HTML>
<FORM ACTION="http://example.microsoft.com/sample.asp"
METHOD="POST">
Enter your name: <INPUT NAME="FName"><BR>
Favorite Ice Cream Flavor:
<SELECT NAME="Flavor">
<OPTION VALUE="Chocolate">Chocolate
<OPTION VALUE="Strawberry">Strawberry
<OPTION VALUE="Vanilla" SELECTED>Vanilla
</SELECT>
<P><INPUT TYPE=SUBMIT>
</FORM>
</HTML>
This example uses the ACTION attribute to specify a URL for the mailto protocol .
I
Applies To
FORM
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
menuArguments Property METHODS Attribute
Web Workshop | DHTML, HTML & CSS
METHOD Attribute | method Property
Sets or retrieves how to send the form data to the server.
Syntax
Possible Values
FORM
See Also
action
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
FRAME Element | FRAME Object Members
Specifies an individual frame within a FRAMESET element.
Properties
Methods
Events
Collections
Styles
widthpadding-rightdisplaypaddingbehaviorpadding-
leftlayout-gridlayout-grid-modepadding-toptext-
autospacepadding-bottom
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
FRAMESET Element | FRAMESET Object
Members
Specifies a frameset, which is used to organize multiple
frames and nested framesets.
Properties
Methods
Events
Behaviors
Styles
widthbehaviorlayout-gridlayout-grid-mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
HEAD Element | HEAD Object Members
Provides an unordered collection of information about the
document.
Properties
Methods
Events
onreadystatechange
Collections
Styles
widthbehaviorlayout-gridlayout-grid-modetext-
autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
autoscan Method blur Method DHTML Method
Web Workshop | DHTML, HTML & CSS
back Method
Loads a URL from the History list.
Syntax
history.back([iDistance])
Parameters
iDistance Optional. Integer that specifies the number of URLs to go back. If no value is provided, the previous URL is loaded.
Return Value
No return value.
Remarks
This method performs the same action as when a user clicks the Back button in the
browser. The back method works the same as history.go(-1). An error does not
occur if the user tries to go beyond the beginning of the history. Instead, the user
remains at the current page.
Applies To
history
See Also
forward, go
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
focus Method getAdjacentText Method DHTML
Web Workshop | DHTML, HTML & CSS
forward Method
Loads the next URL in the History list.
Syntax
history.forward()
Return Value
No return value.
Remarks
This method performs the same action as when a user clicks the Forward button in the
browser. The forward method works the same as history.go(1). An error does not
occur if the user tries to go beyond the end of the history. Instead, the user remains at
the current page.
Applies To
history
See Also
back, go
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getExpression Method hasChildNodes Method
Web Workshop | DHTML, HTML & CSS
go Method
Loads a URL from the History list.
Syntax
history.go(vLocation)
Parameters
vLocation Required. Variant that specifies an integer or a string. The integer indicates the relative position of the URL in the History list, and the
string indicates all or part of a URL in the browser history.
Return Value
No return value.
Remarks
An error does not occur if the user tries to go beyond the beginning or end of the
history. Instead, the user remains at the current page.
Applies To
history
See Also
back, forward
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
history Object Members
Contains information about the URLs visited by the client.
Properties
length
Methods
back , forward , go
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
Hn Element | Hn Object Members
Renders text in heading style.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
HR Element | HR Object Members
Draws a horizontal rule.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-widthcursortext-
indentvisibilityborder-left-colormargin-lefttext-
autospaceleftlayout-grid-lineline-breaktext-alignborder-
bottom-colortext-justifypositionclearborder-right-
colorborder-righttoppadding-leftlayout-grid-
modeheightpadding-bottomrightborder-
bottomdisplayfloatmargin-rightbehaviorword-
breakborder-top-stylelayout-grid-charbottomclipborder-
styleborder-top-widthborder-topmargin-bottomborder-
left-styleborder-widthmarginlayout-gridborder-bottom-
stylelayout-grid-typelayout-grid-char-spacingborder-
leftborder-left-widthpadding-topborder-colorborder-
right-style
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
parent Property parentNode Property DHTML
Web Workshop | DHTML, HTML & CSS
parentElement Property
Retrieves the parent object in the object hierarchy.
Syntax
HTML N/A
Scripting [ oElement = ] object.parentElement
Possible Values
Remarks
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
HTML Element | HTML Object Members
Identifies the document as containing HTML elements.
Properties
Methods
Events
onreadystatechange
Collections
Styles
colorbackgroundfont-sizeletter-spacingbackground-
positionfontfont-familycursorbackground-colorfont-
weightbehaviorword-spacingtext-transformbackground-
repeatline-heightbackground-imagevisibilityfont-
stylebackground-attachmenttext-autospacefont-
varianttext-decoration
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
I Element | I Object Members
Specifies that the text should be rendered in italic, where
available.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
forms Collection images Collection DHTML Co
Web Workshop | DHTML, HTML & CSS
frames Collection
Retrieves a collection of all window objects defined by the given document or defined by
the document associated with the given window.
Syntax
[ collFrames = ] object.frames
[ oObject = ] object.frames(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
If the HTML source document contains a BODY tag, the collection contains one window
for each IFRAME object in the document. If the source document contains FRAMESET
tags, the collection contains one window for each FRAME tag in the document. In both
cases, the order is determined by the HTML source.
This collection contains only window objects and does not provide access to the
corresponding FRAME and IFRAME objects. To access these objects, use the all
collection for the document containing the objects.
Although you can use names with the item method on this collection, the method
never returns a collection. Instead, it always returns the first window having the given
name. To ensure that all windows are accessible, make sure that no two windows in a
document have the same name.
Example
This example in JScript® (compatible with ECMA 262 language specification) shows
how to display the URLs of the HTML documents contained in windows created by the
IFRAME objects in the document.
This example in JScript shows how to display the name of each window defined by
FRAME tags in the parent window of the current document.
var frm = window.parent.frames;
for (i=0; i < frm.length; i++)
alert(frm(i).name);
Applies To
document, window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
IFRAME Element | IFRAME Object
Members
Creates inline floating frames.
Properties
Methods
Events
onblur , onfocus
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthborder-bottompadding-
rightfloatdisplaypaddingmargin-rightborder-right-
widthcursorbehaviorborder-top-
stylebottomvisibilityclipborder-left-colormargin-lefttext-
autospaceleftoverflow-xoverflow-yborder-styleborder-
topborder-top-widthborder-bottom-colormargin-
bottompositionclearborder-left-styleborder-right-
colorborder-rightmarginborder-widthtoppadding-
leftborder-bottom-stylelayout-gridborder-left-
widthborder-leftheightlayout-grid-modepadding-
toppadding-bottomborder-colorborder-right-
styleborderright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
anchors Collection DHTML Collections
Web Workshop | DHTML, HTML & CSS
all Collection
Returns a reference to the collection of elements contained by the object.
Syntax
[ collAll = ] object.all
[ oObject = ] object.all(vIndex [, iSubIndex])
Possible Values
Members
Remarks
The all collection includes one element object for each valid HTML tag. If
a valid tag has a matching end tag, both tags are represented by the
same element object.
Example
This example in JScript shows how to use the item method on the all
collection to retrieve all element objects for which the name property or
ID attribute is set to sample. Depending on the number of times the
name or ID is defined in the document, the item method returns null, a
single element object, or a collection of element objects. The value of the
length property of the collection determines whether item returns a
collection or a single object.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BUTTON,
CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED,
FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INS, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
IMG Element | IMG Object Members
Embeds an image or a video clip in the document.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorvertical-alignfiltervisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviorbackground-repeatborder-top-
stylebackground-imagebottomclipborder-styleborder-
top-widthborder-topmargin-bottomfontborder-left-
styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
type Property TYPE Attribute | type Pro... DHT
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Retrieves the type of intrinsic control represented by the object.
Syntax
Possible Values
The property is read-only with a default value of text for the INPUT element, select-
one for the SELECT element, and textarea for the TEXTAREA element.
Applies To
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio,
INPUT type=reset, INPUT type=submit, INPUT type=text, SELECT, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
INS Element | INS Object Members
Specifies text that has been inserted into the document.
Properties
Methods
Events
Collections
Styles
widthdirectionoverflowpadding-
rightdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
table-layout Attribute | ... tagUrn Property DH
Web Workshop | DHTML, HTML & CSS
tagName Property
Retrieves the tag name of the object.
Syntax
HTML N/A
Scripting [ sName = ] object.tagName
Possible Values
Example
This example retrieves the tag name of an object that has the identifier specified in the
prompt window.
<SCRIPT>
var idValue = window.prompt("Get the tag with this ID:;
if (idValue != null) {
alert(document.all[idValue].tagName)
}
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
ISINDEX Element | ISINDEX Object
Members
Causes the browser to display a dialog window that prompts
the user for a single line of input.
Properties
Methods
Events
Collections
behaviorUrns
Behaviors
Styles
border-top-colormargin-topfont-sizeborder-bottom-
widthborder-bottompage-break-beforeletter-
spacingfloatfont-familymargin-rightborder-right-
widthbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomtext-
indentvisibilityfont-styleclipborder-left-colormargin-
lefttext-autospaceleftfont-varianttext-
decorationbackgroundborder-stylecolorborder-
topborder-top-widthz-indexborder-bottom-colormargin-
bottompage-break-afterpositionbackground-
positionclearfontborder-left-styleborder-right-
colorborder-rightmarginborder-widthfont-
weightbackground-colorword-spacingline-
heighttopborder-bottom-styleheightborder-left-
widthborder-leftborder-colorborderborder-right-
styleright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
KBD Element | KBD Object Members
Renders text in a fixed-width font.
Properties
Methods
Events
onbeforecut , onbeforepaste , onblur , onclick ,
oncontextmenu , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onfocus , onhelp , onkeydown ,
onkeypress , onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
FOR Attribute | htmlFor P... htmlText Property
Web Workshop | DHTML, HTML & CSS
FOR Attribute | htmlFor Property
Sets or retrieves the object to which the given label object is assigned.
Syntax
Possible Values
sID String that specifies the identifier of the element to which the label element is assigned.
LABEL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
@media Rule ACTION Attribute | action... DH
Web Workshop | DHTML, HTML & CSS
ACCESSKEY Attribute | accessKey Property
Sets or retrieves the accelerator key for the object.
Syntax
Possible Values
By default, the accessKey property sets focus to the object. The object receives focus
when the user simultaneously presses the ALT key and the accelerator key assigned to
an object. Some controls perform an action after receiving focus. For example, using
accessKey on a button causes the onclick event to fire. By comparison, applying the
accessKey on a radio button causes the onclick event to fire and toggles the
checked property, visibly selecting or deselecting the control.
Example
This example uses the LABEL object and the accessKey property to set focus on a
text box. The rich text support in the LABEL object makes it possible to underline the
designated accessKey.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FONT, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onchange Event oncontextmenu Event DHTM
Web Workshop | DHTML, HTML & CSS
onclick Event
Fires when the user clicks the left mouse button on the object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To
invoke Click the object.
Invoke the click method.
Press the ENTER key in a form.
Press the access key for a control.
Select an item in a combo box or list box by clicking the left mouse button or by pressing the arrow keys and then pressing the
ENTER key.
Default Initiates any action associated with the object. For example, if the user clicks an A object, the browser loads the document specified by
action the href property. To cancel the default behavior, set the returnValue property of the event object to FALSE.
If the user clicks the left mouse button, the onclick event for an object occurs only if
the mouse pointer is over the object and an onmousedown and an onmouseup event
occur in that order. For example, if the user clicks the mouse on the object but moves
the mouse pointer away from the object before releasing, no onclick event occurs.
The onclick event changes the value of a control in a group. This change initiates the
event for the group, not for the individual control. For example, if the user clicks a
radio button or check box in a group, the onclick event occurs after the
onbeforeupdate and onafterupdate events for the control group.
If the user clicks an object that can receive the input focus but does not already have
the focus, the onfocus event occurs for that object before the onclick event. If the
user double-clicks the left mouse button in a control, an ondblclick event occurs
immediately after the onclick event.
Although the onclick event is available on a large number of HTML elements, if a Web
page is to be accessible to keyboard users, you should restrict its use to the A, INPUT,
AREA, and BUTTON elements. These elements automatically allow keyboard access
through the TAB key, making Web pages that use the elements accessible to keyboard
users. For more information, please see the section on writing accessible Dynamic
HTML.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
The following examples show how to use the onclick event handlers for the document.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
click
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
LABEL Element | LABEL Object Members
Specifies a label for another element on the page.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onfocus , onhelp , onkeydown ,
onkeypress , onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
LEGEND Element | LEGEND Object
Members
Inserts a caption into the box drawn by the FIELDSET
object.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviorword-breaktext-
transformbackground-repeatbackground-
imagebottomvisibilityfont-stylecliptext-
autospaceleftoverflow-xfont-varianttext-
decorationoverflow-yline-
breakbackgroundcolordirectionz-indextext-
justifypositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
TRUESPEED Attribute | tru... type Property D
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Sets or retrieves the style of the list.
Syntax
Possible Values
The property is read/write with a default value of 1 for an ordered list and a default
value of disc for an unordered list.
This example uses the TYPE attribute to set the line item markers to lowercase Roman
numerals.
<OL TYPE="i">
<LI>First Item
<LI>Second Item
<LI>Third Item
</OL>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
LI, OL, UL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
LI Element | LI Object Members
Denotes one item in a list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-ylist-styleline-breaklist-
style-typebackgroundtext-alignlist-style-
imagedirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modepadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charlist-style-positionbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
LINK Element | LINK Object Members
Enables the current document to establish links to external
documents.
Properties
Methods
Events
onload , onreadystatechange
Collections
Behaviors
clientCaps , download , homePage
Styles
widthbehaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
LISTING Element | LISTING Object
Members
Renders text in a fixed-width font.
Properties
Methods
Collections
Behaviors
Styles
border-top-colormargin-topborder-bottom-widthpage-
break-beforepadding-rightpaddingborder-right-
widthcursortext-indentvisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftoverflow-xlayout-grid-
linefont-variantoverflow-yline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modepadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
HREF Attribute | href Pro... HSPACE Attribute |
Web Workshop | DHTML, HTML & CSS
href Property
Sets or retrieves the entire URL as a string.
Syntax
HTML N/A
Scripting location.href [ = sURL ]
Possible Values
This example shows a select list of URLs. The user is taken to the URL selected from
the options, if the selection is different from the list's default value.
<SELECT
onchange="window.location.href=this.options[this.selectedIndex].
value">
<OPTION VALUE="http://www.microsoft.com/ie">Internet
Explorer</OPTION>
<OPTION VALUE="http://www.microsoft.com">Microsoft Home</OPTION>
<OPTION VALUE="http://msdn.microsoft.com">Developer
Network</OPTION>
</SELECT>
Applies To
HTML N/A
Scripting location
See Also
navigate
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
location Object Members
Contains information about the current URL.
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
URN Attribute | urn Prope... userAgent Property
Web Workshop | DHTML, HTML & CSS
USEMAP Attribute | useMap Property
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-
side image map.
Syntax
Possible Values
The useMap property identifies the image as a client-side image map by associating a
MAP object with the image. This MAP object contains AREA objects that define regions
within the image. The user can click these regions to navigate to a designated URL.
You can dynamically assign the maps to the image through the useMap property.
Example
This example specifies map1 as the image map underlying image.gif. The map can be
changed to another map, map2, by clicking the button.
<MAP NAME="map1">
<AREA NAME="area1" COORDS="0,0,40,40" HREF="doc1.htm"
TARGET="frame1">
<AREA NAME="area2" COORDS="40,0,80,40" HREF="doc2.htm"
TARGET="frame1">
<AREA NAME="area3" COORDS="10,40,40,80" HREF="doc3.htm"
TARGET="frame1">
<AREA NAME="area4" COORDS="40,40,80,80" HREF="doc4.htm"
TARGET="frame1">
</MAP>
:
<IMG USEMAP="#map1" ID=idImg SRC="image.gif">
:
<BUTTON onclick="idImg.useMap='#map2'">
Change Maps</BUTTON>
Applies To
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
MAP Element | MAP Object Members
Contains coordinate data for client-side image maps.
Properties
Methods
Events
Collections
Behaviors
Styles
widthdirectionunicode-bidibehaviorlayout-gridlayout-
grid-modetext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
SCROLLING Attribute | scr... scrollTop Property
Web Workshop | DHTML, HTML & CSS
scrollLeft Property
Sets or retrieves the distance between the left edge of the object and the leftmost portion
of the content currently visible in the window.
Syntax
HTML N/A
Scripting object.scrollLeft [ = iDistance ]
Possible Values
The scrollLeft property's value is equal to the horizontal distance scrolled by the
content of the object. Although the value can be set to any positive or negative value,
if the assigned value is less than 0, the property is set to 0. If the assigned value is
greater than the maximum possible, the property is set to the maximum possible.
You can set this property inline, but the results might be inconsistent while the page
loads.
This property is always 0 for objects that do not have scroll bars. For these objects,
setting the property has no effect.
When a MARQUEE object scrolls vertically, its scrollLeft property is set to 0, overriding
any script setting.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the scrollLeft property to determine the amount scrolled by the
object.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollLeft Property scrollWidth Property DHTM
Web Workshop | DHTML, HTML & CSS
scrollTop Property
Sets or retrieves the distance between the top of the object and the topmost portion of the
content currently visible in the window.
Syntax
HTML N/A
Scripting object.scrollTop [ = iDistance ]
Possible Values
The property's value is equal to the vertical distance scrolled by the content of the
object. Although the value can be set to any positive or negative value, if the assigned
value is less than 0, the property is set to o. If the assigned value is greater than the
maximum possible, the property is set to the maximum possible.
You can set this property inline, but the results might be inconsistent while the page is
loading.
This property is always 0 for objects that do not have scroll bars. For these objects,
setting the property has no effect.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the scrollTop property to determine the amount scrolled by the
object.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
MARQUEE Element | MARQUEE Object
Members
Creates a scrolling text marquee.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursorfiltertext-indentvisibilityfont-
styleborder-left-colormargin-lefttext-
autospaceleftlayout-grid-linefont-variantline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modeheightpadding-bottomrightfont-
sizeborder-bottomletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
MENU Element | MENU Object Members
Creates an unordered list of items.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
META Element | META Object Members
Conveys hidden information about the document to the
server and the client.
Properties
Methods
Styles
widthlayout-gridlayout-grid-mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
navigator Object Members
Contains information about the Web browser.
Properties
Methods
javaEnabled , taintEnabled
Collections
plugins
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
NEXTID Object Members
Creates unique identifiers that text editing software can
read.
Properties
Methods
Events
Behaviors
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
NOBR Element | NOBR Object Members
Renders text without line breaks.
Properties
Methods
Events
behaviorUrns
Behaviors
Styles
widthdirectionpadding-rightdisplaypaddingunicode-
bidibehaviorpadding-leftlayout-gridlayout-grid-
modepadding-toptext-autospacepadding-bottom
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
NOFRAMES Element | NOFRAMES Object
Members
Contains HTML for browsers that do not support FRAMESET
elements.
Properties
Methods
Events
onreadystatechange
Collections
behaviorUrns
Behaviors
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
NOSCRIPT Element | NOSCRIPT Object
Members
Specifies HTML to be displayed in browsers that do not
support scripting.
Properties
Methods
Events
onreadystatechange
Collections
behaviorUrns
Behaviors
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
READONLY Attribute | read... reason Property
Web Workshop | DHTML, HTML & CSS
readyState Property
Retrieves the current state of the object being downloaded.
Syntax
HTML N/A
Scripting [ sState = ] object.readyState
Possible Values
Remarks
All objects, except OBJECT, that expose the readyState property return the value as a
string. The OBJECT tag returns an integer in the range of 0 (uninitialized) through 4
(complete).
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XML,
XMP
See Also
onreadystatechange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOWRAP Attribute | noWrap... offscreenBufferi
Web Workshop | DHTML, HTML & CSS
object Property
Retrieves the contained object.
Syntax
HTML N/A
Scripting [ oObject = ] object.object
Possible Values
Remarks
If the control's object model uses a conflicting namespace, precede the control's
property with object to resolve the conflict.
Applies To
HTML N/A
Scripting OBJECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
OBJECT Element | OBJECT Object
Members
Inserts an object into the HTML page.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthborder-bottompadding-
rightfloatdisplaypaddingmargin-rightborder-right-
widthcursorbehaviorborder-top-
stylebottomvisibilityclipborder-left-colormargin-lefttext-
autospaceleftborder-styleborder-topborder-top-
widthdirectionborder-bottom-colormargin-
bottompositionclearborder-left-styleborder-right-
colorborder-rightmarginborder-widthunicode-
biditoppadding-leftborder-bottom-stylelayout-
gridborder-left-widthborder-leftheightlayout-grid-
modepadding-toppadding-bottomborder-colorborder-
right-styleborderright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
OL Element | OL Object Members
Draws lines of text as a numbered list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-ylist-styleline-breaklist-
style-typebackgroundtext-alignlist-style-
imagedirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modepadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charlist-style-positionbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
mimeTypes Collection plugins Collection DHTM
Web Workshop | DHTML, HTML & CSS
options Collection
Retrieves a collection of the OPTION objects in a SELECT object.
Syntax
[ collOptions = ] select.options
[ oObject = ] select.options(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
To delete an OPTION object from a SELECT object, assign the OPTION object a null
value. This compresses the array.
Example
This example shows how to display the text and values of all OPTION objects in the
first SELECT object in the document.
Applies To
SELECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
OPTION Element | OPTION Object
Members
Denotes one choice in a SELECT element.
Properties
Methods
Events
onlosecapture , onpropertychange , onreadystatechange
, onselectstart
Collections
Behaviors
Styles
colorwidthdirectionclearunicode-bidibackground-
colorbehaviorlayout-gridlayout-grid-modetext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
P Element | P Object Members
Denotes a paragraph.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
PARAM Element | PARAM Object Members
Sets the property value for a given object.
Properties
Methods
removeExpression , setExpression
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
PLAINTEXT Element | PLAINTEXT Object
Members
Renders text in a fixed-width font without processing tags.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentfont-styleborder-left-
colormargin-lefttext-autospaceoverflow-xlayout-grid-
linefont-variantoverflow-yline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifybackground-positionclearborder-right-colorborder-
rightword-spacingpadding-leftlayout-grid-modepadding-
bottomfont-sizeborder-bottomoverflowletter-
spacingdisplayfont-familymargin-rightbehaviorword-
breaktext-transformbackground-repeatborder-top-
stylelayout-grid-charbackground-imagetext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
PRE Element | PRE Object Members
Renders text in a fixed-width font.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-yline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modepadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
Q Element | Q Object Members
Sets apart a quotation in text.
Properties
Methods
Events
Behaviors
Styles
widthdirectionoverflowpadding-
rightdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
RT Element | RT Object Members
Designates the ruby text for the RUBY element.
Properties
Methods
Events
Collections
Behaviors
widthdirectionoverflowpadding-
rightfloatdisplaypaddingunicode-bidibehaviorpadding-
leftlayout-gridlayout-grid-modetext-autospacepadding-
topoverflow-xpadding-bottomoverflow-y
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
RUBY Element | RUBY Object Members
Designates an annotation or pronunciation guide to be
placed above or inline with a string of text.
Properties
Methods
Events
Collections
Behaviors
clientCaps , download , homePage
Styles
widthoverflowpadding-rightfloatdisplaypaddingruby-
overhangbehaviorcliptext-autospaceoverflow-xoverflow-
ydirectionpositionruby-positionunicode-bidipadding-
leftlayout-gridlayout-grid-modepadding-toppadding-
bottomruby-align
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
rule Object Members
Represents a style within a cascading style sheet (CSS) that
consists of a selector and one or more declarations.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
rows Collection scripts Collection DHTML Colle
Web Workshop | DHTML, HTML & CSS
rules Collection
Retrieves a collection of rules defined in the style sheet.
Syntax
[ collRules = ] stylesheet.rules
[ oObject = ] stylesheet.rules(iIndex)
Possible Values
Members
Remarks
This collection is always accessible, even if the style sheet is not enabled. Rules are
added to the rules collection with the addRule method on the individual style sheet. A
rule that is added to a disabled style sheet does not apply to the document unless the
style sheet is enabled. Rules are deleted with the removeRule method.
The rules in this collection are in the source order of the document. As rules are added
or deleted through the cascading style sheets (CSS) Object Model, a rule's absolute
position in the rules collection might change, but its position relative to other rules
remains the same. When you add rules without specifying an index, the rule gets
added to the document last. If you specify an index, however, the rule is inserted
before the rule currently in that ordinal position in the collection. If the specified index
is greater than the number of rules in the collection, the rule is added to the end.
Example
This example shows how to use the rules collection to identify the color specified in
style sheet rules.
Applies To
styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
runtimeStyle Object Members
Represents the cascaded format and style of the object that
overrides the format and style specified in global style
sheets, inline styles, and HTML attributes.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
S Element | S Object Members
Renders text in strike-through type.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SAMP Element | SAMP Object Members
Specifies a code sample.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
screen Object Members
Contains information about the client's screen and
rendering capabilities.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SCRIPT Element | SCRIPT Object
Members
Specifies a script for the page that is interpreted by a script
engine.
Properties
Methods
Events
Collections
all , attributes , behaviorUrns , childNodes , children
Behaviors
Styles
widthbehaviorlayout-gridlayout-grid-modetext-
autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SELECT Element | SELECT Object
Members
Denotes a list box or drop-down list.
Properties
Methods
Events
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-familybehaviortext-
transformbackground-repeatbackground-
imagebottomvisibilityfont-stylecliptext-
autospaceleftoverflow-xfont-varianttext-
decorationoverflow-
ybackgroundcolordirectionpositionbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heighttoppadding-leftlayout-
gridlayout-grid-modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
METHODS Attribute | Metho... NAME Attribute
Web Workshop | DHTML, HTML & CSS
MULTIPLE Attribute | multiple Property
Sets or retrieves whether multiple items can be selected from a list.
Syntax
Possible Values
This example uses the MULTIPLE attribute and the multiple property to switch
between allowing the user to select one item or multiple items from a list.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
SELECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
sectionRowIndex Property selectedIndex Prope
Web Workshop | DHTML, HTML & CSS
SELECTED Attribute | selected Property
Sets or retrieves whether the option in the list box is the default item.
Syntax
Possible Values
Remarks
The property determines whether a value is submitted with the form. If the value of
the control matches the default value, the control's value is not submitted. The value is
submitted only when the control's value does not match the default value.
To select an item in HTML, it is not necessary to set the value of the SELECTED
attribute to true. The mere presence of the SELECTED attribute set its value to true.
Applies To
OPTION
See Also
defaultSelected
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollTo Method select Method DHTML Method
Web Workshop | DHTML, HTML & CSS
select Method
Highlights the input area of a form element.
Syntax
object.select()
Return Value
No return value.
Remarks
Use this method with the focus method to highlight a field and position the cursor for a
user response.
Applies To
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, TEXTAREA
See Also
onselect
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createElement Method createStyleSheet Metho
Web Workshop | DHTML, HTML & CSS
createRange Method
Creates a TextRange object from the current selection.
Syntax
selection.createRange()
Return Value
Applies To
selection
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
selection Object Members
Represents the active selection, which is a highlighted block
of text, and/or other elements in the document on which a
user or a script can carry out some action.
Properties
type
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SMALL Element | SMALL Object Members
Specifies that the enclosed text should be displayed in a
smaller font.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SPAN Element | SPAN Object Members
Specifies an inline text container.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorvertical-alignfiltervisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xfont-
variantoverflow-ybackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviortext-transformbackground-
repeatborder-top-stylebackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottomfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
STRIKE Element | STRIKE Object
Members
Renders text in strike-through type.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
STRONG Element | STRONG Object
Members
Renders text in bold.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
scripts Collection tbodies Collection DHTML C
Web Workshop | DHTML, HTML & CSS
styleSheets Collection
Retrieves a collection of styleSheet objects representing the style sheets that correspond
to each instance of a LINK or STYLE object in the document.
Syntax
[ collStyleSheets = ] document.styleSheets
[ oObject = ] document.styleSheets(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
Style sheets that are imported using the @import rule and are contained within the
STYLE object are available through the imports collection.
Example
This example shows how to display the titles of the style sheets in the document.
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posBottom Property position Attribute | posi...
Web Workshop | DHTML, HTML & CSS
posHeight Property
Sets or retrieves the height of the object in the units specified by the cascading style
sheets (CSS) height attribute.
Syntax
HTML N/A
Scripting object.style.posHeight [ = iHeight ]
Possible Values
iHeight Integer that specifies any valid floating-point number that uses the same length units as the height attribute.
Unlike the height property, the posHeight property value is a floating-point number,
not a string. Setting the posHeight property changes the value of the height, but
leaves the units designator for the property unchanged.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posHeight property to increase the height of the first IMG
element by 10 units.
<SCRIPT LANGUAGE="JScript">
document.all.tags("IMG").item(0).style.posHeight += 10;
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelHeight
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posTop Property previousSibling Property DHT
Web Workshop | DHTML, HTML & CSS
posWidth Property
Sets or retrieves the width of the object in the units specified by the cascading style sheets
(CSS) width attribute.
Syntax
HTML N/A
Scripting object.style.posWidth [ = iWidth ]
Possible Values
iWidth Integer that specifies any valid floating-point number that uses the same length units as the width attribute.
Setting the posWidth property changes the value of the width, but leaves the units
designator for the property unchanged.
Unlike the width property, the posWidth property value is a floating-point number, not
a string.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posWidth property to increase the width of the first IMG object
by 10 units.
<SCRIPT LANGUAGE="JScript">
document.all.tags("IMG").item(0).style.posWidth += 10;
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posRight Property posWidth Property DHTML
Web Workshop | DHTML, HTML & CSS
posTop Property
Sets or retrieves the top position of the object in the units specified by the cascading style
sheets (CSS) top attribute.
Syntax
HTML N/A
Scripting object.style.posTop [ = iTop ]
Possible Values
iTop Integer that specifies any valid floating-point number that uses the same length units as the top attribute.
This property reflects the value of the CSS top attribute for positioned items. This
property always returns 0 for nonpositioned items, because "top" has meaning only
when the object is positioned. Use the offsetTop property to calculate actual positions
within the document area.
Setting this property changes the value of the top position, but leaves the units
designator for the property unchanged.
Unlike the top property, the posTop property value is a floating-point number, not a
string.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posTop property to move the first IMG object up by 10 units.
<SCRIPT LANGUAGE="JScript">
document.all.tags("IMG").item(0).style.posTop -= 10;
</SCRIPT>
This example uses a timer to move the posTop property in increments of 10.
<SCRIPT LANGUAGE="JScript">
function moveThis()
{
:
if (sphere.style.posLeft<900) {
sphere.style.posTop += 2;
sphere.style.posLeft += 2;
window.setTimeout("moveThis();", 1);
}
}
:
</SCRIPT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
position Attribute | posi... posRight Property
Web Workshop | DHTML, HTML & CSS
posLeft Property
Sets or retrieves the left position of the object in the units specified by the cascading style
sheets (CSS) left attribute.
Syntax
HTML N/A
Scripting object.style.posLeft [ = iLeft ]
Possible Values
iLeft Integer that specifies any valid floating-point number that uses the same length units as the left attribute.
This property reflects the value of the CSS left attribute for positioned items. This
property always returns 0 for nonpositioned items, because "left" has meaning only
when the object is positioned. Use the offsetLeft property to calculate actual positions
within the document area.
Setting this property changes the value of the left position, but leaves the units
designator for the property unchanged.
Unlike the left property, the posLeft property value is a floating-point number, not a
string.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posLeft property to move the first IMG object left by 10 units.
<SCRIPT LANGUAGE="JScript">
document.all.tags("IMG").item(0).style.posLeft -= 10;
</SCRIPT>
This example uses a timer to move the posLeft property in increments of 10.
<SCRIPT LANGUAGE="JScript">
function moveThis()
{
:
if (sphere.style.posLeft<900) {
sphere.style.posTop += 2;
sphere.style.posLeft += 2;
window.setTimeout("moveThis();", 1);
}
}
:
</SCRIPT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelLeft
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelBottom Property pixelLeft Property DHTM
Web Workshop | DHTML, HTML & CSS
pixelHeight Property
Sets or retrieves the height of the object.
Syntax
HTML N/A
Scripting object.style.pixelHeight [ = iHeight ]
Possible Values
Setting this property changes the value of the height without changing the units
designator. Unlike the height property, this property's value is an integer, not a string,
and is always interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
<SCRIPT>
function scaleThis()
{
if (sphere.style.pixelWidth <900) {
sphere.style.pixelWidth += 4;
sphere.style.pixelHeight +=4;
window.setTimeout("scaleThis();", 1);
}
}
:
</SCRIPT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posHeight
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelTop Property platform Property DHTML P
Web Workshop | DHTML, HTML & CSS
pixelWidth Property
Sets or retrieves the width of the object.
Syntax
HTML N/A
Scripting object.style.pixelWidth [ = iWidth ]
Possible Values
Setting this property changes the value of the width without changing the units
designator. Unlike the width property, the pixelWidth value is an integer, not a string,
and is always interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
<SCRIPT>
function scaleThis()
{
if (sphere.style.pixelWidth <900) {
sphere.style.pixelWidth += 4;
sphere.style.pixelHeight +=4;
window.setTimeout("scaleThis();", 1);
}
}
:
</SCRIPT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelRight Property pixelWidth Property DHTM
Web Workshop | DHTML, HTML & CSS
pixelTop Property
Sets or retrieves the top position of the object.
Syntax
HTML N/A
Scripting object.style.pixelTop [ =iTop ]
Possible Values
The pixelTop property reflects the value of the cascading style sheets (CSS) top
attribute for positioned items. The property always returns 0 for nonpositioned items,
because "top" has meaning only when the object is positioned. Use the offsetTop
property to calculate actual positions within the document area.
Unlike the top property, the pixelTop value is an integer, not a string, and is always
interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelHeight Property pixelRight Property DHT
Web Workshop | DHTML, HTML & CSS
pixelLeft Property
Sets or retrieves the left position of the object.
Syntax
HTML N/A
Scripting object.style.pixelLeft [ =iLeft ]
Possible Values
The pixelLeft property reflects the value of the cascading style sheets (CSS) left
attribute for positioned items. The property always returns 0 for nonpositioned items,
because "left" has meaning only when the object is positioned. Use the offsetLeft
property to calculate actual positions within the document area.
Unlike the left property, the pixelLeft value is an integer, not a string, and is always
interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posLeft
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
style Object Members
Represents the current settings of all possible inline styles
for a given element.
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
STYLE Element | style Object Members
Specifies a style sheet for the page.
Properties
Methods
Events
onerror , onreadystatechange
Collections
behaviorUrns
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
images Collection links Collection DHTML Coll
Web Workshop | DHTML, HTML & CSS
imports Collection
Retrieves a collection of all the imported style sheets defined for the respective styleSheet
object.
Syntax
[ collImports = ] styleSheet.imports
[ oObject = ] styleSheet.imports(iIndex)
Possible Values
Members
Remarks
An imported style sheet is one that is brought into the document using the cascading
style sheets (CSS) @import rule.
Example
This example shows how to display the URLs of the imported style sheets in the
document.
Applies To
styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
styleSheet Object Members
Represents a single style sheet in the document.
Properties
Methods
Collections
imports , rules
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SUB Element | SUB Object Members
Specifies that the enclosed text should be displayed in
subscript, using a smaller font than the current font.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SUP Element | SUP Object Members
Specifies that the enclosed text should be displayed in
superscript, using a smaller font than the current font.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
offsetHeight Property offsetParent Property D
Web Workshop | DHTML, HTML & CSS
offsetLeft Property
Retrieves the calculated left position of the object relative to the layout or coordinate
parent, as specified by the offsetParent property.
Syntax
HTML N/A
Scripting [ iCoord = ] object.offsetLeft
Possible Values
Remarks
You can determine the location, width, and height of an object by using a combination
of the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric
properties specify the physical coordinates and dimensions of the object relative to the
object's offset parent.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the offsetLeft property to determine whether an object is in the
user's view.
<SCRIPT>
function isinView(oObject)
{
var oParent = oObject.offsetParent;
var iOffsetLeft = oDiv.offsetLeft;
var iClientWidth = oParent.clientWidth;
if (iOffsetLeft > iClientWidth) {
alert("Scroll right for the message.");
}
}
</SCRIPT>
:
<BUTTON onclick="isinView(this)">Click here</BUTTON>
:
<DIV ID=oDiv STYLE="position:absolute; top:200; left:1200;">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL,
VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TABLE Element | TABLE Object Members
Specifies that the contained content is organized into a
table with rows and columns.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepaddingborder-right-
widthcursorfiltertext-indentvisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftoverflow-xlayout-grid-
linefont-variantoverflow-yline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoplayout-grid-
modeheightrightborder-collapsefont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagebottomtable-layoutcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TBODY Element | TBODY Object Members
Designates rows as the body of the table.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeletter-spacingdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagevertical-alignvisibilityfont-
styletext-autospacefont-varianttext-
decorationbackgroundcolordirectionz-indexbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightlayout-gridlayout-grid-
mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TD Element | TD Object Members
Specifies a cell in a table.
Properties
Methods
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursorvertical-alignfiltertext-
indentvisibilityfont-styleborder-left-colormargin-lefttext-
autospacelayout-grid-linefont-variantline-
breakbackgroundtext-aligndirectionborder-bottom-
colortext-justifypositionbackground-positionclearborder-
right-colorborder-rightword-spacingpadding-leftlayout-
grid-modepadding-bottomfont-sizeborder-
bottomoverflowletter-spacingdisplayfont-familymargin-
rightbehaviorword-breaktext-transformbackground-
repeatborder-top-stylelayout-grid-charbackground-
imagecliptext-decorationcolorborder-styleborder-top-
widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TEXTAREA Element | TEXTAREA Object
Members
Specifies a multiline text input control.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftoverflow-xfont-
variantoverflow-ybackgroundtext-aligndirectionborder-
bottom-colorpositionbackground-positionclearborder-
right-colorborder-rightword-spacingtoppadding-
leftlayout-grid-modeheightpadding-bottomrightfont-
sizeborder-bottomoverflowletter-
spacingdisplayfloatfont-familymargin-rightbehaviortext-
transformbackground-repeatborder-top-
stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightime-modeline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
createStyleSheet Method createTextRange Meth
Web Workshop | DHTML, HTML & CSS
createTextNode Method
Creates a text string from the specified value.
Syntax
oTextNode = document.createTextNode([sText])
Parameters
sText Optional. String that specifies the nodeValue property of the text node.
Return Value
Example
This example uses the createTextNode method to create a text node and replace it
with an existing text node in a SPAN object.
<SCRIPT>
function fnChangeNode(){
var oTextNode = document.createTextNode("New Text");
var oReplaceNode = oSpan.childNodes(0);
oReplaceNode.replaceNode(oTextNode);
}
<SCRIPT>
Applies To
document
See Also
createElement
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
alert Method applyElement Method DHTML M
Web Workshop | DHTML, HTML & CSS
appendChild Method
Appends an element as a child to the object.
Syntax
oElement = object.appendChild(oNode)
Parameters
Return Value
Remarks
The appendChild method appends elements to the end of the childNodes collection.
To display new elements on the page, you must append them within the BODY
element. For example, the following syntax demonstrates how to add a DIV element to
the BODY.
var oDiv=document.createElement("DIV");
document.body.appendChild(oDiv);
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the appendChild method to add an item to an unordered list.
<SCRIPT>
function fnAppend(){
var oNewNode = document.createElement("LI");
oList.appendChild(oNewNode);
oNewNode.innerText="List node 5";
}
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List node 1
<LI>List node 2
<LI>List node 3
<LI>List node 4
</UL>
<INPUT
TYPE = "button"
VALUE = "Append Child"
onclick = "fnAppend()">
</BODY>
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
cloneNode, insertBefore
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
replaceChild Method reset Method DHTML Me
Web Workshop | DHTML, HTML & CSS
replaceNode Method
Replaces the object with another element.
Syntax
oReplace = object.replaceNode(oNewNode)
Parameters
oNewNode Required. Object that specifies the new element to replace the object.
Return Value
Remarks
When a node is replaced, all values associated with the replaced object are removed.
For example, if a B object is replaced with an I object, any attributes and text between
the opening and closing tags are also replaced. To preserve these values, copy them to
the new element before the original object is replaced.
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the replaceNode method to replace an unordered list with an
ordered list.
<SCRIPT>
function fnReplace(){
var sPreserve = oList.innerHTML;
var oNewNode = document.createElement("OL");
oList.replaceNode(oNewNode);
oNewNode.innerHTML = sPreserve;
}
</SCRIPT>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
<LI>List Item 4
</UL>
<INPUT TYPE = button VALUE = "Replace List" onclick =
"fnReplace()">
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
replaceChild
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertAdjacentText Method insertCell Method
Web Workshop | DHTML, HTML & CSS
insertBefore Method
Inserts an element into the document hierarchy.
Syntax
Parameters
oNewNode Required. Object that specifies the new element to be inserted into the document hierarchy. Elements can be created with the
createElement method.
oChildNode Optional. Object that specifies the new element to be inserted before this child element, if specified.
Return Value
Remarks
Do not specify an oChildNode parameter when inserting the first child node. If children
already exist and you do not specify the oChildNode parameter, the oNewNode
becomes the last child of the parent object.
This method is accessible at run time. If elements are removed at run time, before the
closing tag has been parsed, areas of the document might not render.
Example
This example uses the insertBefore method to insert a block of bold text into the
document.
<HEAD>
<SCRIPT>
function insertElement()
{
var nod=document.createElement("B");
document.body.insertBefore(nod);
nod.innerText="A New bold object has been
inserted into the document."
}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID=Div1 onclick="insertElement()">
Click here to insert a new bold element into this div.
</DIV>
</BODY>
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TextNode Object Members
Represents a string of text as a node in the document
hierarchy.
Properties
Methods
splitText
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
createTextNode Method createTFoot Method D
Web Workshop | DHTML, HTML & CSS
createTextRange Method
Creates a TextRange object for the given object.
Syntax
oTextRange = object.createTextRange()
Return Value
Remarks
Use a text range to examine and modify the text within an object.
Example
This example uses the createTextRange method to create a text range for the
document, and then uses the text range to display all the text and HTML tags in the
document.
<SCRIPT LANGUAGE="JScript">
var rng = document.body.createTextRange( );
if (rng!=null) {
alert(rng.htmlText);
}
</SCRIPT>
This example uses the createTextRange method to create a text range for the first
BUTTON element in the document, and then uses the text range to change the text in
the button.
<SCRIPT LANGUAGE="JScript">
var coll = document.all.tags("BUTTON");
if (coll!=null && coll.length>0) {
var rng = coll[0].createTextRange();
rng.text = "Clicked";
}
</SCRIPT>
Applies To
BODY, BUTTON, INPUT TYPE=button, INPUT TYPE=hidden, INPUT TYPE=password, INPUT TYPE=reset, INPUT TYPE=submit, INPUT TYPE=text,
TEXTAREA
See Also
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
mergeAttributes Method moveBy Method DHT
Web Workshop | DHTML, HTML & CSS
move Method
Collapses the given text range, and moves the empty range by the given number of units.
Syntax
Parameters
sUnit Required. String that specifies the units to move, using one of the following values:
character Moves one or more characters.
word Moves one or more words. A word is a collection of characters terminated by a space or some other
white-space character, such as a tab.
sentence Moves one or more sentences. A sentence is a collection of words terminated by a punctuation
character, such as a period.
textedit Moves to the start or end of the original range.
iCount Optional. Integer that specifies the number of units to move. This can be positive or negative. The default is 1.
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
See Also
moveEnd, moveStart
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveToBookmark Method moveToPoint Method
Web Workshop | DHTML, HTML & CSS
moveToElementText Method
Moves the text range so that the start and end positions of the range encompass the text
in the given element.
Syntax
TextRange.moveToElementText(oElement)
Parameters
oElement Required. Object that specifies the element object to move to.
Return Value
No return value.
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
expand Method firstPage Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
findText Method
Searches for text in the document, and positions the start and end points of the range to
encompass the search string.
Syntax
Parameters
Return Value
Remarks
A degenerate range is like a text editor caret (insertion point)—it does not actually
select any characters. Instead, it specifies a point between two characters. The end
points of a degenerate range are adjacent.
A nondegenerate range is like a text editor selection, in that it selects a certain amount
of text. The end points of a nondegenerate range are not adjacent.
The value passed for the iSearchScope parameter controls the part of the document,
relative to the range, that is searched. The behavior of the findText method depends
on whether the state is degenerate or nondegenerate:
If the range is degenerate, passing a large positive number causes the text to
the right of the range to be searched. Passing a large negative number causes
the text to the left of the range to be searched.
If the range is nondegenerate, passing a large positive number causes the text to
the right of the start of the range to be searched. Passing a large negative
number causes the text to the left of the end of the range to be searched.
Passing 0 causes only the text selected by the range to be searched.
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
A text range is not modified if the text specified for the findText method is not found.
Example
This example creates a TextRange over the body of the document, and then uses the
findText method to search for text with various flag combinations. The results are
indicated in the example code comments.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TextRange Object Members
Represents text in an HTML element.
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
getBoundingClientRect Met... getData Method
Web Workshop | DHTML, HTML & CSS
getClientRects Method
Retrieves a collection of rectangles that describes the layout of the contents of an object or
range within the client. Each rectangle describes a single line.
Syntax
collRect = object.getClientRects()
Return Value
collRect. Returns the TextRectangle collection. Each rectangle has four integer
properties (top, left, right, and bottom) that each represent a coordinate of the
rectangle, in pixels.
Example
This example uses the TextRectangle collection with the getClientRects and
getBoundingClientRect methods to determine the position of the text rectangle
within an element. In each line, the left-justified text does not extend to the right
margin of the box that contains the text. Using the collection, you can determine the
coordinates of the rectangle that surrounds only the content in each line. The example
code reads these rectangle coordinates and instructs the ball to move over the text
only, and not to the end of the line.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PRE, Q, S,
SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL, VAR,
XMP
See Also
TextRectangle Object
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onreset Event onrowenter Event DHTML Even
Web Workshop | DHTML, HTML & CSS
onresize Event
Fires when the size of the object is about to change.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Change the height or width of the object.
Default action No default action.
The onresize event fires for block and inline objects with layout, even if document or
CSS (cascading style sheets) property values are changed. Objects have layout when
measurements such as the height and width attributes are set, or when the position of
the object is set. Intrinsic objects, such as BUTTON, and windowed objects, such as
window and IFRAME, fire as expected. This event does not fire for files with embedded
controls.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM,
FRAME, Hn, HR, I, IMG, INPUT type=button, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=reset, INPUT type=submit,
INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, window, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TextRectangle Object Members
Specifies a rectangle that contains a line of text in either an
element or a TextRange object.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
getBookmark Method getClientRects Method
Web Workshop | DHTML, HTML & CSS
getBoundingClientRect Method
Retrieves an object specifying the bounds of a collection of TextRectangle objects.
Syntax
[ oRect ] = object.getBoundingClientRect()
Return Value
oRect. Returns a TextRectangle object. Each rectangle has four integer properties
(top, left, right, and bottom) that represent a coordinate of the rectangle, in pixels.
Remarks
This method retrieves an object that exposes the left, top, right, and bottom
coordinates of the union of rectangles relative to the client's upper-left corner. In
Microsoft® Internet Explorer 5, the window's upper-left is at 2,2 (pixels) with respect
to the true client.
Example
This example uses the TextRectangle collection with the getClientRects and
getBoundingClientRect methods to determine the position of the text rectangle
within an element. In each line, the left-justified text does not extend to the right
margin of the box that contains the text. Using the collection, you can determine the
coordinates of the rectangle that surrounds only the content in each line. The example
code reads these rectangle coordinates and instructs the ball to move over the text
only, and not to the end of the line.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, I, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PRE, Q, S,
SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL, VAR,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tbodies Collection DHTML Collections
Web Workshop | DHTML, HTML & CSS
TextRectangle Collection
Returns a collection of TextRectangle objects.
Members
Remarks
The collection returns an empty collection for objects that do not have
text.
Example
This example shows how to use the getClientRects method and the
TextRectangle collection to iterate through the lines of text in an
object.
<SCRIPT>
function newHighlite(obj) {
oRcts = obj.getClientRects();
iLength = oRcts.length
for (i = 0;i < iLength; i++)
{
alert("Line number " + (i + 1) + " is " +
(oRcts(i).right - oRcts(i).left) + " pixels
wide.")
}
}
</SCRIPT>
See Also
TextRectangle
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TFOOT Element | TFOOT Object Members
Designates rows as the table's footer.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeletter-spacingdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagevertical-alignvisibilityfont-
styletext-autospacefont-varianttext-
decorationbackgroundcolordirectionz-indexbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightlayout-gridlayout-grid-
mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TH Element | TH Object Members
Specifies a header column. Header columns are centered
within the cell and are bold.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorvertical-alignfiltertext-indentvisibilityfont-
styleborder-left-colormargin-lefttext-autospacelayout-
grid-linefont-variantline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingpadding-leftlayout-grid-
modepadding-bottomfont-sizeborder-bottomletter-
spacingdisplayfont-familymargin-rightbehaviorword-
breaktext-transformbackground-repeatborder-top-
stylelayout-grid-charbackground-imagecliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridlayout-
grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
THEAD Element | THEAD Object Members
Designates rows as the table's header.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizeletter-spacingdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagevertical-alignvisibilityfont-
styletext-autospacefont-varianttext-
decorationbackgroundcolordirectionz-indexbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightlayout-gridlayout-grid-
mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TITLE Element | title Object Members
Contains the title of the document.
Properties
Methods
Events
onreadystatechange
Collections
Behaviors
widthbehaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
height Attribute | height... hidden Property D
Web Workshop | DHTML, HTML & CSS
HEIGHT Attribute | height Property
Sets or retrieves the height of the object.
Syntax
Possible Values
Remarks
If the height property of an IMG is specified, but the width property is not specified,
the resulting width of the IMG is sized proportionally according to the specified height
property and the actual width (in pixels) of the image in the source file.
If you specify the height property of an IMG, and the height and width of the image
in the source file are identical, the width of the image will match the height.
If you specify the height property and the width property of an IMG, the resulting
image dimensions will match those specified.
When scripting the height property, use either the pixelHeight or posHeight property to
numerically manipulate the height value.
This property specifies the calculated height of the object, in pixels. For table rows and
table cells, this property has a range of 0 to 32750 pixels.
If you set the value of the corresponding HTML attribute using a percentage, this
property will specify the height, in pixels, represented by that percentage.
The scripting property is read/write for the IMG object, but read-only for other objects.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Applies To
See Also
width
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RIGHTMARGIN Attribute | r... ROWS Attribute |
Web Workshop | DHTML, HTML & CSS
rowIndex Property
Retrieves the position of the object in the rows collection for the TABLE.
Syntax
HTML N/A
Scripting [ iIndex = ] oTR.rowIndex
Possible Values
Remarks
This property is different from sectionRowIndex, which indicates the object's position in
the TBODY, THEAD, or TFOOTrows collection. These sections are mutually exclusive,
so the TR is always contained in one of these sections and in the TABLE. You can
determine the rowIndex property of an object by the order in which the object
appears in the HTML source.
Applies To
HTML N/A
Scripting TR
See Also
cellIndex, sourceIndex
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
plugins Collection rules Collection DHTML Col
Web Workshop | DHTML, HTML & CSS
rows Collection
Retrieves a collection of TR objects (rows) from a TABLE object.
Syntax
[ collRows = ] object.rows
[ oObject = ] object.rows(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
The scope of the rows collection is for the THEAD, TBODY, or TFOOT object of the
table. In addition, there is also a rows collection for the TABLE object, which contains
all the rows for the entire table. A row that appears in one of the table sections also
appears in the rows collection for the TABLE. The TR object has two index properties,
rowIndex and sectionRowIndex, that indicate where a given row appears. The
rowIndex property indicates where the TR appears with respect to the rows
collection for the whole table. By contrast, sectionRowIndex returns where the TR
appears with respect to the rows collection for the specific table section in which it is
located.
Example
This example shows how to use the rows and cells collections to insert a number into
each cell of the table.
<HTML>
<SCRIPT LANGUAGE="JScript">
function numberCells() {
var count=0;
for (i=0; i < document.all.oTable.rows.length; i++) {
for (j=0; j < document.all.oTable.rows(i).cells.length;
j++) {
document.all.oTable.rows(i).cells(j).innerText =
count;
count++;
}
}
}
</SCRIPT>
<BODY onload="numberCells()">
<TABLE id=oTable border=1>
<TR><TH> </TH><TH> </TH><TH> </TH><TH> </TH>
</TR>
<TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD>
</TR>
<TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertCell Method isEqual Method DHTML Met
Web Workshop | DHTML, HTML & CSS
insertRow Method
Creates a new row (TR) in the table, and adds the row to the rows collection.
Syntax
oTR = object.insertRow([iIndex])
Parameters
iIndex Optional. Integer that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the
end of the rows collection.
Return Value
Remarks
If you insert a row in a TFOOT, TBODY, or THEAD, you also need to add the row to the
rows collection for the TABLE. If you insert a row in the TABLE, you also need to add
the row to the rows collection for the TBODY. If you specify an index, the index
should be relative to the rows collection for the element that first contains the TR. For
example, if you call this method for a TBODY, you must specify an index value relative
to the rows collection that is on the TBODY, not the TABLE.
The preferred technique for inserting a row is to add the row at the end of the rows
collection. It is faster to add a row at the end of a table than somewhere in the middle.
To add a row at the end of the collection, specify the -1 value, or the length of the
rows collection minus 1.
Example
This example uses the insertRow method to add a row to the TABLE.
myNewRow = document.all.myTable.insertRow()
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
deleteCell Method deleteTFoot Method DHTML
Web Workshop | DHTML, HTML & CSS
deleteRow Method
Deletes the specified row (TR) in the TABLE, and removes the row from the rows
collection.
Syntax
object.deleteRow([iRowIndex])
Parameters
Return Value
No return value.
Remarks
If you delete a row from a TFOOT, TBODY, or THEAD, you also remove the row from
the rows collection for the TABLE. Deleting a row in the TABLE also removes a row
from the rows collection for the TBODY.
If you delete a row from a TBODY, TFOOT, or THEAD, iRowIndex must contain the
sectionRowIndex of the TR. When deleting a row from the TABLE, iRowIndex must
contain the rowIndex of the TR.
Example
This example uses the deleteRow method to delete the specified row (TR) in the
TABLE.
myNewRow = document.all.myTable.deleteRow()
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
caption Property CELLPADDING Attribute | c...
Web Workshop | DHTML, HTML & CSS
cellIndex Property
Retrieves the position of the object in the cells collection of a given row.
Syntax
HTML N/A
Scripting [ iIndex= ] td.cellIndex
Possible Values
Remarks
Collection indexes are in the source order of the HTML document. When a cell spans
multiple rows, that cell only appears in the cells collection for the first row that the cell
spans.
Applies To
HTML N/A
Scripting TD
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
boundElements Collection childNodes Collection
Web Workshop | DHTML, HTML & CSS
cells Collection
Retrieves a collection of all cells in the table row or in the entire table.
Syntax
[ collCells = ] object.oTR.cells
[ oCells = ] object.cells(vIndex [, iSubIndex] )
Possible Values
collCells Array of TD and TH elements contained by the object. If the object is a TR, the array contains elements only in that table row. If the
object is a TABLE, the array contains all elements in the table.
oCells Reference to an individual item in the array of elements contained by the object.
vIndex Required. Integer or string that specifies the element or collection to retrieve. If this parameter is an integer, the method returns the
element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If this parameter is a
string and there is more than one element with the name or id property equal to the string, the method returns a collection of matching
elements. The parameter can specify a string as a range of table rows and columns by providing a spreadsheet format, such as A1:B1.
iSubIndex Optional. Position of an element to retrieve. This parameter is used when vIndex is a string. The method uses the string to construct a
collection of all elements that have a name or id property equal to the string, and then retrieves from this collection the element at the
position specified by iSubIndex.
Members
Remarks
When a cell spans multiple rows, that cell appears only in the cells collection for the
first of the rows that the cell spans.
Example
This example shows how to use the rows collection on the TABLE object and the cells
collection to insert a number into each cell of the table.
<HTML>
<SCRIPT LANGUAGE="JScript">
function numberCells() {
var count=0;
for (i=0; i < document.all.oTable.rows.length; i++) {
for (j=0; j < document.all.oTable.rows(i).cells.length;
j++) {
document.all.oTable.rows(i).cells(j).innerText =
count;
count++;
}
}
}
</SCRIPT>
<BODY onload="numberCells()">
<TABLE id=oTable border=1>
<TR><TH> </TH><TH> </TH><TH> </TH><TH> </TH>
</TR>
<TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD>
</TR>
<TR><TD> </TD><TD> </TD><TD> </TD><TD> </TD>
</TR>
</TABLE>
</BODY>
</HTML>
Applies To
TABLE, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertBefore Method insertRow Method DHTM
Web Workshop | DHTML, HTML & CSS
insertCell Method
Creates a new cell in the table row (TR), and adds the cell to the cells collection.
Syntax
oTD = TR.insertCell([iIndex])
Parameters
iIndex Optional. Integer that specifies where to insert the cell in the TR. The default value is -1, which appends the new cell to the end of the cells
collection.
Return Value
Remarks
The preferred technique for inserting a cell is to add the cell at the end of the cells
collection. It is faster to add a cell at the end of a row than somewhere in the middle.
To add a cell at the end of the collection, specify the -1 value, or the length of the
cells collection minus 1.
Example
This example uses the insertCell method to add a cell to the end of the TR.
myNewCell = document.all.myTable.rows[0].insertCell()
Applies To
TR
See Also
deleteCell, insertRow
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
deleteCaption Method deleteRow Method DHT
Web Workshop | DHTML, HTML & CSS
deleteCell Method
Deletes the specified cell (TD) in the table row, and removes the cell from the cells
collection.
Syntax
TR.deleteCell([iIndex])
Parameters
iIndex Optional. Integer that specifies the cell to be deleted from the table row. If no value is provided, the last cell in the cells collection is
deleted.
Return Value
No return value.
Example
This example uses the deleteCell method to delete the last cell in the first row of the
table.
document.all.myTable.rows[0].deleteCell()
Applies To
TR
See Also
deleteRow, insertCell
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
index Property innerText Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
innerHTML Property
Sets or retrieves the HTML between the start and end tags of the object.
Syntax
HTML N/A
Scripting object.innerHTML [ = sHTML ]
Possible Values
sHTML String that specifies the content between the start and end tags.
Remarks
The innerHTML property is read-only on the FRAMESET, HTML, HEAD, TABLE, TBODY,
TFOOT, THEAD, TITLE, and TR objects.
The innerHTML property takes a string that specifies a valid combination of text and
elements.
When the innerHTML property is set, the given string completely replaces the existing
content of the object. If the string contains HTML tags, the string is parsed and
formatted as it is placed into the document.
When using innerHTML to insert script, you must include the DEFER attribute in the
SCRIPT element.
You can change the value of the TITLE element using the document.title property.
To change the contents of the TABLE, TFOOT, THEAD, and TR elements, use the
table object model. For example, use the rowIndex property or the rows collection to
retrieve a reference to a specific table row. You can add or delete rows using the
insertRow and deleteRow methods. To retrieve a reference to a specific cell, use the
cellIndex property or the cells collection. You can add or delete rows using the
insertCell and deleteCell methods. To change the content of a particular cell, use the
innerHTML property.
Example
This example uses the innerHTML property to change the text of a paragraph when
an onmouseover event occurs. The affected text and any tags within it are changed by
the onmouseover and onmouseout events.
<P onmouseover="this.innerHTML='<B>Mouse out
to change back.</B>'"
onmouseout="this.innerHTML='<I>
Mouse over again to change.</I>'">
<I>Mouse over this text to change it.</I></P>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
This example uses the innerHTML property to insert script into the page.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL, DT,
EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID,
NOBR, OL, OPTION, P, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD,
TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
insertAdjacentHTML
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
TR Element | TR Object Members
Specifies a row in a table.
Properties
Methods
Collections
Behaviors
Styles
widthfont-sizepage-break-beforeletter-
spacingdisplaypaddingfont-familycursorbehaviorword-
breaktext-transformbackground-repeatlayout-grid-
charbackground-imagevertical-aligntext-
indentvisibilityfont-stylecliptext-autospacelayout-grid-
linefont-varianttext-decorationline-
breakbackgroundcolortext-aligndirectionz-indextext-
justifypage-break-afterpositionbackground-
positionclearfontunicode-bidibackground-colorfont-
weightword-spacingline-heightlayout-gridlayout-grid-
typelayout-grid-char-spacingheightlayout-grid-mode
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TT Element | TT Object Members
Renders text in a fixed-width font.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
U Element | U Object Members
Renders text that is underlined.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
UL Element | UL Object Members
Draws lines of text as a bulleted list.
Properties
Methods
Events
onbeforecopy , onbeforecut , onbeforepaste , onblur ,
onclick , oncontextmenu , oncopy , oncut , ondblclick ,
ondrag , ondragend , ondragenter , ondragleave ,
ondragover , ondragstart , ondrop , onfocus , onhelp ,
onkeydown , onkeypress , onkeyup , onlosecapture ,
onmousedown , onmousemove , onmouseout ,
onmouseover , onmouseup , onpaste ,
onpropertychange , onreadystatechange , onresize ,
onselectstart
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpage-break-beforepadding-rightpaddingborder-
right-widthcursortext-indentvisibilityfont-styleborder-
left-colormargin-lefttext-autospaceleftoverflow-xlayout-
grid-linefont-variantoverflow-ylist-styleline-breaklist-
style-typebackgroundtext-alignlist-style-
imagedirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modepadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charlist-style-positionbackground-
imagebottomcliptext-decorationcolorborder-styleborder-
top-widthborder-topz-indexmargin-bottompage-break-
afterfontborder-left-styleborder-widthmarginunicode-
bidibackground-colorfont-weightline-heightborder-
bottom-stylelayout-gridlayout-grid-typelayout-grid-
char-spacingborder-left-widthborder-leftpadding-
topborder-colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
userProfile Object Members
Provides methods that allow a script to request read access
to and perform read actions on a user's profile information.
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
VAR Element | VAR Object Members
Renders text in a small fixed-width font.
Properties
Methods
Events
onbeforecut , onbeforepaste , onblur , onclick ,
oncontextmenu , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onfocus , onhelp , onkeydown ,
onkeypress , onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onselectstart
Collections
Behaviors
Styles
widthfont-sizeoverflowpadding-rightletter-
spacingfloatdisplaypaddingfont-
familycursorbehaviortext-transformbackground-
repeatbackground-imagebottomvisibilityfont-
stylecliptext-autospaceleftoverflow-xfont-varianttext-
decorationoverflow-ybackgroundcolordirectionz-
indexpositionbackground-positionclearfontunicode-
bidibackground-colorfont-weightword-spacingline-
heighttoppadding-leftlayout-gridlayout-grid-
modepadding-toppadding-bottomright
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
WBR Element | WBR Object Members
Inserts a soft line break into a block of NOBR text.
Properties
Methods
Collections
behaviorUrns
Behaviors
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
showHelp Method showModelessDialog Method
Web Workshop | DHTML, HTML & CSS
showModalDialog Method
Creates a modal dialog box that displays the specified HTML document.
Syntax
Parameters
sURL Required. String that specifies the URL of the document to load and display.
vArguments Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type,
including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the
window object.
sFeatures Optional. String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited
values:
dialogHeight:iHeight Sets the height of the dialog window (see Remarks for default unit of
measure).
dialogLeft:iXPos Sets the left position of the dialog window relative to the upper-left corner of
the desktop.
dialogTop:iYPos Sets the top position of the dialog window relative to the upper-left corner of
the desktop.
dialogWidth:iWidth Sets the width of the dialog window (see Remarks for default unit of
measure).
center:{ yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. The
default is yes.
help:{ yes | no | 1 | 0 } Specifies whether the dialog window displays the context-sensitive Help icon.
The default is yes.
resizable:{ yes | no | 1 | 0 } Specifies whether the dialog window has set dimensions. The default for
both trusted and untrusted dialog windows is no.
status:{ yes | no | 1 | 0 } Specifies whether the dialog window displays a status bar. The default is yes
for untrusted dialog windows and no for trusted dialog windows.
Return Value
Variant. Returns the value of the returnValue property as set by the window of the
document specified in sURL.
Remarks
A modal dialog box retains the input focus while open. The user cannot switch windows
until the dialog box is closed.
Because a modal dialog box can include a URL to a resource in a different domain, do
not pass information through the vArguments parameter that the user might consider
private.
As of Microsoft® Internet Explorer 4.0, you can eliminate scroll bars on dialog boxes.
To turn off the scroll bar, set the SCROLL attribute to false in the BODY element for
the dialog window, or call the modal dialog box from a trusted application.
Internet Explorer 5 allows further control over modal dialog boxes through the status
and resizable values in the sFeatures parameter of the showModalDialog method.
Turn off the status bar by calling the dialog box from a trusted application, such as
Microsoft® Visual Basic® or an HTML Application (HTA), or from a trusted window,
such as a trusted modal dialog box. These applications are considered to be trusted
because they use Internet Explorer interfaces instead of the browser. Any dialog box
generated from a trusted source has the status bar turned off by default. Resizing is
turned off by default, but you can turn it on by specifying resizable=yes in the
sFeatures string of the showModalDialog method.
You can set the default font settings the same way you set cascading style sheets
(CSS) attributes (for example, "font:3;font-size:4"). To define multiple font values,
use multiple font attributes.
The default unit of measure for dialogHeight and dialogWidth in Internet Explorer
4.0 is the em; in Internet Explorer 5 it is the pixel. For consistent results, specify the
dialogHeight and dialogWidth in pixels when designing modal dialog boxes.
Although a user can manually adjust the height of a dialog box to a smaller value—
provided the dialog box is resizable—the minimum dialogHeight you can specify is
100 pixels.
To override center, even though the default for center is yes, you can specify either
dialogLeft and/or dialogTop.
Example
This example uses the showModalDialog method to open a customized dialog box.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
showModalDialog Method splitText Method DH
Web Workshop | DHTML, HTML & CSS
showModelessDialog Method
Creates a modeless dialog box that displays the specified HTML document.
Syntax
Parameters
sURL Required. String that specifies the URL of the document to load and display.
vArguments Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type,
including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the
window object.
sFeatures Optional. String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited
values:
dialogHeight:iHeight Sets the height, in pixels, of the dialog window.
dialogLeft:iXPos Sets the left position of the dialog window relative to the upper-left corner of
the desktop.
dialogTop:iYPos Sets the top position of the dialog window relative to the upper-left corner of
the desktop.
dialogWidth:iWidth Sets the width, in pixels, of the dialog window.
center:{ yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. The
default is yes.
help:{ yes | no | 1 | 0 } Specifies whether the dialog box displays the context-sensitive Help icon.
The default is yes.
resizable:{ yes | no | 1 | 0 } Specifies whether the dialog window has set dimensions. The default for
trusted and untrusted dialog windows is no.
status:{ yes | no | 1 | 0 } Specifies whether the dialog window displays a status bar. The default is yes
for untrusted dialog windows and no for trusted dialog windows.
Return Value
Variant. Returns a reference to the new window object. Use this reference to script
properties and methods on the new window.
Remarks
The modeless dialog box displays even when the user switches input focus to the
window.
The showModelessDialog method is useful for menus and Help systems. When you
invoke this method, a dialog box appears, layered in front of the browser window or
HTML Application (HTA).
By convention, modeless dialog boxes can differ from an application window in that
they do not have scroll bar, status bar, or resize capabilities. To create this type of
dialog box, implement the following steps:
Turn off the scroll bar. Use the SCROLL attribute by including the scroll="no"
value in the BODY tag for the dialog window.
Turn off the status bar. Set the value of status to no in the sFeatures parameter
of the showModelessDialog call. A second option is to call the dialog window
from a trusted application, such as Microsoft® Visual Basic® or an HTA, or from
a trusted window, such as a trusted dialog box. These are considered trusted
because they use Internet Explorer interfaces instead of the browser. The status
bar of any dialog box generated from a trusted source is set to off by default.
Do not allow resizing. Resizing is set to off by default.
To create a return value for showModelessDialog, set the vArguments parameter to
a callback function or an object in the showModelessDialog call. In the modeless
dialog box, you can reference this function or object through the dialogArguments
property of the window object. The same arguments are valid for the
showModelessDialog and showModalDialog methods.
You can set the default font settings the same way you set cascading style sheets
(CSS) attributes (for example, "font:3; font-size:4"). To define multiple font
values, use multiple font attributes.
To override center, even though the default for center is yes, you can specify either
dialogLeft and/or dialogTop.
Although a user can manually adjust the height of a dialog box to a smaller value—
provided the dialog box is resizable—the minimum dialogHeight you can specify is
100 pixels.
Example
This example uses the showModelessDialog method to create a return value. It also
shows how to handle user actions in the modeless dialog box.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
designMode Property dialogHeight Property D
Web Workshop | DHTML, HTML & CSS
dialogArguments Property
Retrieves the variable or array of variables passed into the modal dialog window.
Syntax
HTML N/A
Scripting [ vVariables = ] window.dialogArguments
Possible Values
Remarks
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dialogArguments Property dialogLeft Property
Web Workshop | DHTML, HTML & CSS
dialogHeight Property
Sets or retrieves the height of the modal dialog window.
Syntax
HTML N/A
Scripting window.dialogHeight [ = iHeight ]
Possible Values
Although a user can manually adjust the height of a dialog box to a smaller value—
provided the dialog box is resizable—the minimum dialogHeight you can set using
script is 100 pixels.
Example
This example creates a dialog window using the dialogHeight property to set the new
window's height.
<SCRIPT>
function someMessage()
{
event.srcElement.blur();
window.showModalDialog("message.htm", "",
"dialogWidth:5cm; dialogHeight:10cm")
}
</SCRIPT>
</HEAD>
<BODY>
<SELECT onchange="someMessage()">
<OPTION>Item 1</OPTION>
<OPTION>Item 2</OPTION>
<OPTION>Item 3</OPTION>
</SELECT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dialogHeight Property dialogTop Property DHT
Web Workshop | DHTML, HTML & CSS
dialogLeft Property
Sets or retrieves the left coordinate of the modal dialog window.
Syntax
HTML N/A
Scripting window.dialogLeft [ = iLeft ]
Possible Values
The dialogLeft property applies only to windows created using the showModalDialog
method.
Example
This example creates a dialog window using the dialogLeft property to set the
position relative to the left side of the screen.
Note Do not break the script code into two lines as in the fourth line of the example.
This was done for readability only.
<SCRIPT>
function someMessage()
{
event.srcElement.blur();
window.showModalDialog("message.htm", "",
"dialogWidth:5cm; dialogHeight:10cm;
dialogTop:0cm; dialogLeft:0cm")
}
</SCRIPT>
</HEAD>
<BODY>
<SELECT onchange="someMessage()">
<OPTION>Item 1</OPTION>
<OPTION>Item 2</OPTION>
<OPTION>Item 3</OPTION>
</SELECT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dialogLeft Property dialogWidth Property DHT
Web Workshop | DHTML, HTML & CSS
dialogTop Property
Sets or retrieves the top coordinate of the modal dialog window.
Syntax
HTML N/A
Scripting window.dialogTop [ = iTop ]
Possible Values
The dialogTop property applies only to windows created using the showModalDialog
method.
Example
This example creates a dialog window using the dialogTop property to set the position
relative to the top of the screen.
Note Do not break the script code into two lines as in the fourth line of the example.
This was done for readability only.
<SCRIPT>
function someMessage()
{
event.srcElement.blur();
window.showModalDialog("message.htm", "",
"dialogWidth:5cm; dialogHeight:10cm;
dialogTop:0cm; dialogLeft:0cm")
}
</SCRIPT>
</HEAD>
<BODY>
<SELECT onchange="someMessage()">
<OPTION>Item 1</OPTION>
<OPTION>Item 2</OPTION>
<OPTION>Item 3</OPTION>
</SELECT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dialogTop Property DIR Attribute | dir Prope...
Web Workshop | DHTML, HTML & CSS
dialogWidth Property
Sets or retrieves the width of the modal dialog window.
Syntax
HTML N/A
Scripting window.dialogWidth [ = iWidth ]
Possible Values
The dialogWidth property applies only to windows created using the showModalDialog
method.
Example
This example creates a dialog window using the dialogWidth property to set the new
window's width.
<SCRIPT>
function someMessage()
{
event.srcElement.blur();
window.showModalDialog("message.htm", "",
"dialogWidth:5cm; dialogHeight:10cm")
}
</SCRIPT>
</HEAD>
<BODY>
<SELECT onchange="someMessage()">
<OPTION>Item 1</OPTION>
<OPTION>Item 2</OPTION>
<OPTION>Item 3</OPTION>
</SELECT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
repeat Property returnValue Property DHTML
Web Workshop | DHTML, HTML & CSS
returnValue Property
Sets or retrieves the return value from the modal dialog window.
Syntax
HTML N/A
Scripting window.returnValue [ =vValue ]
Possible Values
vValue Variant that specifies the return value from the window.
Remarks
This property applies only to windows created using the showModalDialog method.
Applies To
s
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
window Object Members
Represents an open window in the browser.
Properties
Methods
Events
Collections
frames
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
onbeforeprint Event onbeforeupdate Event DH
Web Workshop | DHTML, HTML & CSS
onbeforeunload Event
Fires prior to a page being unloaded.
Syntax
Remarks
Bubbles No
Cancels No
To invoke
Close the current browser window.
Navigate to another location by entering a new address or selecting a Favorite.
Click the Back, Forward, Refresh, or Home button.
Click on an anchor that refers the browser to another Web page.
Invoke the anchor click method.
Invoke the document write method.
Invoke the document open method.
Invoke the document close method.
Invoke the window close method.
Invoke the window open method, providing the possible value _self for the window name.
Invoke the window navigate or NavigateAndFind method.
Invoke the location replace method.
Invoke the location reload method.
Specify a new value for the location href property.
Submit a FORM to the address specified in the ACTION attribute via the INPUT_submit control, or invoke the form submit
method.
When a string is returned to this event, a dialog box displays that gives the user the
option of staying on the page.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onbeforeunload event to prompt the user to remain on the
page.
<HTML>
<HEAD>
<SCRIPT>
function closeIt()
{
event.returnValue = "Any string value here will force a
dialog
box to appear before closing the
window.";
}
</SCRIPT>
</HEAD>
<BODY onbeforeunload="closeIt()">
<P>Navigate to another page to fire the before unload event.
</BODY>
</HTML>
Applies To
FRAMESET, window
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
XML Element | XML Object Members
Defines an xml data island on an HTML page.
I
Properties
Methods
Events
ondataavailable , ondatasetchanged ,
ondatasetcomplete , onreadystatechange , onrowenter ,
onrowexit , onrowsdelete , onrowsinserted
Collections
behaviorUrns
Behaviors
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
XMP Element | XMP Object Members
Renders text used for examples in a fixed-width font.
Properties
Methods
Events
onbeforecut , onbeforepaste , onblur , onclick ,
oncontextmenu , oncut , ondblclick , ondrag ,
ondragend , ondragenter , ondragleave , ondragover ,
ondragstart , ondrop , onfocus , onhelp , onkeydown ,
onkeypress , onkeyup , onlosecapture , onmousedown ,
onmousemove , onmouseout , onmouseover ,
onmouseup , onpaste , onpropertychange ,
onreadystatechange , onresize , onselectstart
Collections
Behaviors
Styles
border-top-colormargin-topborder-bottom-widthpage-
break-beforepadding-rightpaddingborder-right-
widthcursortext-indentvisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftoverflow-xlayout-grid-
linefont-variantoverflow-yline-breakbackgroundtext-
aligndirectionborder-bottom-colortext-
justifypositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modepadding-bottomrightfont-sizeborder-
bottomoverflowletter-spacingdisplayfloatfont-
familymargin-rightbehaviorword-breaktext-
transformbackground-repeatborder-top-stylelayout-
grid-charbackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottompage-break-afterfontborder-
left-styleborder-widthmarginunicode-bidibackground-
colorfont-weightline-heightborder-bottom-stylelayout-
gridlayout-grid-typelayout-grid-char-spacingborder-left-
widthborder-leftpadding-topborder-colorborder-right-
styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=button Element | INPUT
type=button Object Members
Creates a button control.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=checkbox Element | INPUT
type=checkbox Object Members
Creates a check box control.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
effectAllowed Property EVENT Attribute | event
Web Workshop | DHTML, HTML & CSS
ENCTYPE Attribute | encoding Property
Sets or retrieves the MIME encoding for the form.
Syntax
Possible Values
sType String that specifies the format of the data being submitted by the form.
Internet Explorer 4.0 also recognizes multipart/form-data, which, along with a POST
method, is required to submit a file upload to the server.
Applies To
FORM
See Also
action
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=file Element | INPUT
type=file Object Members
Creates a file upload object with a text box and Browse
button.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=hidden Element | INPUT
type=hidden Object Members
Transmits state information about client/server interaction.
Properties
Methods
Events
Collections
attributes , behaviorUrns
Behaviors
Styles
behaviortext-autospace
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
VALUE Attribute | value P... VCARD_NAME Attri
Web Workshop | DHTML, HTML & CSS
VALUE Attribute | value Property
Sets or retrieves the count of ordered lists as they progress.
Syntax
Possible Values
<OL>
<LI VALUE="1">One
<LI VALUE="2">Two
<LI VALUE="3">Three
</OL>
Applies To
LI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
S SRC Attribute | src Prope... sr srcElement Propert
Web Workshop | DHTML, HTML & CSS
SRC Attribute | src Property
Sets or retrieves a URL to be loaded by the object.
Syntax
Possible Values
This example uses the src property to change the image's SRC attribute.
<BODY onmousedown="oImage.src='sphere.jpg'"
onmouseup="oImage.src='cone.jpg'">
:
<IMG ID=oImage SRC="cone.jpeg">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Micros
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=image Element | INPUT
type=image Object Members
Creates an image control that, when clicked, causes the
form to be immediately submitted.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=password Element | INPUT
type=password Object Members
Creates a single-line text entry control similar to the text
control, except that text is not displayed as the user enters
it.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgroundtext-aligndirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
CELLSPACING Attribute | c... CLASSID Attribute
Web Workshop | DHTML, HTML & CSS
CHECKED Attribute | checked Property
Sets or retrieves the state of the check box or radio button.
Syntax
Possible Values
Check boxes that are not selected do not return their values when the form is
submitted.
A user can select a radio button only if the button has a name. To clear a selected
radio button, a user must select another button in the set.
Example
<HEAD>
<SCRIPT>
function checkthis()
{
if (oCheckbox.checked == true)
{
alert("It's got a check; now off to Microsoft!");
window.open("http://www.microsoft.com");
}
}
</SCRIPT>
</HEAD>
<BODY>
Check here if you wish to go to Microsoft:
<INPUT ID=oCheckbox TYPE=checkbox onclick=checkthis()>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=radio Element | INPUT
type=radio Object Members
Creates a radio button control.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=reset Element | INPUT
type=reset Object Members
Creates a button that, when clicked, resets the form's
controls to their initial values.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=submit Element | INPUT
type=submit Object Members
Creates a button that, when clicked, submits the form.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgrounddirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightline-heightborder-bottom-stylelayout-gridborder-
left-widthborder-leftpadding-topborder-colorborder-
right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
SIZE Attribute | size Pro... sourceIndex Propert
Web Workshop | DHTML, HTML & CSS
SIZE Attribute | size Property
Sets or retrieves the size of the control.
Syntax
Possible Values
Although this property is read/write, no change is visible when you set the size of the
INPUT type=reset, INPUT type=submit, and INPUT type=image objects. However, you
can detect a change to the size property for these objects in code.
For the INPUT type=text object, the size is in characters and represents the width of
the text box. When the size is specified, the SELECT object represents a list box with
the specified number of rows.
Applies To
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, SELECT
See Also
maxLength
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MARGINWIDTH Attribute | m... MEDIA Attribute
Web Workshop | DHTML, HTML & CSS
MAXLENGTH Attribute | maxLength Property
Sets or retrieves the maximum number of characters that the user can enter into a text
control.
Syntax
Possible Values
The maxLength property limits the number of characters the user can enter. The
property does not limit programmatic assignments to the value property. The
property's value can be larger than the size of the text box, in which case the text box
scrolls, as necessary, as the user types.
Applies To
See Also
size
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
INPUT type=text Element | INPUT
type=text Object Members
Creates a single-line text entry control.
Properties
Methods
Events
Collections
Behaviors
Styles
border-top-colorwidthmargin-topborder-bottom-
widthpadding-rightpaddingborder-right-
widthcursorfiltervisibilityfont-styleborder-left-
colormargin-lefttext-autospaceleftfont-
variantbackgroundtext-aligndirectionborder-bottom-
colorpositionbackground-positionclearborder-right-
colorborder-rightword-spacingtoppadding-leftlayout-
grid-modeheightpadding-bottomrightfont-sizeborder-
bottomletter-spacingdisplayfloatfont-familymargin-
rightbehaviortext-transformbackground-repeatborder-
top-stylebackground-imagebottomcliptext-
decorationcolorborder-styleborder-top-widthborder-
topz-indexmargin-bottomfontborder-left-styleborder-
widthmarginunicode-bidibackground-colorfont-
weightime-modeline-heightborder-bottom-stylelayout-
gridborder-left-widthborder-leftpadding-topborder-
colorborder-right-styleborder
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
!important Declaration @font-face Rule DHTM
Web Workshop | DHTML, HTML & CSS
@charset Rule
Sets the character set for an external style sheet.
Syntax
Possible Values
At most, you can use one @charsetin an external style sheet, and it must appear at
the top of the file, not preceded by any characters. The @charset rule cannot be in an
embedded style sheet.
Example
@charset "Windows-1251";
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
active Pseudo-class ALIGN Attribute | align P...
Web Workshop | DHTML, HTML & CSS
activeElement Property
Retrieves the object that has the focus.
Syntax
HTML N/A
Scripting [ oActive = ] document.activeElement
Possible Values
oActive Object that specifies the element that has the focus.
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
activeElement Property ALIGN Attribute | align
Web Workshop | DHTML, HTML & CSS
ALIGN Attribute | align Property
Sets or retrieves how the object is aligned with adjacent text.
Syntax
Possible Values
For the INPUT object, this attribute applies only to the image type. It is undefined for
all other types.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALIGN Attribute | align P... ALIGN Attribute | al
Web Workshop | DHTML, HTML & CSS
ALIGN Attribute | align Property
Sets or retrieves the alignment of the caption or legend.
Syntax
Possible Values
The LEGEND tag is used only within a FIELDSET tag. The contents of the LEGEND tag
are displayed by overwriting the information in the top border of the FIELDSET.
The CAPTION tag is used only within a TABLE tag. Its contents are displayed centered
above the table and do not interact at all with the table border.
Applies To
CAPTION, LEGEND
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALIGN Attribute | align P... ALIGN Attribute | al
Web Workshop | DHTML, HTML & CSS
ALIGN Attribute | align Property
Sets or retrieves the table alignment.
Syntax
Possible Values
TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALIGN Attribute | align P... ALINK Attribute | aL
Web Workshop | DHTML, HTML & CSS
ALIGN Attribute | align Property
Sets or retrieves the alignment of the object relative to the display or table.
Syntax
Possible Values
The justify possible value is available only for the DIV, Hn, and P elements.
Applies To
COL, COLGROUP, DIV, Hn, HR, P, TBODY, TD, TFOOT, TH, THEAD, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALIGN Attribute | align P... alinkColor Property
Web Workshop | DHTML, HTML & CSS
ALINK Attribute | aLink Property
Sets or retrieves the color of all active links in the element.
Syntax
Possible Values
sColor String that specifies one of the color names or hexadecimal color values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize red-
green-blue (RGB) color values and display them correctly.
Applies To
BODY
See Also
link, vLink
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALINK Attribute | aLink P... ALT Attribute | alt P
Web Workshop | DHTML, HTML & CSS
aLinkColor Property
Sets or retrieves the color of all active links in the document.
Syntax
HTML N/A
Scripting document.aLinkColor [ =sColor ]
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize and
correctly display red-green-blue (RGB) color values.
Applies To
document
See Also
linkColor, vlinkColor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
alinkColor Property altHTML Property DHTML
Web Workshop | DHTML, HTML & CSS
ALT Attribute | alt Property
Sets or retrieves a text alternative to the graphic.
Syntax
Possible Values
sTxt String that specifies the text to display as an alternative to the graphic.
The text is used to replace the graphic for text-only browsers, to display in the window
before the graphic has loaded, and to act as a ToolTip when the user hovers the mouse
over the graphic.
Example
This example uses the ALT attribute to indicate that the icon displayed denotes a
read/write property.
Applies To
AREA, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ALT Attribute | alt Prope... altKey Property DH
Web Workshop | DHTML, HTML & CSS
altHTML Property
Sets or retrieves the optional alternative HTML script to execute if the object fails to load.
Syntax
HTML N/A
Scripting object.altHTML [ =sHTMLCode ]
Possible Values
HTML N/A
Scripting APPLET, OBJECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
altHTML Property appCodeName Property DH
Web Workshop | DHTML, HTML & CSS
altKey Property
Retrieves the state of the ALT key.
Syntax
HTML N/A
Scripting [ bAltKeyDown= ] event.altKey
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
altKey Property appMinorVersion Property DH
Web Workshop | DHTML, HTML & CSS
appCodeName Property
Retrieves the code name of the browser.
Syntax
HTML N/A
Scripting [ sCodeName= ] navigator.appCodeName
Possible Values
sCodeName String that specifies the browser's code name, or the following value:
Mozilla Returned by Internet Explorer and Netscape Navigator.
Applies To
clientInformation, navigator
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
appCodeName Property appName Property D
Web Workshop | DHTML, HTML & CSS
appMinorVersion Property
Retrieves the application's minor version value.
Syntax
HTML N/A
Scripting [ iMinorVersion= ] navigator.appMinorVersion
Possible Values
Applies To
clientInformation, navigator
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
appMinorVersion Property appVersion Property
Web Workshop | DHTML, HTML & CSS
appName Property
Retrieves the name of the browser.
Syntax
HTML N/A
Scripting [ sAppName= ] navigator.appName
Possible Values
Applies To
clientInformation, navigator
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
appName Property AUTOCOMPLETE Attribute |
Web Workshop | DHTML, HTML & CSS
appVersion Property
Retrieves the platform and version of the browser.
Syntax
HTML N/A
Scripting [ sVersion = ] navigator.appVersion
Possible Values
sVersion String that specifies information about the browser's platform and version.
Remarks
The appVersion property returns a value based on the browser name, browser
version, and platform. This syntax shows the format of the returned value.
Applies To
clientInformation, navigator
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
appVersion Property availHeight Property DHT
Web Workshop | DHTML, HTML & CSS
AUTOCOMPLETE Attribute | autocomplete Property
Sets or retrieves the status of AutoComplete for the object.
Syntax
Possible Values
If AutoComplete is disabled, values are not stored and suggested values are not
presented.
While PASSWORD values can be mapped for AutoComplete, the ability to store this
information can be disabled in the browser, and the user is prompted for a
confirmation before the value is stored.
Information provided by the AutoComplete feature is not exposed to the object model,
and is not visible to a Web page until the user selects one of the suggestions as a
value for the text field.
Applies To
INPUT type=password, INPUT type=text, FORM
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AUTOCOMPLETE Attribute | ... availWidth Prope
Web Workshop | DHTML, HTML & CSS
availHeight Property
Retrieves the height of the working area of the system's screen, excluding the Microsoft®
Windows® taskbar.
Syntax
HTML N/A
Scripting [ iHeight= ] screen.availHeight
Possible Values
Applies To
HTML N/A
Scripting screen
See Also
height
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
availHeight Property background Attribute | ba
Web Workshop | DHTML, HTML & CSS
availWidth Property
Retrieves the width of the working area of the system's screen, excluding the Microsoft®
Windows® taskbar.
Syntax
HTML N/A
Scripting [ iWidth= ] screen.availWidth
Possible Values
Applies To
HTML N/A
Scripting screen
See Also
width
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background Attribute | ba... BACKGROUND Attr
Web Workshop | DHTML, HTML & CSS
BACKGROUND Attribute | background Property
Sets or retrieves the background picture tiled behind the text and graphics on the page.
Syntax
Possible Values
sURL String that specifies the URL of the file to be used as the background picture for the page.
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BACKGROUND Attribute | ba... background-atta
Web Workshop | DHTML, HTML & CSS
BACKGROUND Attribute | background Property
Sets or retrieves the background picture tiled behind the text and graphics in the object.
Syntax
Possible Values
sURL String that specifies the URL of the file to be used as the background picture.
TABLE, TD, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background-position Attri... backgroundPosition
Web Workshop | DHTML, HTML & CSS
backgroundPositionX Property
Sets or retrieves the x-coordinate of the backgroundPosition property.
Syntax
HTML N/A
Scripting object.style.backgroundPositionX [ =iPositionX ]
Possible Values
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD,
Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG,
style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
backgroundPositionY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
backgroundPositionX Prope... background-repe
Web Workshop | DHTML, HTML & CSS
backgroundPositionY Property
Sets or retrieves the y-coordinate of the backgroundPosition property.
Syntax
HTML N/A
Scripting object.style.backgroundPositionY [ =iPositionY ]
Possible Values
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, currentStyle, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD,
Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG,
style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
backgroundPositionX
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
background-repeat Attribu... BEHAVIOR Attribu
Web Workshop | DHTML, HTML & CSS
BALANCE Attribute | balance Property
Retrieves the value indicating how the volume of the background sound is divided between
the left and right speakers.
Syntax
Possible Values
iBalance Integer that specifies a value within the -10,000 to +10,000 range. A -10,000 value indicates that all sound is directed to the left speaker.
A +10,000 value indicates that all sound is directed to the right speaker. A 0 value indicates that the sound is balanced between the left
and right speakers.
Applies To
BGSOUND
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BALANCE Attribute | balan... behavior Attribute
Web Workshop | DHTML, HTML & CSS
BEHAVIOR Attribute | behavior Property
Sets or retrieves how the text scrolls in the marquee.
Syntax
Possible Values
This example moves a piece of text down the page using a MARQUEE object.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
MARQUEE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
behavior Attribute | beha... BGCOLOR Attribute
Web Workshop | DHTML, HTML & CSS
BGCOLOR Attribute | bgColor Property
Sets or retrieves the background color behind the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
See Also
bgColor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BGCOLOR Attribute border Attribute | border...
Web Workshop | DHTML, HTML & CSS
BGPROPERTIES Attribute | bgProperties Property
Sets or retrieves the properties of the background picture.
Syntax
Possible Values
The property, for example, specifies whether the picture is a fixed watermark or scrolls
with the page. This attribute/property is supported only by Internet Explorer.
Example
Applies To
BODY
See Also
background
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border Attribute | border... BORDER Attribute |
Web Workshop | DHTML, HTML & CSS
BORDER Attribute | border Property
Sets or retrieves the space between the frames, including the 3-D border.
Syntax
Possible Values
iSpace Integer that specifies the number of pixels to reserve as space between frames.
The border can be set only on an outermost FRAMESET tag. Setting a border for an
inner FRAMESET is ignored, even if a border is not defined on the outermost
FRAMESET.
Applies To
FRAMESET
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BORDER Attribute | border... border-bottom Att
Web Workshop | DHTML, HTML & CSS
BORDER Attribute | border Property
Sets or retrieves the width of the border to be drawn around the object.
Syntax
Possible Values
iBorder Integer that specifies the number of pixels in the object's border.
Applies To
IMG, TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-color Attribute | ... borderColorDark Pro
Web Workshop | DHTML, HTML & CSS
BORDERCOLOR Attribute | borderColor Property
Sets or retrieves the border color of the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
To render the color specified by sColor, the BORDER attribute must be set to an integer
greater than 0.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BORDERCOLOR Attribute | b... borderColorLigh
Web Workshop | DHTML, HTML & CSS
borderColorDark Property
Sets or retrieves the color for one of the two colors used to draw the 3-D border of the
object.
Syntax
HTML N/A
Scripting object.borderColorDark [ =sColor ]
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is the opposite of borderColorLight and must be used with the border
property corresponding to the BORDER attribute. This property does not affect the
cascading style sheets (CSS) border composite properties.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
borderColorDark Property border-left Attribute
Web Workshop | DHTML, HTML & CSS
borderColorLight Property
Sets or retrieves the color for one of the two colors used to draw the 3-D border of the
object.
Syntax
HTML N/A
Scripting object.borderColorLight [ =sColor ]
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The property is the opposite of borderColorDark and must be used with the border
property corresponding to the BORDER attribute. This property does not affect the
cascading style sheets (CSS) border composite properties.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
border-width Attribute | ... bottom Attribute | b
Web Workshop | DHTML, HTML & CSS
bottom Property
Retrieves the bottom coordinate of the rectangle surrounding the object content.
Syntax
HTML N/A
Scripting [ iCoord = ] oTextRectangle.bottom
Possible Values
iCoord Integer that specifies the bottom coordinate of the rectangle, in pixels.
Remarks
This syntax shows how to access the bottom coordinate of the second text rectangle of
a TextRange object.
oRct = oTextRange.getClientRects();
oRct[1].bottom;
Note that the collection index starts at 0, so the second item index is 1.
This syntax shows how to access the bottom coordinate of the bounding rectangle of
an element object.
oBndRct = oElement.getBoundingClientRect();
oBndRct.bottom;
Example
<SCRIPT>
function getCoords(oObject) {
oBndRct=oObject.getBoundingClientRect();
alert("Bounding rectangle = \nUpper left coordinates: "
+ oBndRct.left + " " + oBndRct.top +
"\nLower right coordinates: "
+ oBndRct.right + " " + oBndRct.bottom);
}
</SCRIPT>
</HEAD>
<BODY>
<P ID=oPara onclick="getCoords(this)">
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
TextRectangle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bottom Attribute | bottom... boundingHeight Pr
Web Workshop | DHTML, HTML & CSS
BOTTOMMARGIN Attribute | bottomMargin Property
Sets or retrieves the bottom margin of the entire body of the page.
Syntax
Possible Values
sPixels String that specifies the number of pixels for the bottom margin.
If the value is set to "", the bottom margin is set exactly on the bottom edge. The
value specified overrides the default margin.
Applies To
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BOTTOMMARGIN Attribute | ... boundingLeft Pr
Web Workshop | DHTML, HTML & CSS
boundingHeight Property
Retrieves the height of the rectangle that bounds the TextRange object.
Syntax
HTML N/A
Scripting [ iHeight = ] TextRange.boundingHeight
Possible Values
iHeight Integer that specifies the height of the bounding rectangle, in pixels.
Example
This example retrieves the value of the boundingHeight property for the given text
area.
<SCRIPT>
function boundDim(oObject)
{
var collTextarea = document.all.tags("TEXTAREA");
if (collTextarea != null) {
var oTextRange = oObject.createTextRange();
if (oTextRange != null) {
alert("The bounding height is \n" +
oTextRange.boundingHeight);
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oElmnt1
onclick="boundDim(this)"> . . . </TEXTAREA>
This feature requires Microsoft® Internet Explorer 4.01 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting TextRange
See Also
boundingLeft, boundingTop, boundingWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
boundingHeight Property boundingTop Property
Web Workshop | DHTML, HTML & CSS
boundingLeft Property
Retrieves the distance between the left edge of the rectangle that bounds the TextRange
object and the left side of the object that contains the TextRange.
Syntax
HTML N/A
Scripting [ iLeft = ] TextRange.boundingLeft
Possible Values
iLeft Integer that specifies the left coordinate of the bounding rectangle, in pixels.
Example
This example retrieves the value of the boundingLeft property for the given text
area.
<SCRIPT>
function boundDim(oObject)
{
var collTextarea = document.all.tags("TEXTAREA");
if (collTextarea != null) {
var oTextRage = oObject.createTextRange();
if (oTextRange != null) {
alert("The bounding left is \n" +
oTextRange.boundingLeft);
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oTextarea
onclick="boundDim(this)"> . . . </TEXTAREA>
This feature requires Microsoft® Internet Explorer 4.01 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting TextRange
See Also
boundingHeight, boundingTop, boundingWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
boundingLeft Property boundingWidth Property
Web Workshop | DHTML, HTML & CSS
boundingTop Property
Retrieves the distance between the top edge of the rectangle that bounds the TextRange
object and the top side of the object that contains the TextRange.
Syntax
HTML N/A
Scripting [ iTop = ] TextRange.boundingTop
Possible Values
iTop Integer that specifies the top coordinate of the bounding rectangle, in pixels.
Example
This example retrieves the value of the boundingTop property for the given text area.
<SCRIPT>
function boundDim(oObject)
{
var collTextarea = document.all.tags("TEXTAREA");
if (collTextarea != null) {
var oTextRange = oObject.createTextRange();
if (oTextRange != null) {
alert("The bounding top is \n" +
oTextRange.boundingTop);
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oTextarea
onclick="boundDim(this)"> . . . </TEXTAREA>
This feature requires Microsoft® Internet Explorer 4.01 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting TextRange
See Also
boundingHeight, boundingLeft, boundingWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
boundingTop Property browserLanguage Proper
Web Workshop | DHTML, HTML & CSS
boundingWidth Property
Retrieves the width of the rectangle that bounds the TextRange object.
Syntax
HTML N/A
Scripting [ iWidth = ] TextRange.boundingWidth
Possible Values
iWidth Integer that specifies the width of the bounding rectangle, in pixels.
Example
This example retrieves the value of the boundingWidth property for the given text
area.
<SCRIPT>
function boundDim(oObject)
{
var collTextarea = document.all.tags("TEXTAREA");
if (collTextarea != null) {
var oTextRange = oObject.createTextRange();
if (oTextRange != null) {
alert("The bounding width is \n" +
oTextRange.boundingWidth);
}
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oTextarea
onclick="boundDim(this)"> . . . </TEXTAREA>
This feature requires Microsoft® Internet Explorer 4.01 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting TextRange
See Also
boundingHeight, boundingLeft, boundingTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
boundingWidth Property bufferDepth Property
Web Workshop | DHTML, HTML & CSS
browserLanguage Property
Retrieves the current browser language.
Syntax
HTML N/A
Scripting [ sLanguage= ] navigator.browserLanguage
Possible Values
sLanguage String that specifies one of the values in the Language Codes.
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
browserLanguage Property button Property D
Web Workshop | DHTML, HTML & CSS
bufferDepth Property
Sets or retrieves the number of bits per pixel used for colors in the off-screen bitmap
buffer.
Syntax
HTML N/A
Scripting screen.bufferDepth [ =iBitsPerPixel ]
Possible Values
When bufferDepth is -1 and the user changes system settings that affect the screen
depth, the buffer depth is automatically updated to the new depth. This is not the case
if bufferDepth is set to a specific value.
Applies To
HTML N/A
Scripting screen
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bufferDepth Property cancelBubble Property D
Web Workshop | DHTML, HTML & CSS
button Property
Retrieves the mouse button pressed by the user.
Syntax
HTML N/A
Scripting [ iWhichButton= ] event.button
Possible Values
Remarks
This property is used with the onmousedown, onmouseup, and onmousemove events.
For other events, it defaults to 0 regardless of the state of the mouse buttons.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
button Property canHaveChildren Property DH
Web Workshop | DHTML, HTML & CSS
cancelBubble Property
Sets or retrieves whether the current event should bubble up the hierarchy of event
handlers.
Syntax
HTML N/A
Scripting event.cancelBubble [ = bCancel ]
Possible Values
Using this property to cancel bubbling for an event does not affect subsequent events.
Example
This example cancels bubbling of the onclick event if it occurs in the IMG object when
the user presses the SHIFT key. This prevents the event from bubbling up to the
onclick event handler for the document.
<SCRIPT LANGUAGE="JScript">
function checkCancel()
{
if (window.event.shiftKey)
window.event.cancelBubble = true;
}
function showSrc()
{
if (window.event.srcElement.tagName == "IMG")
alert(window.event.srcElement.src);
}
</SCRIPT>
<BODY onclick="showSrc()">
<IMG onclick="checkCancel()" SRC="sample.gif">
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cancelBubble Property caption Property DHTM
Web Workshop | DHTML, HTML & CSS
canHaveChildren Property
Retrieves a value indicating whether the object can contain children.
Syntax
HTML N/A
Scripting [ bChildren = ] object.canHaveChildren
Possible Values
bChildren Boolean that specifies whether the object can be a parent to child objects.
Remarks
Objects do not have to contain children for the canHaveChildren property to return
true. This property is useful in determining whether objects can be appended as
children.
Example
This example uses the canHaveChildren property to add a new object to the first
element in a Web page that can contain children.
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
canHaveChildren Property cellIndex Property
Web Workshop | DHTML, HTML & CSS
caption Property
Retrieves the CAPTION object of the TABLE.
Syntax
HTML N/A
Scripting [ oCaption = ] table.caption
Possible Values
oCaption Object that specifies the table caption, or the following value:
null No caption exists for the table.
Example
This example sets the inline style for the caption property.
document.all.myTable.caption.style.color = "blue"
Applies To
table
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cellIndex Property CELLSPACING Attribute | c..
Web Workshop | DHTML, HTML & CSS
CELLPADDING Attribute | cellPadding Property
Sets or retrieves the amount of space between the border of the cell and the content of
the cell.
Syntax
Possible Values
TABLE
See Also
cellSpacing
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CELLPADDING Attribute | c... CHECKED Attribu
Web Workshop | DHTML, HTML & CSS
CELLSPACING Attribute | cellSpacing Property
Sets or retrieves the amount of space between cells in a table.
Syntax
Possible Values
This example uses the CELLSPACING attribute and the cellSpacing property to
change the spacing between two cells.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TABLE
See Also
cellPadding
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CHECKED Attribute | check... CLASS Attribute
Web Workshop | DHTML, HTML & CSS
CLASSID Attribute | classid Property
Retrieves the class identifier for the object.
Syntax
Possible Values
sID String that specifies the class identifier for the object. The format is "clsid:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" for registered
Microsoft ActiveX Controls.
Applies To
OBJECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLASSID Attribute | class... clear Attribute | cle
Web Workshop | DHTML, HTML & CSS
CLASS Attribute | className Property
Sets or retrieves the class of the object.
Syntax
Possible Values
The class is typically used to associate a particular style rule in a style sheet with the
element.
When multiple styles are specified for an element, a conflict could develop if two or
more styles define the same attribute differently. In this case, you can resolve the
conflict by applying styles to the element in the following order, according to the CSS
selector used to define the style.
1. Element
2. CLASS
3. ID
4. Inline styles
When two or more selectors pertain to an element, a style defined later takes
precedence over a style defined earlier. For more information, see cascading style
sheets .
I
Example
This example uses the className attribute to apply one or more styles to an HTML
element.
<HEAD>
<STYLE TYPE="text/css">
P {font-size: 24pt;}
.redText {color: red;}
.blueText {color: blue;}
.italicText {font-style: italic;}
</STYLE>
</HEAD>
<BODY>
<P>
Large text, no class specified, one implied.
</P>
<P CLASS="redText">
Large text, .redText class specified.
</P>
<P CLASS="blueText italicText">
Large text, .blueText and .italicText classes specified.
</P>
</BODY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clear Attribute | clear P... clientHeight Property
Web Workshop | DHTML, HTML & CSS
CLEAR Attribute | clear Property
Sets or retrieves the side on which floating objects are not to be positioned when a line
break is inserted into the document.
Syntax
Possible Values
BR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLEAR Attribute | clear P... clientLeft Property
Web Workshop | DHTML, HTML & CSS
clientHeight Property
Retrieves the height of the object without taking into account any margin, border, scroll
bar, or padding that might have been applied to the object.
Syntax
HTML N/A
Scripting [ iHeight = ] object.clientHeight
Possible Values
Example
This example shows how the clientHeight property and the offsetHeight property
measure document height differently.
Note The height of the DIV is set to 100, and this is the value retrieved by the
offsetHeight property, not the clientHeight property.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientHeight Property clientTop Property DHTM
Web Workshop | DHTML, HTML & CSS
clientLeft Property
Retrieves the distance between the offsetLeft property and the true left side of the client
area.
Syntax
HTML N/A
Scripting [ iDistance= ] object.clientLeft
Possible Values
Remarks
The difference between the offsetLeft and clientLeft properties is the border of the
object.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientLeft Property clientWidth Property DHTM
Web Workshop | DHTML, HTML & CSS
clientTop Property
Retrieves the distance between the offsetTop property and the true top of the client area.
Syntax
HTML N/A
Scripting [ iDistance= ] object.clientTop
Possible Values
Remarks
The difference between the offsetTop and the clientTop properties is the border area
of the object.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientTop Property clientX Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
clientWidth Property
Retrieves the width of the object without taking into account any margin, border, scroll bar,
or padding that might have been applied to the object.
Syntax
HTML N/A
Scripting [ iWidth = ] object.clientWidth
Possible Values
Example
This example shows how the clientWidth property and the offsetWidth property
measure document width differently.
Note The width of the DIV is set to 200, and this is the value retrieved by the
offsetWidth property, not the clientWidth property.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientWidth Property clientY Property DHTML
Web Workshop | DHTML, HTML & CSS
clientX Property
Retrieves the x-coordinate of the mouse pointer's position relative to the client area of the
window, excluding window decorations and scroll bars.
Syntax
HTML N/A
Scripting [ iXPos = ] event.clientX
Possible Values
Remarks
Since the clientX property returns a value relative to the client, you can add the value
of the scrollLeft property to determine the distance from the edge of the BODY
element.
Example
This example uses the clientX property to determine the mouse position relative to
the window. The status window shows the mouse position at all times.
<SCRIPT>
function clientCoords()
{
var offsetInfo = ""
clientInfo = "The x coordinate is: " + window.event.clientX
+ "\r"
clientInfo += "The y coordinate is: " + window.event.clientY
+ "\r"
alert(clientInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + window.event.clientX +
' Y=' + window.event.clientY"
ondblclick="clientCoords()">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientX Property clip Attribute | clip Pro... DHT
Web Workshop | DHTML, HTML & CSS
clientY Property
Retrieves the y-coordinate of the mouse pointer's position relative to the client area of the
window, excluding window decorations and scroll bars.
Syntax
HTML N/A
Scripting [ iYPos = ] event.clientY
Possible Values
Remarks
Since the clientY property returns a value relative to the client, you can add the value
of the scrollTop property to determine the distance from the edge of the BODY
element.
Example
This example uses the clientY property to determine the mouse position relative to
the window. The status window shows the mouse position at all times.
<SCRIPT>
function clientCoords()
{
var offsetInfo = ""
clientInfo = "The x coordinate is: " + window.event.clientX
+ "\r"
clientInfo += "The y coordinate is: " + window.event.clientY
+ "\r"
alert(clientInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + this.clientX + ' Y=' +
this.clientY"
ondblclick="clientCoords()">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clip Attribute | clip Pro... clipLeft Property DH
Web Workshop | DHTML, HTML & CSS
clipBottom Property
Retrieves the bottom coordinate of the object clipping region.
Syntax
HTML N/A
Scripting [ sBottom = ] currentStyle.clipBottom
Possible Values
Example
This example reads the clipBottom property from the currentStyle object of an image.
<SCRIPT>
function setClip(sOptionValue) {
oImage.style.clip="rect(0,100,"+sOptionValue+",0)";
if (oImage.currentStyle.clipBottom == "60px") {
alert("The image has been clipped to 60px.");
}
:
}
</SCRIPT>
:
<IMG ID=oImage SRC="/workshop/graphics/sphere.jpg">
:
Pick an amount to clip the bottom:
// the option value is sent as an argument:
<SELECT onchange="setClip(value)">
<OPTION VALUE=100>reset </OPTION>
<OPTION VALUE=40>40px </OPTION>
<OPTION VALUE=50>50px </OPTION>
<OPTION VALUE=60>60px </OPTION>
</SELECT>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
currentStyle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clipBottom Property clipRight Property DHTML
Web Workshop | DHTML, HTML & CSS
clipLeft Property
Retrieves the left coordinate of the object clipping region.
Syntax
HTML N/A
Scripting [ sLeft = ] currentStyle.clipLeft
Possible Values
Example
This example demonstrates how to read the clipLeft property from the currentStyle
object of an image.
<SCRIPT>
function setClip(sOptionValue) {
oImage.style.clip="rect(0,100,100,"+sOptionValue+")";
if (oImage.currentStyle.clipLeft == "60px") {
alert("The image has been clipped to 60px.");
}
:
}
</SCRIPT>
:
<IMG ID=oImage SRC="/workshop/graphics/sphere.jpg">
:
Pick an amount to clip the left:
// the option value is sent as an argument:
<SELECT onchange="setClip(value)">
<OPTION VALUE=100>reset </OPTION>
<OPTION VALUE=40>40px </OPTION>
<OPTION VALUE=50>50px </OPTION>
<OPTION VALUE=60>60px </OPTION>
</SELECT>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
currentStyle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clipLeft Property clipTop Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
clipRight Property
Retrieves the right coordinate of the object clipping region.
Syntax
HTML N/A
Scripting [ sRight = ] currentStyle.clipRight
Possible Values
Example
This example demonstrates how to read the clipRight property from the currentStyle
object of an image.
<SCRIPT>
function setClip(sOptionValue) {
oImage.style.clip="rect(0,"+sOptionValue+",100,0)";
if (oElmnt1.currentStyle.clipRight == "60px") {
alert("The image has been clipped to 60px.");
}
:
}
</SCRIPT>
:
<IMG ID=oImage SRC="/workshop/graphics/sphere.jpg">
:
Pick an amount to clip the right:
// the option value is sent as an argument:
<SELECT onchange="setClip(value)">
<OPTION VALUE=100>reset </OPTION>
<OPTION VALUE=40>40px </OPTION>
<OPTION VALUE=50>50px </OPTION>
<OPTION VALUE=60>60px </OPTION>
</SELECT>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
currentStyle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clipRight Property closed Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
clipTop Property
Retrieves the top coordinate of the object clipping region.
Syntax
HTML N/A
Scripting [ sTop = ] currentStyle.clipTop
Possible Values
Example
This example demonstrates how to read the clipTop property from the currentStyle
object of an image.
<SCRIPT>
function setClip(sOptionValue) {
oImage.style.clip="rect("+sOptionValue+",100,100,0)";
if (oImage.currentStyle.clipTop == "60px") {
alert("The image has been clipped to 60px.");
}
:
}
</SCRIPT>
:
<IMG ID=oImage SRC="/workshop/graphics/sphere.jpg">
:
Pick an amount to clip the top:
// the option value is sent as an argument:
<SELECT onchange="setClip(value)">
<OPTION VALUE=100>reset </OPTION>
<OPTION VALUE=40>40px </OPTION>
<OPTION VALUE=50>50px </OPTION>
<OPTION VALUE=60>60px </OPTION>
</SELECT>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
currentStyle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clipTop Property CODE Attribute | code Pro...
Web Workshop | DHTML, HTML & CSS
closed Property
Retrieves whether the referenced window is closed.
Syntax
HTML N/A
Scripting [ bClosed= ] window.closed
Possible Values
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
closed Property CODEBASE Attribute | code...
Web Workshop | DHTML, HTML & CSS
CODE Attribute | code Property
Sets or retrieves the URL of the file containing the compiled Java class.
Syntax
Possible Values
Applies To
OBJECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CODE Attribute | code Pro... CODETYPE Attribu
Web Workshop | DHTML, HTML & CSS
CODEBASE Attribute | codeBase Property
Sets or retrieves the URL of the component.
Syntax
Possible Values
sLocation String that represents the URL of the component, which can be appended with:
#Version=a,b,c,d Version of the component, where a,b,c,d are as indicated below. If the client computer has a
newer version installed, no download occurs.
a High-order word of the major version of the component
available at the specified URL.
b Low-order word of the major version of the component
available at the specified URL.
c High-order word of the minor version of the component
available at the specified URL.
d Low-order word of the minor version of the component
available at the specified URL.
Remarks
Example
This example uses the CODEBASE attribute to specify the download location of the
Common Dialog control.
CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab
#Version=1,0,0,0">
</OBJECT>
Applies To
APPLET, OBJECT
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CODEBASE Attribute | code... COLOR Attribute
Web Workshop | DHTML, HTML & CSS
CODETYPE Attribute | codeType Property
Sets or retrieves the Internet media type for the code associated with the object.
Syntax
Possible Values
Applies To
OBJECT
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CODETYPE Attribute | code... color Attribute | c
Web Workshop | DHTML, HTML & CSS
COLOR Attribute | color Property
Sets or retrieves the color to be used by the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize red-
green-blue (RGB) color values and display them correctly.
Applies To
BASEFONT, FONT, HR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
color Attribute | color P... COLS Attribute | cols
Web Workshop | DHTML, HTML & CSS
colorDepth Property
Retrieves the number of bits per pixel used for colors on the destination device or buffer.
Syntax
HTML N/A
Scripting [ iBitsPerPixel=] screen.colorDepth
Possible Values
Remarks
Retrieving the value of the property through script enables you to select an appropriate
color to return to the browser.
If bufferDepth is 0 or -1, colorDepth is equal to the bits-per-pixel value for the screen
or printer. If bufferDepth is nonzero, colorDepth is equal to bufferDepth.
Applies To
screen
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
colorDepth Property COLS Attribute | cols Pro..
Web Workshop | DHTML, HTML & CSS
COLS Attribute | cols Property
Retrieves the width of the object.
Syntax
Possible Values
iCount Integer that specifies the number of characters used to determine the width of the object.
Applies To
TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLS Attribute | cols Pro... COLS Attribute | co
Web Workshop | DHTML, HTML & CSS
COLS Attribute | cols Property
Sets or retrieves the number of columns in the table.
Syntax
Possible Values
Example
This example uses the COLS attribute and the cols property to set the number of
columns in HTML and retrieve the number of columns in script.
<SCRIPT>
function checkCols(oObject)
{
var iColumns = oObject.cols;
alert (iColumns);
}
</SCRIPT>
</HEAD>
<BODY>
<TABLE ID=oTable BORDER COLS=3 onclick="checkCols(this)">
<TR><TD>Column 1</TD><TD>Column 2</TD><TD>Column 3</TD></TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLS Attribute | cols Pro... COLSPAN Attribute
Web Workshop | DHTML, HTML & CSS
COLS Attribute | cols Property
Sets or retrieves the frame widths of the object.
Syntax
Possible Values
sWidth String that specifies one or more of the following comma-delimited values:
width Integer that specifies the frame width, in pixels.
percentage Integer, followed by a %. The value is a percentage of total available width.
width* Integer that specifies the frame width as a relative value. After allocating pixel or percentage values,
the remaining space is divided among all relative-sized frames.
Example
This example defines a two-column frame, with the first occupying 40 percent of the
available width and the second occupying the remaining 60 percent.
This example defines a four-column frame. The first is 50 pixels wide, and the fourth is
80 pixels wide. The second occupies two-thirds of the remaining width, while the third
occupies the final third of the remaining width.
Applies To
FRAMESET
See Also
rows
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLS Attribute | cols Pro... COMPACT Attribute
Web Workshop | DHTML, HTML & CSS
COLSPAN Attribute | colSpan Property
Sets or retrieves the number columns in the TABLE that the object should span.
Syntax
Possible Values
This property can be changed only after the page has been loaded.
Applies To
TD, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLSPAN Attribute | colSp... complete Property
Web Workshop | DHTML, HTML & CSS
COMPACT Attribute | compact Property
Sets or retrieves whether the list should be compacted to remove extra space between list
objects.
Syntax
Possible Values
DL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COMPACT Attribute | compa... CONTENT Attrib
Web Workshop | DHTML, HTML & CSS
complete Property
Retrieves whether the object is fully loaded.
Syntax
HTML N/A
Scripting [ bComplete= ] object.complete
Possible Values
Applies To
HTML N/A
Scripting IMG, INPUT type=image
See Also
onreadystatechange, readyState
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
complete Property cookie Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
CONTENT Attribute | content Property
Sets or retrieves meta-information to be associated with HTTP-EQUIV or NAME.
Syntax
Possible Values
This example causes the browser to reload the document every two seconds.
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; CHARSET=Windows-1251">
Applies To
META
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CONTENT Attribute | conte... cookieEnabled Pro
Web Workshop | DHTML, HTML & CSS
cookie Property
Sets or retrieves the string value of a cookie.
Syntax
HTML N/A
Scripting document.cookie [ = sCookie ]
Possible Values
sCookie String that specifies the name=value; pair(s), plus any of the following values:
expires=date; Setting no expiration date on a cookie causes it to expire when the browser closes. If you
set an expiration date in the future, the cookie is saved across browser sessions. If you
set an expiration date in the past, the cookie is deleted. Use GMT format to specify the
date.
domain=domainname; Setting the domain of the cookie allows pages on a domain made up of more than one
server to share cookie information.
path=path; Setting a path for the cookie allows the current document to share cookie information
with other pages within the same domain—that is, if the path is set to /thispathname, all
pages in /thispathname and all pages in subfolders of /thispathname can access the same
cookie information.
secure; Setting a cookie as secure means the stored cookie information can be accessed only
from a secure environment.
A cookie is a small piece of information stored by the browser. Each cookie is stored in
a name=value; pair called a crumb—that is, if the cookie name is "id" and you want to
save the id's value as "this", the cookie would be saved as id=this. You can store up to
20 name=value pairs in the cookie, and the cookie is always returned as a string of all
the cookies that apply to the page. This means that you must parse the string returned
to find the values of individual cookies.
You can use the Microsoft® JScript® (compatible with ECMA 262 language
specification) split method to extract a value stored in a cookie.
I
Example
This example creates a cookie with a specified name and value. The value is passed to
the JScript escape function to ensure that the value only contains valid characters.
When the cookie is retrieved, the JScript unescape function should be used to
translate the value back to its original form.
<SCRIPT>
// Create a cookie with the specified name and value.
// The cookie expires at the end of the 20th century.
function SetCookie(sName, sValue)
{
document.cookie = sName + "=" + escape(sValue) + ";
expires=Mon, 31 Dec 1999 23:59:59 UTC;";
}
</SCRIPT>
This example retrieves the value of the portion of the cookie specified by the sCookie
parameter.
<SCRIPT>
// Retrieve the value of the cookie with the specified name.
function GetCookie(sName)
{
// cookies are separated by semicolons
var aCookie = document.cookie.split("; ");
for (var i=0; i < aCookie.length; i++)
{
// a name/value pair (a crumb) is separated by an equal sign
var aCrumb = aCookie[i].split("=");
if (sName == aCrumb[0])
return unescape(aCrumb[1]);
}
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cookie Property COORDS Attribute | coords...
Web Workshop | DHTML, HTML & CSS
cookieEnabled Property
Retrieves whether client-side cookies are enabled in the browser.
Syntax
HTML N/A
Scripting [ bEnabled= ] navigator.cookieEnabled
Possible Values
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COORDS Attribute | coords... cssText Property
Web Workshop | DHTML, HTML & CSS
cpuClass Property
Retrieves a string denoting the CPU class.
Syntax
HTML N/A
Scripting [ sCPU= ] navigator.cpuClass
Possible Values
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cpuClass Property ctrlKey Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
cssText Property
Sets or retrieves the persisted representation of the style rule.
Syntax
HTML N/A
Scripting object.style.cssText [ = sTxt ]
Possible Values
This example uses the cssText property to retrieve the cascading style sheets (CSS)
style set on an object.
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
runtimeStyle, style
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cssText Property cursor Attibute | cursor ... D
Web Workshop | DHTML, HTML & CSS
ctrlKey Property
Retrieves the state of the CTRL key.
Syntax
HTML N/A
Scripting [ bEvent = ] event.ctrlKey
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cursor Attribute | cursor... data Property DHT
Web Workshop | DHTML, HTML & CSS
DATA Attribute | data Property
Retrieves the URL that references the data of the object.
Syntax
Possible Values
Applies To
OBJECT
See Also
type
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DATA Attribute | data Pro... DATAFLD Attribute
Web Workshop | DHTML, HTML & CSS
data Property
Sets or retrieves the value of a TextNode object.
Syntax
HTML N/A
Scripting object.data [ = sData ]
Possible Values
This example uses the data property to change the value of a text node.
<SCRIPT>
function fnChangeValue(){
var oNode = oList.firstChild.childNodes(0);
var oNewText = document.createTextNode();
oNewText.data="Create Data";
oNode.replaceNode(oNewText);
oNode.data = "New Node Value";
}
</SCRIPT>
Applies To
TextNode
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
data Property dataFld Property DHTML Proper
Web Workshop | DHTML, HTML & CSS
DATAFLD Attribute | dataFld Property
Sets or retrieves which field of a given data source, as specified by the dataSrc property,
to bind to the specified object.
Syntax
Possible Values
In this example, a text box is bound to the flavor field supplied by a data source object
with an ID of ice_cream. Because the text box is contained within a table, the text box
is repeated and all values in the flavor column are displayed.
<TABLE DATASRC="#ice_cream">
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD=flavor></TD></TR>
</TABLE>
In this example, the SELECT object is bound to the card_type column of a data source
control with an ID of order. The value of the field in the data set determines the
option that is initially selected. In addition, when the user selects a different option
from the SELECT, the value of the card_type field in the current record of the data
set is updated.
Applies To
A, APPLET, BODY, BUTTON, DIV, FRAME, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, LABEL, MARQUEE, OBJECT,
PARAM, SELECT, SPAN, TEXTAREA
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DATAFLD Attribute | dataF... DATAFORMATAS A
Web Workshop | DHTML, HTML & CSS
dataFld Property
Retrieves the data column affected by the oncellchange event.
Syntax
HTML N/A
Scripting [ sdataFld = ] event.dataFld
Possible Values
Applies To
event
See Also
data bindingI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dataFld Property DATAPAGESIZE Attribute | ...
Web Workshop | DHTML, HTML & CSS
DATAFORMATAS Attribute | dataFormatAs Property
Sets or retrieves how to render the data supplied to the object.
Syntax
Possible Values
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DATAFORMATAS Attribute | ... DATASRC Attribu
Web Workshop | DHTML, HTML & CSS
DATAPAGESIZE Attribute | dataPageSize Property
Sets or retrieves the number of records displayed in a table bound to a data source.
Syntax
Possible Values
Use the nextPage and previousPage methods to display the subsequent and previous
pages of records in the table.
Example
In this example, a text box is bound to the customer_name field supplied by a data
source object with an ID of customer. Because the text box is located within a data-
bound TABLE, the text box is repeated to display each of the records in the data
source. The DATAPAGESIZE attribute on the TABLE limits the display to 10 records.
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DATAPAGESIZE Attribute | ... defaultCharset Pr
Web Workshop | DHTML, HTML & CSS
DATASRC Attribute | dataSrc Property
Sets or retrieves the source of the data for data binding.
Syntax
Possible Values
Tabular and single-valued data consumers use the dataSrc property to specify a
binding. The property takes a string that corresponds to the unique identifier of a data
source object (DSO) on the page. The string must be prefixed by a hash (#) mark.
When the dataSrc property is applied to a tabular data consumer the entire data set is
repeated by the consuming elements.
Example
In this example, a text box is bound to the customer_name field of a data source
object with an ID of "customer". Because the text box is located within a data-bound
TABLE, the text box is repeated to display each of the records provided by the data
source.
<TABLE DATASRC="#customer">
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"><TD><TR>
</TABLE>
Applies To
A, APPLET, BODY, BUTTON, DIV, FRAME, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, LABEL, MARQUEE, OBJECT,
PARAM, SELECT, SPAN, TABLE, TEXTAREA
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DATASRC Attribute | dataS... defaultChecked P
Web Workshop | DHTML, HTML & CSS
defaultCharset Property
Sets or retrieves the default character set of the document.
Syntax
HTML N/A
Scripting object.defaultCharset [ =sCharset ]
Possible Values
HTML N/A
Scripting META, document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
defaultCharset Property defaultSelected Proper
Web Workshop | DHTML, HTML & CSS
defaultChecked Property
Sets or retrieves the state of the check box or radio button.
Syntax
HTML N/A
Scripting input.defaultChecked [ =bChecked ]
Possible Values
The property can be changed programmatically, but doing so has no effect on the
appearance of the check box or radio button or on how forms are submitted.
Applies To
See Also
checked
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
defaultChecked Property defaultStatus Property
Web Workshop | DHTML, HTML & CSS
defaultSelected Property
Sets or retrieves the status of the option.
Syntax
HTML N/A
Scripting option.defaultSelected [ =bSelected ]
Possible Values
The property can be changed programmatically, but doing so has no effect on the
appearance of the option or the submitted value. The property does change the
appearance of the selected option if the form is reset.
Applies To
HTML N/A
Scripting OPTION
See Also
selected
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
defaultSelected Property defaultValue Property
Web Workshop | DHTML, HTML & CSS
defaultStatus Property
Sets or retrieves the default message displayed in the status bar at the bottom of the
window.
Syntax
HTML N/A
Scripting window.defaultStatus [ =sMessage ]
Possible Values
sMessage String that specifies the message for the status bar.
Do not confuse defaultStatus with status. The status property reflects a priority or
transient message in the status bar, such as the message that appears when an
onmouseover event occurs over an anchor.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
defaultStatus Property DEFER Attribute | defer
Web Workshop | DHTML, HTML & CSS
defaultValue Property
Sets or retrieves the initial contents of the object.
Syntax
HTML N/A
Scripting object.defaultValue [ =sValue ]
Possible Values
The value of the property can be changed programmatically, but doing so has no effect
on the appearance of the object or the submitted value. It does, however, change the
initial value of the object when the form is reset.
Applies To
INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio,
INPUT type=reset, INPUT type=submit, INPUT type=text, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
defaultValue Property designMode Property D
Web Workshop | DHTML, HTML & CSS
DEFER Attribute | defer Property
Sets or retrieves the status of the script.
Syntax
Possible Values
Using the attribute at design time can improve the download performance of a page
because the browser does not need to parse and execute the script and can continue
downloading and parsing the page instead.
Applies To
SCRIPT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DEFER Attribute | defer P... dialogArguments Pr
Web Workshop | DHTML, HTML & CSS
designMode Property
Sets or retrieves whether the document can be edited.
Syntax
HTML N/A
Scripting document.designMode [ =sMode ]
Possible Values
You can use the designMode property to put Internet Explorer into a mode where you
can edit the current document.
While the browser is in design mode, objects enter a UI-activated state when the user
presses the ENTER key or clicks an object that has focus, or when the user double-
clicks the object. Objects that are UI activated have their own window within the
document. You can modify the UI only when the object is in a UI-activated state.
You cannot execute script when the value of the designMode property is set to On.
Applies To
document
See Also
mshtml editing
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DIR Attribute | dir Prope... direction Attribute |
Web Workshop | DHTML, HTML & CSS
DIRECTION Attribute | direction Property
Sets or retrieves the direction in which the text should scroll.
Syntax
Possible Values
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
direction Attribute | dir... disabled Property D
Web Workshop | DHTML, HTML & CSS
DISABLED Attribute | disabled Property
Sets or retrieves the status of a control or style.
Syntax
Possible Values
When a control is disabled it appears dimmed and does not respond to user input.
When a style is disabled, all of the rules no longer render.
The disabled property applies to the STYLE object, not the style property.
Example
This example uses the disabled property to enable or disable a STYLE object and a
control.
Applies To
APPLET, BUTTON, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio,
INPUT type=reset, INPUT type=submit, INPUT type=text, LINK, SELECT, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DISABLED Attribute | disa... display Attribute |
Web Workshop | DHTML, HTML & CSS
disabled Property
Sets or retrieves whether a style sheet is applied to an object.
Syntax
HTML N/A
Scripting styleSheet.disabled [ = bDisabled ]
Possible Values
The value of this property can also change per media-dependent style sheets.
Example
This example uses the disabled property to indicate whether a style sheet is applied
to the BODY element.
Applies To
styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
display Attribute | displ... domain Property D
Web Workshop | DHTML, HTML & CSS
documentElement Property
Retrieves a reference to the root node of the document.
Syntax
HTML N/A
Scripting [ oElement = ] document.documentElement
Possible Values
Remarks
Example
<SCRIPT>
function fnGetHTML(){
var sData = document.documentElement.innerHTML;
oResults.value=sData;
}
</SCRIPT>
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
documentElement Property dropEffect Property
Web Workshop | DHTML, HTML & CSS
domain Property
Sets or retrieves the security domain of the document.
Syntax
HTML N/A
Scripting document.domain [ =sDomain ]
Possible Values
The property initially returns the host name of the server the page is served from. The
property can be assigned the domain suffix to allow sharing of pages across frames.
For example, a page in one frame from home.microsoft.com and a page from
www.microsoft.com initially would not be able to communicate with each other.
However, by setting the domain property of both pages to the suffix "microsoft.com",
both pages are considered secure and access is available between the pages.
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
domain Property DYNSRC Attribute | dynsrc...
Web Workshop | DHTML, HTML & CSS
dropEffect Property
Sets or retrieves the type of drag-and-drop operation and the cursor to display for the
object.
Syntax
HTML N/A
Scripting event.dataTransfer.dropEffect[ = sCursorStyle ]
Possible Values
The target object can set the dropEffect during the ondragenter, ondragover, and
ondrop events. To display the desired cursor until the final drop, the default action of
the ondragenter, ondragover, and ondrop events must be canceled and the
dropEffect must be set. Otherwise, the copy cursor, move cursor, or link cursor set by
this property displays only until the first valid drop target is intersected, at which point
the cursor is replaced by the drop/no-drop cursor for the duration of the drag
operation.
For dropEffect to work, it must be used with the effectAllowed property of the source
object. The effectAllowed property determines which drag-and-drop operations are
available from the source object for the entire document. The dropEffect property
determines which drag-and-drop operations are allowed for the target object. For
example, the source object might set the effectAllowed property to all drag-and-
drop operations, while the target object specifies that the dropEffect allows only copy
operations. The effectAllowed property must be set in one of the source drag-and-
drop event handlers, such as the ondragstart event.
The recommended technique for dropping text is to add the dropEffect to the
following events: ondragenter, ondragover, and ondrop.
Example
This example uses the dropEffect and effectAllowed properties of the dataTransfer
object to display the move cursor.
Applies To
dataTransfer
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dropEffect Property effectAllowed Property DH
Web Workshop | DHTML, HTML & CSS
DYNSRC Attribute | dynsrc Property
Sets or retrieves the address of a video clip or VRML world to be displayed in the window.
Syntax
Possible Values
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DYNSRC Attribute | dynsrc... ENCTYPE Attribute
Web Workshop | DHTML, HTML & CSS
effectAllowed Property
Sets or retrieves, on the source element, which data transfer operations are allowed for
the object.
Syntax
HTML N/A
Scripting event.dataTransfer.effectAllowed[ = sEffect ]
Possible Values
Set the effectAllowed property in the ondragstart event. This property is used most
effectively with the dropEffect property.
This property can be used to override the default behavior in other applications. For
example, the browser script can set the effectAllowed property to copy for a text
field and thereby override the Microsoft® Word default of move. Within the browser,
copy is the default effectAllowed behavior, except for anchors, which are set to link
by default, and text fields, which are set to move by default.
Setting effectAllowed to none disables dropping but still displays the no-drop cursor.
To avoid displaying the no-drop cursor, cancel the returnValue of the ondragstart
window.
Example
This example uses the dropEffect and effectAllowed properties to move text in a
drag-and-drop operation.
Applies To
dataTransfer
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ENCTYPE Attribute | encod... expando Property
Web Workshop | DHTML, HTML & CSS
EVENT Attribute | event Property
Retrieves the event for which the script is written.
Syntax
Possible Values
sEvent String that specifies the event. The value for an onmouseover event, for example, is "onmouseover()".
Example
This example uses the EVENT attribute and the event property to handle the onclick
event.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
SCRIPT
See Also
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
expando Property fgColor Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
FACE Attribute | face Property
Sets or retrieves the current typeface family.
Syntax
Possible Values
This example sets the typeface family using the FACE attribute and the face property.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BASEFONT, FONT
See Also
font
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FACE Attribute | face Pro... fileCreatedDate Pro
Web Workshop | DHTML, HTML & CSS
fgColor Property
Sets or retrieves the foreground (text) color of the document.
Syntax
HTML N/A
Scripting document.fgColor [ =sColor ]
Possible Values
sColor String that specifies any one of the color names or values in the Color Table.
HTML N/A
Scripting document
See Also
color, text
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fgColor Property fileModifiedDate Property DH
Web Workshop | DHTML, HTML & CSS
fileCreatedDate Property
Retrieves the date the file was created.
Syntax
HTML N/A
Scripting [ sDate = ] object.fileCreatedDate
Possible Values
sDate String that specifies the date the file was created (for example, Monday, December 08, 1997).
Example
This example implements the fileCreatedDate property to count the number of days
since the document was created.
Applies To
document, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fileCreatedDate Property fileSize Property DH
Web Workshop | DHTML, HTML & CSS
fileModifiedDate Property
Retrieves the date the file was last modified.
Syntax
HTML N/A
Scripting [ sDate = ] object.fileModifiedDate
Possible Values
sDate String that specifies the date of the last file modification (for example, Monday, December 08, 1997).
Applies To
document, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fileModifiedDate Property fileUpdatedDate Prop
Web Workshop | DHTML, HTML & CSS
fileSize Property
Retrieves the file size.
Syntax
HTML N/A
Scripting [ iSize = ] object.fileSize
Possible Values
Applies To
document, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fileSize Property filter Attribute | filter... DHTM
Web Workshop | DHTML, HTML & CSS
fileUpdatedDate Property
Retrieves the date the file was last updated.
Syntax
HTML N/A
Scripting [ sDate = ] img.fileUpdatedDate
Possible Values
sDate String that specifies the date of the last update (for example, Monday, December 08, 1997).
Applies To
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
filter Attribute | filter... float Attribute | styleFl.
Web Workshop | DHTML, HTML & CSS
firstChild Property
Retrieves a reference to the first child in the childNodes collection of the object.
Syntax
HTML N/A
Scripting [ oElement = ] object.firstChild
Possible Values
Example
This example implements the firstChild attribute to obtain the first child element of an
object.
<SCRIPT>
var oFirstChild = oList.firstChild;
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
<BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P,
PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD,
TITLE, TR, TT, U, UL, VAR, XMP
See Also
lastChild
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
font-size Attribute | fon... font-style Attribute |
Web Workshop | DHTML, HTML & CSS
fontSmoothingEnabled Property
Retrieves whether the user has enabled font smoothing in the Display control panel.
Syntax
HTML N/A
Scripting [ bEnabled= ] screen.fontSmoothingEnabled
Possible Values
Remarks
Font smoothing can be enabled by checking the Smooth Edges of the Screen Fonts
option in the Display control panel. In Windows® 98 and Windows 2000, this option is
located on the central panel's Effects tab. In Windows NT® 4.0 and Windows 95, this
option is located on the Plus! tab.
Note In Windows 95, the Plus! tab is available only if Microsoft® Plus! is installed.
Applies To
HTML N/A
Scripting screen
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
font-weight Attribute | f... FRAME Attribute | fra
Web Workshop | DHTML, HTML & CSS
form Property
Retrieves a reference to the form that the object is embedded in.
Syntax
HTML N/A
Scripting [ oForm = ] object.form
Possible Values
Remarks
Applies To
BUTTON, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, OBJECT, OPTION, SELECT, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
form Property FRAMEBORDER Attribute | f...
Web Workshop | DHTML, HTML & CSS
FRAME Attribute | frame Property
Sets or retrieves the way the border frame around the table is displayed.
Syntax
Possible Values
This example uses the FRAME attribute to render different border frames.
<TABLE FRAME="above">
<TR><TD>A table with</TD><TD>the value of frame set to "above"
</TD></TR>
<TR><TD>cell</TD><TD>cell</TD></TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TABLE
See Also
rules
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FRAME Attribute | frame P... FRAMESPACING At
Web Workshop | DHTML, HTML & CSS
FRAMEBORDER Attribute | frameBorder Property
Sets or retrieves whether to display a border for the frame.
Syntax
Possible Values
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FRAMEBORDER Attribute | f... fromElement Pro
Web Workshop | DHTML, HTML & CSS
FRAMESPACING Attribute | frameSpacing Property
Sets or retrieves the amount of additional space between the frames.
Syntax
Possible Values
The amount of space defined for frameSpacing does not include the width of the
frame border. Frame spacing can be set on one or more FRAMESET objects and applies
to all contained FRAMESET objects, unless the contained object defines a different
frame spacing.
Applies To
FRAMESET
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
fromElement Property height Property DHTML
Web Workshop | DHTML, HTML & CSS
hash Property
Sets or retrieves the subsection of the href property that follows the hash (#) mark.
Syntax
HTML N/A
Scripting object.hash [ =sHash ]
Possible Values
sHash String that specifies the part of the URL following the hash (#) mark.
Applies To
HTML N/A
Scripting A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
hash Property height Attribute | height... DHT
Web Workshop | DHTML, HTML & CSS
height Property
Retrieves the vertical resolution of the screen.
Syntax
HTML N/A
Scripting [ iHeight = ] screen.height
Possible Values
Applies To
HTML N/A
Scripting screen
See Also
availHeight, width
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HEIGHT Attribute | height... host Property DH
Web Workshop | DHTML, HTML & CSS
hidden Property
Sets or retrieves whether the embedded object is invisible.
Syntax
HTML N/A
Scripting embed.hidden [ =bHidden ]
Possible Values
HTML N/A
Scripting EMBED
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
hidden Property hostname Property DHTML P
Web Workshop | DHTML, HTML & CSS
host Property
Sets or retrieves the hostname and port number of the location or URL.
Syntax
HTML N/A
Scripting object.host [ =sHost ]
Possible Values
sHost String that specifies the host name and port number.
The host property is the concatenation of the hostname and port properties, separated
by a colon (hostname:port). When the port property is null, the host property is the
same as the hostname property.
The host property may be set at any time, although it is safer to set the href property
to change a location. If the specified host cannot be found, an error is returned.
Applies To
HTML N/A
Scripting A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
host Property hover Pseudo-class DHTML Pro
Web Workshop | DHTML, HTML & CSS
hostname Property
Sets or retrieves the host name part of the location or URL.
Syntax
HTML N/A
Scripting object.hostname [ =sHostname ]
Possible Values
sHostname String that specifies the host and domain name, or the numerical IP address.
Applies To
HTML N/A
Scripting A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
hover Pseudo-class HREF Attribute | href Pro...
Web Workshop | DHTML, HTML & CSS
href Property
Sets or retrieves the URL of the linked style sheet.
Syntax
HTML N/A
Scripting object.style.href [ =sURL ]
Possible Values
The property returns the URL if the style sheet is a LINK. If the style sheet is a STYLE,
the property returns null.
Applies To
HTML N/A
Scripting styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HREF Attribute | href Pro... href Property DHT
Web Workshop | DHTML, HTML & CSS
HREF Attribute | href Property
Sets or retrieves the baseline URL on which relative links will be based.
Syntax
Possible Values
BASE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
href Property FOR Attribute | htmlFor P... DHT
Web Workshop | DHTML, HTML & CSS
HSPACE Attribute | hspace Property
Sets or retrieves the horizontal margin for the object.
Syntax
Possible Values
This property is similar to the border property, except the margins don't have color
when the element is a link.
Applies To
See Also
vspace
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
HSPACE Attribute | hspace... FOR Attribute | ht
Web Workshop | DHTML, HTML & CSS
FOR Attribute | htmlFor Property
Retrieves the object that is bound to the event script.
Syntax
Possible Values
oObject Object that specifies a scripting object or an object identifier that is bound to the event script.
Applies To
SCRIPT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FOR Attribute | htmlFor P... HTTP-EQUIV Attribu
Web Workshop | DHTML, HTML & CSS
htmlText Property
Retrieves the HTML source as a valid HTML fragment.
Syntax
HTML N/A
Scripting [ sTxt = ] TextRange.htmlText
Possible Values
Remarks
This property corresponds to the fragment portion of the CF_HTML clipboard format.
This feature might not be available on non-Win32® platforms. For the latest
information about Microsoft® Internet Explorer cross-platform compatibility, see article
q172976 in the Microsoft Knowledge Base.
I
Applies To
HTML N/A
Scripting TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
htmlText Property ID Attribute | id Propert...
Web Workshop | DHTML, HTML & CSS
HTTP-EQUIV Attribute | httpEquiv Property
Sets or retrieves information used to bind the META tag's content to an HTTP response
header.
Syntax
Possible Values
If the property is omitted, the name property should be used to identify the meta-
information. The httpEquiv property is not case-sensitive.
Example
This example causes the browser to reload the document every two seconds.
Applies To
META
See Also
content
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
imeMode Property index Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
indeterminate Property
Sets or retrieves whether the user has changed the status of a check box.
Syntax
HTML N/A
Scripting checkbox.indeterminate [ =bDim ]
Possible Values
The indeterminate property can be used to indicate whether the user has acted on
the control. For example, setting the indeterminate to true causes the check box to
appear checked and dimmed, indicating an indeterminate state.
The value of the indeterminate property acts independently of the values of the
checked and status properties. Creating an indeterminate state is different from
disabling the control. Consequently, a check box in the indeterminate state can still
receive the focus. When the user clicks an indeterminate control, the indeterminate
state turns off and the checked state of the check box toggles.
Applies To
INPUT type=checkbox
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
indeterminate Property innerHTML Property D
Web Workshop | DHTML, HTML & CSS
index Property
Sets or retrieves the ordinal position of the option in the list box.
Syntax
HTML N/A
Scripting option.index [ = iIndex ]
Possible Values
Applies To
HTML N/A
Scripting OPTION
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
innerText Property isTextEdit Property DHTML
Web Workshop | DHTML, HTML & CSS
ISMAP Attribute | isMap Property
Retrieves whether the image is a server-side image map.
Syntax
Possible Values
Applies To
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ISMAP Attribute | isMap P... keyCode Property
Web Workshop | DHTML, HTML & CSS
isTextEdit Property
Retrieves whether a TextRangeobject can be created using the given object.
Syntax
HTML N/A
Scripting [bEdit = ] object.isTextEdit
Possible Values
Remarks
To create a TextRange object, you can use only the BODY, BUTTON, and TEXTAREA
objects and an INPUT object with one of the following types: button, hidden,
password, reset, submit, or text.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML,
I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE,
MENU, META, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
isTextEdit Property LANG Attribute | lang Pro...
Web Workshop | DHTML, HTML & CSS
keyCode Property
Sets or retrieves the Unicode key code associated with the key that caused the event.
Syntax
HTML N/A
Scripting event.keyCode [ =sKeyCode ]
Possible Values
The property is used with the onkeydown, onkeyup, and onkeypress events.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
keyCode Property LANGUAGE Attribute | lang..
Web Workshop | DHTML, HTML & CSS
LANG Attribute | lang Property
Sets or retrieves the language to use.
Syntax
Possible Values
The parser uses this property to determine how to display language-specific choices for
quotations, numbers, and so on.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, I, IFRAME, IMG, INPUT
type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LANG Attribute | lang Pro... lastChild Property
Web Workshop | DHTML, HTML & CSS
LANGUAGE Attribute | language Property
Sets or retrieves the language in which the current script is written.
Syntax
Possible Values
The language property can refer to any scripting language. Internet Explorer 4.0
ships with scripting engines for Microsoft® JScript® (compatible with ECMA 262
language specification) and Microsoft® Visual Basic® Scripting Edition (VBScript).
In Internet Explorer 5, the LANGUAGE attribute of the SCRIPT element can be set to
XML (Extensible Markup Language).
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR,
DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT,
RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL,
VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LANGUAGE Attribute | lang... lastModified Prop
Web Workshop | DHTML, HTML & CSS
lastChild Property
Retrieves a reference to the last child in the childNodes collection of an object.
Syntax
HTML N/A
Scripting [ oElement = ] object.lastChild
Possible Values
Example
This example implements the lastChild property to obtain a reference to the last child
element of an object.
<SCRIPT>
var olastChild = oList.lastChild;
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
<BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P,
PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD,
TITLE, TR, TT, U, UL, VAR, XMP
See Also
firstChild
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
lastChild Property layout-grid Attribute | l... D
Web Workshop | DHTML, HTML & CSS
lastModified Property
Retrieves the date the page was last modified, if the page supplies one.
Syntax
HTML N/A
Scripting [ sModified = ] document.lastModified
Possible Values
sModified String that specifies the most recent date the page was modified, in the form "MM/DD/YY hh:mm:ss".
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
left Attribute | left Pro... LEFTMARGIN Attribute
Web Workshop | DHTML, HTML & CSS
left Property
Retrieves the left coordinate of the rectangle surrounding the object content.
Syntax
HTML N/A
Scripting [ iCoord = ] oTextRectangle.left
Possible Values
iCoord Integer that specifies the left coordinate of the rectangle, in pixels.
Remarks
To access the left coordinate of the second text rectangle of a TextRange object, use
this syntax:
oRct = oTextRange.getClientRects();
oRct[1].left;
Note that because the collection index starts at 0, the second item index is 1.
To access the left coordinate of the bounding rectangle of an element object, use this
syntax:
oBndRct = oElement.getBoundingClientRect();
oBndRct.left;
Example
<SCRIPT>
function getCoords(oObject) {
oBndRct=oObject.getBoundingClientRect();
alert("Bounding rectangle = \nUpperleft coordinates: "
+ oBndRct.left + " " + oBndRct.top +
"\nLowerright coordinates: "
+ oBndRct.right + " " + oBndRct.bottom);
}
</SCRIPT>
</HEAD>
<BODY>
<P ID=oPara onclick="getCoords(this)">
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
TextRectangle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
left Property length Property DHTML Propertie
Web Workshop | DHTML, HTML & CSS
LEFTMARGIN Attribute | leftMargin Property
Sets or retrieves the left margin for the entire body of the page, overriding the default
margin.
Syntax
Possible Values
If the value is an empty string, the left margin is on the left edge.
Applies To
BODY
See Also
topMargin
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LEFTMARGIN Attribute | le... length Property
Web Workshop | DHTML, HTML & CSS
length Property
Retrieves the number of objects in a collection.
Syntax
HTML N/A
Scripting [ iLength= ] object.length
Possible Values
Remarks
Although this property is read-only for most of the objects listed in the Applies To
section, it is read/write for the areas collection (image maps), the options collection
(select boxes), and the SELECT object.
In all other cases, this property has read-only permission, which means you can
retrieve, but cannot change, its current value.
Applies To
all, anchors, applets, areas, attributes, behaviorUrns, bookmarks, boundElements, cells, childNodes, children, controlRange, elements, embeds,
filters, forms, frames, history, images, imports, links, options, plugins, rows, rules, scripts, SELECT, styleSheets, tbodies, TextRectangle, window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
length Property letter-spacing Attribute ... DH
Web Workshop | DHTML, HTML & CSS
length Property
Retrieves the number of characters in a TextNode object.
Syntax
HTML N/A
Scripting [ iLength = ] object.length
Possible Values
Example
This example uses the length property to specify where a TextNode is split using the
splitText method.
<SCRIPT>
function fnChangeValue(){
var oListItem = document.createElement("LI");
oList.appendChild(oListItem);
var oNode = oList.firstChild.childNodes(0);
var oTextNode = oList.firstChild.childNodes(0);
var oSplit = oTextNode.splitText(oTextNode.length/2);
oListItem.appendChild(oSplit);
}
</SCRIPT>
Applies To
TextNode
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
link Pseudo-class linkColor Property DHTML P
Web Workshop | DHTML, HTML & CSS
LINK Attribute | link Property
Sets or retrieves the color of the document links for the object.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
The link property cannot be set through the BODY object's onload event, but the
linkColor property can.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
BODY
See Also
aLink, vLink
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LINK Attribute | link Pro... list-style attribute |
Web Workshop | DHTML, HTML & CSS
linkColor Property
Sets or retrieves the color of the document links.
Syntax
HTML N/A
Scripting document.linkColor [ =sColor ]
Possible Values
sColor String that specifies one of the color names or values in the Color Table.
The linkColor property can be set through the BODY object's onload event, but the
link property cannot.
Applies To
HTML N/A
Scripting document
See Also
alinkColor, vlinkColor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
listStyleType Property LOOP Attribute | loop Pro
Web Workshop | DHTML, HTML & CSS
LOOP Attribute | loop Property
Sets or retrieves the number of times a sound or video clip will loop when activated.
Syntax
Possible Values
To restart a sound or video clip after changing its loop property, set the src property or
dynsrc property, respectively, to itself (see Example). In Internet Explorer 4.0, when
you restart a video by changing its loop property, the video opens and plays in a new
window.
The following are descriptions of how the loop property works for some boundary
cases.
Example
This example uses the loop property and the src property to change the number of
times a background sound loops.
<SCRIPT>
function loopOnce() {
oBGSound.loop = 1;
oBGSound.src = oBGSound.src; // reload sound
}
function loopContinuously() {
oBGSound.loop = -1;
oBGSound.src = oBGSound.src; // reload sound
}
</SCRIPT>
:
<BGSOUND id="oBGSound" src="sound.wav">
<BUTTON onclick="loopOnce()">Loop Sound Once</BUTTON>
<BUTTON onclick="loopContinuously()">Loop Sound
Continuously</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BGSOUND, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LOOP Attribute | loop Pro... LOWSRC Attribute
Web Workshop | DHTML, HTML & CSS
LOOP Attribute | loop Property
Sets or retrieves the number of times a MARQUEE will play.
Syntax
Possible Values
If you set the loop property to null or 0 in script, a scripting error occurs.
Applies To
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LOOP Attribute | loop Pro... margin Attribute |
Web Workshop | DHTML, HTML & CSS
LOWSRC Attribute | lowsrc Property
Sets or retrieves a lower resolution image to display.
Syntax
Possible Values
sURL String that specifies the URL of the lower resolution image.
If the src property is set in code, the new URL starts loading into the image area and
aborts the transfer of any image data that is already loading into the same area. If you
want to alter the lowsrc property, you must do so before setting the src property. If
the URL in the src property references an image that is not the same size as the image
cell it is loaded into, the source image is scaled to fit.
Applies To
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
margin-bottom Attribute |... margin-left Attribu
Web Workshop | DHTML, HTML & CSS
MARGINHEIGHT Attribute | marginHeight Property
Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
Syntax
Possible Values
Margins cannot be less than 1 pixel or so large that the text cannot be displayed.
Applies To
FRAME, IFRAME
See Also
marginWidth
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
margin-top Attribute | ma... MAXLENGTH Attrib
Web Workshop | DHTML, HTML & CSS
MARGINWIDTH Attribute | marginWidth Property
Sets or retrieves the left and right margin widths before displaying the text in a frame.
Syntax
Possible Values
Margins cannot be less than 1 pixel or so large that the text cannot be displayed.
Applies To
FRAME, IFRAME
See Also
marginHeight
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MAXLENGTH Attribute | max... menuArguments
Web Workshop | DHTML, HTML & CSS
MEDIA Attribute | media Property
Sets or retrieves the media type.
Syntax
Possible Values
LINK, STYLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
MEDIA Attribute | media P... METHOD Attribute
Web Workshop | DHTML, HTML & CSS
menuArguments Property
Returns the window object where the context menu item was executed.
Syntax
HTML N/A
Scripting [ oWindow = ] window.external.menuArguments
Possible Values
oWindow Object that specifies where the context menu was opened.
Remarks
This property is accessible only through script specified in the registry for a new
context menu entry.
The menuArguments property returns an object reference of the window where the
context menu was opened. The event object is exposed through this object reference,
allowing authors to query the srcElement, clientX, and clientY properties.
For more information about how to implement extensions to the DHTML Object Model,
see extending the dynamic html object model . For more information about how to
I
add an entry into the standard context menus in Internet Explorer, see adding entries
to the standard context menu .
I
This property is not supported in html applications .
I
Example
Applies To
external
See Also
adding entries to the standard context menuI , extending the dynamic html object
modelI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
METHOD Attribute | method... MULTIPLE Attrib
Web Workshop | DHTML, HTML & CSS
METHODS Attribute | Methods Property
Sets or returns the list of HTTP methods supported by the object.
Syntax
Possible Values
sMethod String that specifies the comma-separated list of HTTP methods supported by the object for public use.
These methods are more accurately given by the HTTP protocol when it is used.
However, for reasons similar to those for the title property, it can be useful to include
the information in advance in the link. The HTML user agent can choose a different
rendering as a function of the methods allowed; for example, if an object has a
method that supports searching, an icon denoting this can be rendered.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NAME Attribute | name Pro... NAME Attribute |
Web Workshop | DHTML, HTML & CSS
NAME Attribute | name Property
Sets or retrieves the value specified in the CONTENT attribute of the META object.
Syntax
Possible Values
The NAME attribute typically is assigned one of the preceding well-defined values, but
any arbitrary value can be specified. Custom tools can be developed to perform special
actions on documents containing arbitrary META tags.
To enable the smart edit features in Internet Explorer 5 or later, add a META tag to the
HEAD of the document. Associate ProgID with the NAME attribute, and associate the
programmatic identifier of the desired editor with the CONTENT attribute. If the
specified editor is not installed or properly registered on the user's system, the edit
button is not displayed. Consult the documentation of your editor to determine its
programmatic identifier.
Example
This example adds META tags to the HEAD of an HTML document to display a smart
edit button on the toolbar as of Internet Explorer 5. Because the ProgID META tag is
associated with the programmatic identifier of Microsoft® Word, the button displays
the Microsoft Word icon. When you click the button, Internet Explorer loads the
document into Word using the specified document template.
Applies To
META
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NAME Attribute | name Pro... nextSibling Prope
Web Workshop | DHTML, HTML & CSS
nameProp Property
Retrieves the file name specified in the href or src property of the object.
Syntax
HTML N/A
Script [ sFileName = ] object.nameProp
Possible Values
sFileName String that specifies the name of a file specified by the object, not including the path or protocol.
Example
This example uses the nameProp property to set the innerText property of a link to
the file name specified by an A element.
<SCRIPT>
window.onload=fnInit;
function fnInit(){
oLink.innerText=oLink.nameProp;
}
</SCRIPT>
<A ID="oLink"
HREF="http://msdn.microsoft.com/workshop/author/dhtml/dhtmlrefs.
asp">
</A>
Applies To
A, IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
nameProp Property nodeName Property DHTM
Web Workshop | DHTML, HTML & CSS
nextSibling Property
Retrieves a reference to the next child of the parent for the specified object.
Syntax
HTML N/A
Scripting [ oElement = ] object.nextSibling
Possible Values
Example
This example uses the nextSibling property to obtain the next item in the list.
<SCRIPT>
// returns the list item labeled 'List Item 2'
var oSibling = oList.childNodes(0).nextSibling;
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
<BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TextNode, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
lastChild
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
nextSibling Property nodeType Property DHTM
Web Workshop | DHTML, HTML & CSS
nodeName Property
Retrieves the name of a particular type of node.
Syntax
HTML N/A
Scripting [ sName = ] object.nodeName
Possible Values
Example
This example uses the nodeName property to obtain the name of an element.
<SCRIPT>
// returns the element name 'LI' of the list item labeled 'List
Item 2'
var sName = oList.childNodes(1).nodeName;
</SCRIPT>
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
</BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, Attribute, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION,
CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TextNode, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
nodeType
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
nodeName Property nodeValue Property DHT
Web Workshop | DHTML, HTML & CSS
nodeType Property
Retrieves the type of the requested node.
Syntax
HTML N/A
Scripting [ iType = ] oNode.nodeType
Possible Values
Remarks
If the node represents an attribute retrieved from the attributes collection, the
nodeType returns null.
Example
This example assigns the nodeType property of the BODY object to a variable.
This example assigns the nodeType property of a node created with the
createElement method to a variable.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, Attribute, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION,
CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TextNode, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
nodeType Property NOHREF Attribute | noHref..
Web Workshop | DHTML, HTML & CSS
nodeValue Property
Sets or retrieves the value of a node.
Syntax
HTML N/A
Scripting object.nodeValue [ = sValue ]
Possible Values
If the object is a TextNode, the nodeValue property returns a string representing the
text contained by the node.
If the object is an Attribute object retrieved from the attributes collection, the
nodeValue property returns the value of the attribute if it has been specified, or null
otherwise.
If the object is an element, the nodeValue returns null. Use the nodeName property
to determine the element name.
Example
This example alters the text of the specified list item by setting the nodeValue
property of the text node contained by that list item.
<SCRIPT>
function fnChangeValue(oList, iItem, sValue){
// only perform the operation on lists
if (oList.nodeName != "UL" && oList.nodeName != "OL")
return false;
oText.nodeValue = sValue;
return true;
}
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, Attribute, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION,
CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TextNode, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
nodeValue Property NORESIZE Attribute | noRe
Web Workshop | DHTML, HTML & CSS
NOHREF Attribute | noHref Property
Sets or retrieves whether clicks in this region cause action.
Syntax
Possible Values
AREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOHREF Attribute | noHref... NOSHADE Attribu
Web Workshop | DHTML, HTML & CSS
NORESIZE Attribute | noResize Property
Sets or retrieves whether the user can resize the frame.
Syntax
Possible Values
FRAME
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NORESIZE Attribute | noRe... NOWRAP Attribut
Web Workshop | DHTML, HTML & CSS
NOSHADE Attribute | noShade Property
Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
Syntax
Possible Values
HR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NOSHADE Attribute | noSha... object Property
Web Workshop | DHTML, HTML & CSS
NOWRAP Attribute | noWrap Property
Sets or retrieves whether the browser automatically performs wordwrap.
Syntax
Possible Values
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
object Property offsetHeight Property DHTML
Web Workshop | DHTML, HTML & CSS
offscreenBuffering Property
Sets or retrieves whether objects are drawn offscreen before being made visible to the
user.
Syntax
HTML N/A
Scripting window.offscreenBuffering [ =vBuffering ]
Possible Values
The value of the offscreenBuffering property determines how the current page is
drawn. When the property is set to true, objects are added to an offscreen buffer.
Once all objects are drawn, the contents of the offscreen buffer are made visible to the
user. When the property is set to false, objects are rendered directly to the screen.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offscreenBuffering Proper... offsetLeft Property
Web Workshop | DHTML, HTML & CSS
offsetHeight Property
Retrieves the height of the object relative to the layout or coordinate parent, as specified
by the offsetParent property.
Syntax
HTML N/A
Scripting [ iHeight = ] object.offsetHeight
Possible Values
Remarks
You can determine the location, width, and height of an object by using a combination
of the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric
properties specify the physical coordinates and dimensions of the object relative to the
object's offset parent.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example adjusts the size of a clock's readout to fit the current width and height of
the document body.
This example uses the offsetHeight property and the clientHeight property to show
different ways of measuring the object size.
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetLeft Property offsetTop Property DHTML
Web Workshop | DHTML, HTML & CSS
offsetParent Property
Retrieves a reference to the container object that defines the offsetTop and offsetLeft
properties of the object.
Syntax
HTML N/A
Scripting [ oElement = ] object.offsetParent
Possible Values
Remarks
Most of the time the offsetParent property returns the BODY object.
Note In Microsoft® Internet Explorer 5, the offsetParent property returns the TABLE
object for the TD object; in Internet Explorer 4.0 it returns the TR object. You can use
the parentElement property to retrieve the immediate container of the table cell.
Example
This example shows how to determine the position of a TD object. Although the TD
object appears to the far right in the document, its position is close to the x-axis and
y-axis, because its offset parent is a TABLE object rather than the document body.
Note For Internet Explorer 4.0, this same example returns a position of 0,0 because
the offset parent is the table row.
<HTML>
<HEAD>
<TITLE>Elements: Positions</TITLE>
<SCRIPT LANGUAGE="JScript">
function showPosition()
{
var oElement = document.all.oCell;
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button,
INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset,
INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P,
PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD,
TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetParent Property offsetWidth Property DH
Web Workshop | DHTML, HTML & CSS
offsetTop Property
Retrieves the calculated top position of the object relative to the layout or coordinate
parent, as specified by the offsetParent property.
Syntax
HTML N/A
Scripting [ iCoord = ] object.offsetTop
Possible Values
Remarks
You can determine the location, width, and height of an object by using a combination
of the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric
properties specify the physical coordinates and dimensions of the object relative to the
object's offset parent.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the offsetTop property to determine whether an object is in the
user's view.
<SCRIPT>
function isinView(oObject)
{
var oParent = oObject.offsetParent;
var iOffsetTop = oObject.offsetTop;
var iClientHeight = oParent.clientHeight;
if (iOffsetHeight > iClientHeight) {
alert("Scroll down for the message.");
}
}
</SCRIPT>
:
<BUTTON onclick="isinView(this)">Click here</BUTTON>
:
<DIV ID=oDiv STYLE="position:absolute; top:900; left:0;">
:
</DIV>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL,
VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetTop Property offsetX Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
offsetWidth Property
Retrieves the width of the object relative to the layout or coordinate parent, as specified by
the offsetParent property.
Syntax
HTML N/A
Scripting [ iWidth = ] object.offsetWidth
Possible Values
Remarks
You can determine the location, width, and height of an object by using a combination
of the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric
properties specify the physical coordinates and dimensions of the object relative to the
object's offset parent.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example adjusts the size of a clock's readout to fit the current width and height of
the document.
This example uses the offsetWidth property and the clientWidth property to show the
different ways of measuring the object size.
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetWidth Property offsetY Property DHTML
Web Workshop | DHTML, HTML & CSS
offsetX Property
Retrieves the x-coordinate of the mouse pointer's position relative to the object firing the
event.
Syntax
HTML N/A
Scripting [ iCoord = ] event.offsetX
Possible Values
Remarks
The coordinates match the offsetLeft and offsetTop properties of the object. Use
offsetParent to find the container object that defines this coordinate system.
Example
This example uses the offsetX property to determine the mouse position relative to
the container that fired the event, and displays the mouse coordinates in the status
bar at the bottom of the window.
<SCRIPT>
function offsetCoords()
{
var offsetInfo = ""
offsetInfo = "The x coordinate is: " + window.event.offsetX
+ "\r"
offsetInfo += "The y coordinate is: " + window.event.offsetY
+ "\r"
alert(offsetInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + window.event.offsetX +
' Y=' + window.event.offsetY" ondblclick="offsetCoords()">
:
<DIV onclick="offsetCoords();" . . . position:absolute; top:200;
left:300;">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetX Property onLine Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
offsetY Property
Retrieves the y-coordinate of the mouse pointer's position relative to the object firing the
event.
Syntax
HTML N/A
Scripting [ iCoord = ] event.offsetY
Possible Values
Remarks
The coordinates match the offsetLeft and offsetTop properties of the object. Use
offsetParent to find the container object that defines this coordinate system.
Example
This example uses the offsetY property to determine the mouse position relative to
the container that fired the event, and displays the mouse coordinates in the status
bar at the bottom of the window.
<SCRIPT>
function offsetCoords()
{
var offsetInfo = ""
offsetInfo = "The x coordinate is: " + window.event.offsetX
+ "\r"
offsetInfo += "The y coordinate is: " + window.event.offsetY
+ "\r"
alert(offsetInfo);
}
</SCRIPT>
</HEAD>
<BODY onmousemove="window.status = 'X=' + window.event.offsetX +
' Y=' + window.event.offsetY"
ondblclick="offsetCoords()">
:
<DIV onclick="offsetCoords();" . . . position:absolute; top:200;
left:300;">
:
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
offsetY Property opener Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
onLine Property
Retrieves whether the system is in global offline mode .
I
Syntax
HTML N/A
Scripting [ bOnLine = ] navigator.onLine
Possible Values
Remarks
The user can modify the global offline state by selecting the Work Offline item from the
Microsoft® Internet Explorer (version 4.0 and later) File menu. This property does not
indicate whether the system is connected to the network.
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
opener Property outerText Property DHTML P
Web Workshop | DHTML, HTML & CSS
outerHTML Property
Sets or retrieves the object and its content in HTML.
Syntax
HTML N/A
Scripting object.outerHTML [ = sHTML ]
Possible Values
Remarks
The outerHTML property is read-only on the HTML, HEAD, BODY, FRAMESET, TBODY,
TD, TFOOT, TH, THEAD, and TR objects.
The property can be any valid string containing a combination of text and tags.
When the property is set, the given string completely replaces the object, including its
start and end tags. If the string contains HTML tags, the string is parsed and formatted
as it is placed into the document.
You can set this property only after the onload event fires on the window. When
dynamically creating a tag using TextRange, innerHTML, or outerHTML, use
Microsoft® JScript® (compatible with ECMA 262 language specification) to create new
events to handle the newly formed tags. Microsoft® Visual Basic® Scripting Edition
(VBScript) is not supported.
You can change the value of the TITLE element using the document.title property.
To change the contents of the TFOOT, THEAD, TR, and TD elements, use the table
object model. For example, use the rowIndex property or the rows collection to
retrieve a reference to a specific table row. You can add or delete rows using the
insertRow and deleteRow methods. To retrieve a reference to a specific cell, use the
cellIndex property or the cells collection. You can add or delete rows using the
insertCell and deleteCell methods. To change the content of a particular cell, use the
innerHTML property.
Example
This example uses the outerHTML property to copy an object, accompanying
attributes, and children to a list when a user clicks one of the objects.
<SCRIPT>
function fnCopyHTML(){
var oWorkItem = event.srcElement;
if((oWorkItem.tagName != "UL") && (oWorkItem.tagName !=
"LI")){
alert("Adding " + oWorkItem.outerHTML + " to the list.");
oScratch.innerHTML += oWorkItem.outerHTML + "<BR>";
}
}
</SCRIPT>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BGSOUND, BIG, BLOCKQUOTE, BR, BUTTON, CENTER, CITE, CODE, COMMENT, custom, DD, DEL,
DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE,
Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL,
VAR, WBR, XMP
See Also
insertAdjacentHTML
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
outerHTML Property overflow Attribute | over...
Web Workshop | DHTML, HTML & CSS
outerText Property
Sets or retrieves the text of the object.
Syntax
HTML N/A
Scripting object.outerText [ = sTxt ]
Possible Values
Remarks
The outerText property is read-only on the HTML, TBODY, TD, TFOOT, TH, THEAD,
and TR objects.
When this property is set, the given string completely replaces the original text in the
object.
You can set this property only after the onload event fires on the window. When
dynamically creating a tag using TextRange, innerHTML, or outerHTML, use Microsoft®
JScript® (compatible with ECMA 262 language specification) to create new events to
handle the newly formed tags. Microsoft® Visual Basic® Scripting Edition (VBScript) is
not supported.
You can change the value of the TITLE element using the document.title property.
To change the contents of the TFOOT, THEAD, TR, and TD elements, use the table
object model. For example, use the rowIndex property or the rows collection to
retrieve a reference to a specific table row. You can add or delete rows using the
insertRow and deleteRow methods. To retrieve a reference to a specific cell, use the
cellIndex property or the cells collection. You can add or delete rows using the
insertCell and deleteCell methods. To change the content of a particular cell, use the
innerHTML property.
Example
This example uses the outerText property to replace an object's content; the object
itself also is replaced.
<DIV ID=oDiv>
<P ID=oPara>Here's the text that will change.</P>
</DIV>
:
<BUTTON onclick="oPara.outerText='WOW!
It changed!'">Change text</BUTTON>
<BUTTON onclick="oDiv.innerHTML='<P ID=oPara>
And back again</P>'">Reset</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BGSOUND, BIG, BLOCKQUOTE, BR, BUTTON, CENTER, CITE, CODE, COMMENT, custom, DD, DEL,
DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S,
SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, WBR, XMP
See Also
insertAdjacentText
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
overflow-y Attribute | ov... padding Attribute |
Web Workshop | DHTML, HTML & CSS
owningElement Property
Retrieves the next object in the HTML hierarchy.
Syntax
HTML N/A
Scripting [ oElement = ] styleSheet.owningElement
Possible Values
Remarks
The owningElement property usually returns the STYLE or LINK object that defined
the style sheet.
Applies To
styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
page-break-before Attribu... parent Property
Web Workshop | DHTML, HTML & CSS
palette Property
Sets or retrieves the palette used for the embedded document.
Syntax
Possible Values
HTML N/A
Scripting EMBED
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
palette Property parentElement Property DHT
Web Workshop | DHTML, HTML & CSS
parent Property
Retrieves the parent of the window in the object hierarchy.
Syntax
HTML N/A
Scripting [ oElement = ] window.parent
Possible Values
Remarks
For a document, the parent is the containing window. For a window defined using
FRAME, the parent is the window that contains the corresponding FRAMESET definition.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentElement Property parentStyleSheet Prop
Web Workshop | DHTML, HTML & CSS
parentNode Property
Retrieves the parent object in the document hierarchy.
Syntax
HTML N/A
Scripting [ oElement = ] object.parentNode
Possible Values
Remarks
Example
<SCRIPT>
var oParent = oSpan.parentNode;
</SCRIPt>
:
<BODY>
<SPAN ID=oSpan>A Span</SPAN>
</BODY>
This example assigns the parentNode of a node, created with the createElement
method, to a variable.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentNode Property parentTextEdit Property
Web Workshop | DHTML, HTML & CSS
parentStyleSheet Property
Retrieves the style sheet that was used for importing style sheets.
Syntax
HTML N/A
Scripting [ sStyleSheet = ] styleSheet.parentStyleSheet
Possible Values
sStyleSheet String that specifies the file name of the style sheet.
Applies To
HTML N/A
Scripting styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentStyleSheet Property parentWindow Prope
Web Workshop | DHTML, HTML & CSS
parentTextEdit Property
Retrieves the container object in the document hierarchy that can be used to create a
textRange containing the original object.
Syntax
HTML N/A
Scripting [ oObject = ] object.parentTextEdit
Possible Values
Remarks
The property is an object if the parent exists; otherwise, it is null. For example, the
parentTextEdit property of the BODY is null.
Example
This example retrieves the parent object, if needed, creates the text range, moves to
the original object, and selects the first word in the object.
<SCRIPT LANGUAGE="JScript">
function selectWord()
{
var oSource = window.event.srcElement ;
if (!oSource.isTextEdit)
oSource = oSource.parentTextEdit;
if (oSource != null) {
var oTextRange = oSource.createTextRange();
oTextRange.moveToElementText(window.event.srcElement);
oTextRange.collapse();
oTextRange.expand("word");
oTextRange.select();
}
}
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentTextEdit Property pathname Property D
Web Workshop | DHTML, HTML & CSS
parentWindow Property
Retrieves a reference to the container object of the window.
Syntax
HTML N/A
Scripting [ sParent = ] document.parentWindow
Possible Values
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentWindow Property pixelBottom Property
Web Workshop | DHTML, HTML & CSS
pathname Property
Sets or retrieves the file name or path specified by the object.
Syntax
HTML N/A
Scripting object.pathname [ =sName ]
Possible Values
A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pathname Property pixelHeight Property DHT
Web Workshop | DHTML, HTML & CSS
pixelBottom Property
Sets or retrieves the bottom position of the object.
Syntax
HTML N/A
Scripting object.style.pixelBottom [ = iBottom ]
Possible Values
The pixelBottom property reflects the value of the cascading style sheets (CSS)
bottom attribute for positioned items. The property always returns 0 for nonpositioned
items, because "bottom" has meaning only when the object is positioned.
Unlike the bottom property, the pixelBottom value is an integer, not a string, and is
always interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the pixelBottom property to set a positioned DIV to the bottom of
the client area.
oDiv.style.pixelBottom = 0;
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posBottom
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelLeft Property pixelTop Property DHTML P
Web Workshop | DHTML, HTML & CSS
pixelRight Property
Sets or retrieves the right position of the object.
Syntax
HTML N/A
Scripting object.style.pixelRight [ =iRight ]
Possible Values
The pixelRight property reflects the value of the cascading style sheets (CSS) right
attribute for positioned items. The property always returns 0 for nonpositioned items,
because "right" has meaning only when the object is positioned.
Unlike the right property, the pixelRight value is an integer, not a string, and is
always interpreted in pixels.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
posRight
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pixelWidth Property PLUGINSPAGE Attribute | p
Web Workshop | DHTML, HTML & CSS
platform Property
Retrieves the name of the user's operating system.
Syntax
HTML N/A
Scripting [ sPlatform = ] navigator.platform
Possible Values
Applies To
clientInformation, navigator
See Also
userAgent
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
platform Property port Property DHTML Prope
Web Workshop | DHTML, HTML & CSS
PLUGINSPAGE Attribute | pluginspage Property
Retrieves the URL of the plug-in used to view an embedded document.
Syntax
Possible Values
Applies To
EMBED
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PLUGINSPAGE Attribute | p... posBottom Prope
Web Workshop | DHTML, HTML & CSS
port Property
Sets or retrieves the port number associated with a URL.
Syntax
HTML N/A
Scripting object.port [ =sPort ]
Possible Values
sPort String that specifies the port number associated with the URL.
The property is read/write with a default value of 21 for the ftp protocol, 70 for the
I
gopher protocol, 80 for the http protocol, and 443 for the https protocol.
I I I
Applies To
A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
port Property posHeight Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
posBottom Property
Sets or retrieves the bottom position of the object in the units specified by the cascading
style sheets (CSS) bottom attribute.
Syntax
HTML N/A
Scripting object.style.posBottom [ = iBottom ]
Possible Values
iBottom Integer that specifies any floating-point number that uses the same length units as the bottom attribute.
This property reflects the value of the CSS bottom attribute for positioned items. This
property always returns 0 for nonpositioned items, because "bottom" has meaning only
when the object is positioned.
Setting this property changes the value of the bottom position, but leaves the length
units designator for the property unchanged.
Unlike the bottom property, the posBottom property value is a floating-point number,
not a string.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posBottom property to set a positioned DIV to the bottom of
the client area.
oDiv.style.posBottom = 0;
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelBottom
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posLeft Property posTop Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
posRight Property
Sets or retrieves the right position of the object in the units specified by the cascading
style sheets (CSS) right attribute.
Syntax
HTML N/A
Scripting object.style.posRight [ = iRight ]
Possible Values
iRight Integer that specifies any valid floating-point number that uses the same length units as the right attribute.
This property reflects the value of the CSS right attribute for positioned items. This
property always returns 0 for nonpositioned items, because "right" has meaning only
when the object is positioned.
Setting this property changes the value of the right position, but leaves the units
designator for the property unchanged.
Unlike the right property, the posRight property value is a floating-point number, not
a string.
For more information about how to access the dimension and location of elements on
the page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the posRight property to set a positioned DIV 10 pixels from the
right of the client area.
oDiv.style.posRight = 10;
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
pixelRight
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
posWidth Property propertyName Property DH
Web Workshop | DHTML, HTML & CSS
previousSibling Property
Retrieves a reference to the previous child of the parent for the specified object.
Syntax
HTML N/A
Scripting [ oElement = ] object.previousSibling
Possible Values
Example
This example uses the previousSibling property to obtain the previous sibling of a list
item.
<SCRIPT>
// returns the list item labeled 'List Item 1'
var oSibling = oList.childNodes(1).previousSibling;
</SCRIPT>
:
<BODY>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
</UL>
</BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TextNode, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
lastChild
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
previousSibling Property protocol Property DH
Web Workshop | DHTML, HTML & CSS
propertyName Property
Retrieves the name of the property that has changed on the object.
Syntax
HTML N/A
Scripting [ sProperty = ] event.propertyName
Possible Values
sProperty String that specifies the name of the property whose value changed during the event.
Remarks
You can alter the value of propertyName by using it with the onpropertychange
event.
Example
This example uses the onpropertychange event to change the value of the
propertyName property.
Applies To
HTML N/A
Scripting event
See Also
onpropertychange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
propertyName Property qualifier Property DH
Web Workshop | DHTML, HTML & CSS
protocol Property
Sets or retrieves the protocol portion of a URL.
Syntax
HTML N/A
Scripting object.protocol [ =sProtocol ]
Possible Values
Remarks
The protocol property specifies how to transfer information from the host to the
client. Microsoft® Internet Explorer supports several predefined protocols , including
I
http and ftp .
I I
The protocol property returns the initial substring of a URL, including the first colon
(for example, http:). However, the document and location objects expose the
protocol property as read-only. The property returns the expanded text of the
protocol acronym. For example, it returns the HTTP protocol as Hypertext Transfer
Protocol.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
protocol Property readOnly Property DHTML P
Web Workshop | DHTML, HTML & CSS
qualifier Property
Retrieves the name of the data member provided by a data source object.
Syntax
HTML N/A
Scripting [ sQualifier = ] event.qualifier
Possible Values
sQualifier String that specifies the default data member either by the name of the data member or an empty string.
Remarks
Check the qualifier property in the event handlers of a data source object (DSO) if:
Valid qualifiers are specific to the DSO implementation. Check the documentation of
the DSO to determine if it supports named data members and to determine the valid
names for those data members.
Example
<SCRIPT>
// Fired when all the data is available
function handle_dscomplete()
{
var oEvent = window.event;
// ignore the notification for the default data member
if (oEvent.qualifier != "")
{
// get a recordset corresponding to the named data
member
// as indicated by the qualifier property
var oNamedRS =
oEvent.srcElement.namedRecordset(oEvent.qualifier);
// now walk the recordset
oNamedRS.MoveFirst();
for (int i = 0; i < oNamedRS.RecordCount; i++)
{
var vValue = oNamedRS.Fields(0).value;
oNamedRS.MoveNext();
}
}
}
</SCRIPT>
<!-- The CLASSID below does not correspond to a valid object -->
<OBJECT CLASSID="clsid:00000000-0000-0000-0000-000000000000"
ID="dsoSpreadSheet"
ondatasetcomplete="handle_dscomplete()">
Applies To
event
See Also
namedRecordset, using a data source object that exposes multiple data membersI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
qualifier Property READONLY Attribute | read...
Web Workshop | DHTML, HTML & CSS
readOnly Property
Retrieves whether the rule or style sheet is defined on the page or is imported.
Syntax
HTML N/A
Scripting [ bReadOnly = ] object.readOnly
Possible Values
Remarks
You cannot modify style sheets obtained through a LINK object or the @import rule
while the designMode property is enabled. For more information, see mshtml editing .
I
Applies To
styleSheet, rule
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
readOnly Property readyState Property DHTM
Web Workshop | DHTML, HTML & CSS
READONLY Attribute | readOnly Property
Sets or retrieves whether the content of the object is read-only.
Syntax
Possible Values
If the value of the readOnly property is set to true, the user cannot enter or edit text
in the control. When set to true, the property still allows the object to receive the
focus, whereas the disabled property does not.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
readyState Property recordNumber Property
Web Workshop | DHTML, HTML & CSS
reason Property
Retrieves the result of the data transfer for a data source object.
Syntax
HTML N/A
Scripting [ iReason = ] event.reason
Possible Values
Remarks
The reason property specifies the state of completion of the data transfer.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
reason Property recordset Property DHTML Pr
Web Workshop | DHTML, HTML & CSS
recordNumber Property
Retrieves the ordinal record from the data set that generated the object.
Syntax
HTML N/A
Scripting [ iNumber = ] object.recordNumber
Possible Values
Remarks
You can use this property with the ado recordset, which is available from every data
I
source object through the object's recordset property.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, custom,
DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
recordNumber Property referrer Property DHT
Web Workshop | DHTML, HTML & CSS
recordset Property
Retrieves from a data source object a reference to the default record set.
Syntax
HTML N/A
Scripting [ oRecordset = ] object.recordset
Possible Values
Remarks
To retrieve a named record set from a data source object, use the namedRecordset
method.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
referrer Property repeat Property DHTML Prop
Web Workshop | DHTML, HTML & CSS
REL Attribute | rel Property
Sets or retrieves the relationship(s) between the object and the destination of the link.
Syntax
Possible Values
sRelation String that specifies one or more of the following comma-delimited values, in any order:
Alternate Substitute version of the file that contains the link.
Appendix Page that is an appendix for the set of pages.
Bookmark Bookmark.
Chapter Page is a chapter for a set of pages.
Contents Table of contents document.
Copyright Copyright notice for the current page.
Glossary Glossary for the current page.
Help Help document.
Index Index document for the current page.
Next Next document in a sequence.
Offline href containing a path to the CDF file to be used for an offline favorite.
Prev Previous document in a sequence.
Section Page is a section for a set of pages.
Shortcut Icon href containing a path to an icon file to be used for the favorite or link.
Start First document of a set.
Stylesheet Style sheet.
Subsection Page is a subsection for a set of pages.
If no values are indicated, the rel property's default relationship is an empty string.
This property is used only when the href property is applied.
The Shortcut Icon and Offline values apply only to the LINK object.
The Offline value is available in Internet Explorer 5 and later. For more information
about CDF files and offline favorites, see enhancing offline favorites .
I
The rel property is similar to the rev property, but the semantics of these two
properties' link types are in the reverse direction. For example, a link from A to B with
REL="X" expresses the same relationship as a link from B to A with REV="X". An
anchor can have both rel and rev properties.
Applies To
A, LINK
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
REL Attribute | rel Prope... returnValue Property
Web Workshop | DHTML, HTML & CSS
repeat Property
Retrieves whether the onkeydown event is being repeated.
Syntax
HTML N/A
Scripting [ bRepeat = ] event.repeat
Possible Values
Remarks
The repeat property returns true while a user holds down a key.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
returnValue Property REV Attribute | rev Prope
Web Workshop | DHTML, HTML & CSS
returnValue Property
Sets or retrieves the return value from the event.
Syntax
HTML N/A
Scripting event.returnValue [ =bValue ]
Possible Values
The value of this property takes precedence over values returned by the function, such
as through a Microsoft® JScript® (compatible with ECMA 262 language specification)
return statement.
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
returnValue Property right Property DHTML P
Web Workshop | DHTML, HTML & CSS
REV Attribute | rev Property
Sets or retrieves the relationship(s) between the object and the destination of the link.
Syntax
Possible Values
sRelation String that specifies one or more of the following space-delimited values, in any order:
Alternate Substitute version of the file containing the link.
Appendix Page that is an appendix for the set of pages.
Bookmark Bookmark.
Chapter Page is a chapter for a set of pages.
Contents Table of contents document.
Copyright Copyright notice for the current page.
Glossary Glossary for the current page.
Help Help document.
Index Index document for the current page.
Next Next document in a sequence.
Prev Previous document in a sequence.
Section Page is a section for a set of pages.
Start First document of a set.
Stylesheet Style sheet.
Subsection Page is a subsection for a set of pages.
The rev property is similar to the rel property, but the semantics of these two
properties' link types are in the reverse direction. For example, a link from A to B with
REL="X" expresses the same relationship as a link from B to A with REV="X". An
anchor can have both rel and rev properties.
Applies To
A, LINK
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
REV Attribute | rev Prope... right Attribute | rig
Web Workshop | DHTML, HTML & CSS
right Property
Retrieves the right coordinate of the rectangle surrounding the object content.
Syntax
HTML N/A
Scripting [ iCoord = ] oTextRectangle.right
Possible Values
iCoord Integer that specifies the right coordinate of the rectangle, in pixels.
Remarks
To access the right coordinate of the second text rectangle of a TextRange object, use
this syntax:
oRct = oTextRange.getClientRects();
oRct[1].right;
Note that the collection index starts at 0, so the second item index is 1.
To access the right coordinate of the bounding rectangle of an element object, use this
syntax:
oBndRct = oElement.getBoundingClientRect();
oBndRct.right;
Example
<SCRIPT>
function getCoords(oObject) {
oBndRct=oObject.getBoundingClientRect();
alert("Bounding rectangle = \nUpper left coordinates: "
+ oBndRct.left + " " + oBndRct.top +
"\nLower right coordinates: "
+ oBndRct.right + " " + oBndRct.bottom);
}
</SCRIPT>
</HEAD>
<BODY>
<P ID=oPara onclick="getCoords(this)">
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TextRectangle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
right Attribute | right P... rowIndex Property D
Web Workshop | DHTML, HTML & CSS
RIGHTMARGIN Attribute | rightMargin Property
Sets or retrieves the right margin for the entire body of the page.
Syntax
Possible Values
If the value is an empty string, the right margin is on the right edge.
Applies To
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
rowIndex Property ROWS Attribute | rows Pro..
Web Workshop | DHTML, HTML & CSS
ROWS Attribute | rows Property
Sets or retrieves the number of horizontal rows contained in the object.
Syntax
Possible Values
TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ROWS Attribute | rows Pro... ROWSPAN Attribu
Web Workshop | DHTML, HTML & CSS
ROWS Attribute | rows Property
Sets or retrieves the frame heights of the object.
Syntax
Possible Values
sHeight String that specifies one or more of the following comma-delimited values:
height Integer that specifies the frame height, in pixels.
percentage Integer, followed by a %. The value is a percentage of total available height.
height* Integer that specifies the frame height as a relative value. After allocating pixel or percentage
values, the remaining space is divided among all relative-sized frames.
Example
This example defines a two-row frame, with the first occupying 40 percent of the
available height and the second occupying the remaining 60 percent.
This example defines a four-row frame. The first is 50 pixels high and the fourth is 80
pixels high. The second occupies two-thirds of the remaining height, while the third
occupies the final one-third of the remaining height.
Applies To
FRAMESET
See Also
cols
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ROWS Attribute | rows Pro... ruby-align Attribu
Web Workshop | DHTML, HTML & CSS
ROWSPAN Attribute | rowSpan Property
Sets or retrieves how many rows in a TABLE the cell should span.
Syntax
Possible Values
This property can be changed only after the page has been loaded.
Applies To
TD, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ruby-position Attribute |... scopeName Property
Web Workshop | DHTML, HTML & CSS
RULES Attribute | rules Property
Sets or retrieves which dividing lines (inner borders) are displayed.
Syntax
Possible Values
The value none turns off only the interior borders. To turn off the table borders, set the
rules property to '', or omit the RULES attribute from the TABLE object.
Example
This example initially sets the RULES attribute on the table, and then uses the rules
property to dynamically change the table borders.
Applies To
TABLE
See Also
frame
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RULES Attribute | rules P... screenLeft Property
Web Workshop | DHTML, HTML & CSS
scopeName Property
Retrieves the namespace defined for the element.
I
Syntax
HTML N/A
Scripting [ sName = ] object.scopeName
Possible Values
Example
This example shows the values returned by the scopeName and tagUrn properties
when used with a simple HelloWorld custom tag. The browser's status bar displays the
property values.
<HTML XMLNS:InetSDK='http://msdn.microsoft.com/workshop'>
<STYLE>
@media all {
InetSDK\:HelloWorld { behavior:url (simple.htc) }
}
</STYLE>
<SCRIPT>
function window.onload()
{
window.status = 'scopeName = ' + hello.scopeName +
'; tagUrn = ' + hello.tagUrn;
}
</SCRIPT>
<BODY>
<InetSDK:HelloWorld ID='hello'></InetSDK:HelloWorld>
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scopeName Property screenTop Property DHT
Web Workshop | DHTML, HTML & CSS
screenLeft Property
Retrieves the x-coordinate of the upper left-hand corner of the browser's client area,
relative to the upper left-hand corner of the screen.
Syntax
HTML N/A
Scripting [ iPos= ] object.screenLeft
Possible Values
Remarks
The client area consists of the browser window, exclusive of the caption bar, the
window-sizing border, the menu bar, the toolbars, the scroll bars, and the status bars.
Applies To
window
See Also
screenTop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
screenLeft Property screenX Property DHTML
Web Workshop | DHTML, HTML & CSS
screenTop Property
Retrieves the y-coordinate of the top corner of the browser's client area, relative to the top
corner of the screen.
Syntax
HTML N/A
Scripting [ iPos= ] object.screenTop
Possible Values
Remarks
The client area consists of the browser window, exclusive of the caption bar, the
window-sizing border, the menu bar, the toolbars, the scroll bars, and the status bars.
Applies To
window
See Also
screenLeft
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
screenTop Property screenY Property DHTML
Web Workshop | DHTML, HTML & CSS
screenX Property
Retrieves the x-coordinate of the mouse pointer's position relative to the user's screen.
Syntax
HTML N/A
Scripting [ iSize = ] event.screenX
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
screenX Property SCROLL Attribute | scroll...
Web Workshop | DHTML, HTML & CSS
screenY Property
Retrieves the y-coordinate of the mouse pointer's position relative to the user's screen.
Syntax
HTML N/A
Scripting [ iSize = ] event.screenY
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
screenY Property SCROLLAMOUNT Attribute | .
Web Workshop | DHTML, HTML & CSS
SCROLL Attribute | scroll Property
Sets or retrieves whether the scroll bars are turned on or off.
Syntax
Possible Values
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SCROLL Attribute | scroll... SCROLLDELAY Attri
Web Workshop | DHTML, HTML & CSS
SCROLLAMOUNT Attribute | scrollAmount Property
Sets or retrieves the number of pixels the text scrolls between each subsequent drawing of
the MARQUEE.
Syntax
Possible Values
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SCROLLAMOUNT Attribute | ... scrollHeight Pro
Web Workshop | DHTML, HTML & CSS
SCROLLDELAY Attribute | scrollDelay Property
Sets or retrieves the speed of the MARQUEE scroll.
Syntax
Possible Values
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SCROLLDELAY Attribute | s... SCROLLING Attrib
Web Workshop | DHTML, HTML & CSS
scrollHeight Property
Retrieves the scrolling height of the object.
Syntax
HTML N/A
Scripting [ iHeight = ] object.scrollHeight
Possible Values
Remarks
The height is the distance between the top and bottom edges of the object's content.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the scrollHeight property to retrieve the height of the viewable
content.
<SCRIPT>
function fnCheckScroll(){
var iNewHeight = oDiv.scrollHeight;
alert("The value of the scrollHeight property is: "
+ iNewHeight);
}
</SCRIPT>
:
<DIV ID=oDiv STYLE="overflow:scroll; height=100;
width=250; text-align:left">
:
</DIV>
<INPUT TYPE=button VALUE="Check scrollHeight"
onclick="fnCheckScroll()">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollHeight Property scrollLeft Property DHTM
Web Workshop | DHTML, HTML & CSS
SCROLLING Attribute | scrolling Property
Sets or retrieves whether the frame can be scrolled.
Syntax
Possible Values
FRAME, IFRAME
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollTop Property search Property DHTML Pro
Web Workshop | DHTML, HTML & CSS
scrollWidth Property
Retrieves the scrolling width of the object.
Syntax
HTML N/A
Scripting [ iWidth = ] object.scrollWidth
Possible Values
Remarks
The width is the distance between the left and right edges of the object's visible
content.
For more information about how to access the dimension and location of objects on the
page through the document object model, see measuring element dimension and
location .
I
Example
This example uses the scrollWidth property to compare the rendered width of a DIV
element with the width of the content. The width of the element, as rendered on the
page, is exposed through the offsetWidth property.
When the overflow property is set to auto, the content can exceed the dimensions of
an element, and scroll bars appear. You can use the scrollWidth property to retrieve
the width of the content within the element.
<SCRIPT>
function fnCheckScroll(){
var iScrollWidth = oDiv.scrollWidth;
var iOffsetWidth = oDiv.offsetWidth;
var iDifference = iScrollWidth - iOffsetWidth;
alert("Width: " + iOffsetWidth
+ "\nContent Width: " + iScrollWidth
+ "\nDifference: " + iDifference);
}
</SCRIPT>
:
<DIV ID=oDiv STYLE="overflow:scroll; height=200; width=250;
text-align:left">
:
</DIV>
<INPUT TYPE=button VALUE="Check scrollWidth"
onclick="fnCheckScroll()">
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FORM, HEAD, Hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING,
MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollWidth Property sectionRowIndex Property
Web Workshop | DHTML, HTML & CSS
search Property
Sets or retrieves the substring of the href property that follows the question mark.
Syntax
HTML N/A
Scripting object.search [ =sSearch ]
Possible Values
The substring that follows the question mark is the query string or form data.
Applies To
A, AREA, location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
search Property SELECTED Attribute | sele...
Web Workshop | DHTML, HTML & CSS
sectionRowIndex Property
Retrieves the position of the object in the TBODY, THEAD, TFOOT, or rows collection.
Syntax
HTML N/A
Scripting [ iIndex = ] oTR.sectionRowIndex
Possible Values
Remarks
The TBODY, THEAD, and TFOOT sections are mutually exclusive, so a TR is always
contained in one of these sections and in the TABLE. The rowIndex property indicates
the position of the object in the rows collection for the TABLE. Collection indexes are
in source order of the HTML document.
Applies To
HTML N/A
Scripting TR
See Also
cellIndex, sourceIndex
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SELECTED Attribute | sele... selectorText Prope
Web Workshop | DHTML, HTML & CSS
selectedIndex Property
Sets or retrieves the index of the selected option in a SELECT object.
Syntax
HTML N/A
Scripting select.selectedIndex [ = iIndex ]
Possible Values
Options in a SELECT object are indexed in the order in which they are defined, starting
with an index of 0. When you set the selectedIndex property, the display of the
SELECT object updates immediately.
The selectedIndex property returns -1 if a SELECT object does not contain any
selected items. Setting the selectedIndex property clears any existing selected items.
The selectedIndex property is most useful when used with SELECT objects that
support selecting only one item at a time—that is, those in which the MULTIPLE
attribute is not specified. If the MULTIPLE attribute is specified for a SELECT object,
the selectedIndex property returns only the index of the first selected item, if any.
The selected property is most useful when used with SELECT objects that support
selecting more than one item at a time—that is, those in which the MULTIPLE
attribute is specified. You can use the selected property to determine whether an
individual item in a SELECT object is selected. In addition, selected items are not
cleared when the selected property is set. This allows multiple items in the list to be
selected at the same time.
Example
This example uses the selectedIndex property to retrieve individual values from a
SELECT object. When a site is selected from the list, the browser displays the
associated page.
<SELECT onchange="window.location.href=this.options
[this.selectedIndex].value">
<OPTION VALUE="http://www.microsoft.com/ie">
Internet Explorer</OPTION>
<OPTION VALUE="http://www.microsoft.com">
Microsoft Home</OPTION>
<OPTION VALUE="http://msdn.microsoft.com">
Developer Network</OPTION>
</SELECT>
Applies To
HTML N/A
Scripting SELECT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
selectedIndex Property self Property DHTML P
Web Workshop | DHTML, HTML & CSS
selectorText Property
Retrieves a string that identifies which elements the corresponding rule applies to.
Syntax
HTML N/A
Scripting [ sSelectorText= ] rule.selectorText
Possible Values
Remarks
A selector can be either a simple selector (such as 'H1'), or a contextual selector (such
as 'H1 B') that consists of several simple selectors.
Applies To
rule
See Also
rules
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SHAPE Attribute | shape P... SIZE Attribute | si
Web Workshop | DHTML, HTML & CSS
shiftKey Property
Retrieves the state of the SHIFT key.
Syntax
HTML N/A
Scripting [ bKey = ] event.shiftKey
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
shiftKey Property SIZE Attribute | size Pro...
Web Workshop | DHTML, HTML & CSS
SIZE Attribute | size Property
Sets or retrieves the font size of the object.
Syntax
Possible Values
iSize Integer that specifies the font size within a range of 1 through 7, with 7 representing the largest font.
BASEFONT, FONT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SIZE Attribute | size Pro... SIZE Attribute | size
Web Workshop | DHTML, HTML & CSS
SIZE Attribute | size Property
Sets or retrieves the height of the HR object.
Syntax
Possible Values
HR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SIZE Attribute | size Pro... SPAN Attribute | spa
Web Workshop | DHTML, HTML & CSS
sourceIndex Property
Retrieves the ordinal position of the object, in source order, as the object appears in the all
collection.
Syntax
HTML N/A
Scripting [ iIndex = ] object.sourceIndex
Possible Values
Example
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LI, LINK, LISTING, MAP,
MARQUEE, MENU, META, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB,
SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
sourceIndex Property specified Property DHT
Web Workshop | DHTML, HTML & CSS
SPAN Attribute | span Property
Sets or retrieves the number of columns in the group.
Syntax
Possible Values
The span property is ignored when set on the COLGROUP element and COLGROUP
contains one or more COL elements. The span property provides a more convenient
way of grouping columns without having to specify COL objects.
Example
This example uses the SPAN attribute to set the COL object to SPAN=2, which causes
the COL to span two columns. The text is right-aligned in these two columns.
<TABLE BORDER>
<COLGROUP>
<COL SPAN=2 ALIGN=RIGHT>
<COL ALIGN=LEFT>
<TBODY>
<TR>
<TD>This is the first column in the group, and it is
right-aligned.</TD>
<TD>This is the second column in the group, and it is
right-aligned.</TD>
<TD>This is the third column in the group, and it is
left-aligned.</TD>
</TR>
</TABLE>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
COL, COLGROUP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
specified Property S SRC Attribute | src Prope...
Web Workshop | DHTML, HTML & CSS
SRC Attribute | src Property
Retrieves the URL of a sound to be played.
Syntax
Possible Values
Applies To
BGSOUND
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
S SRC Attribute | src Prope... S SRC Attribute | src
Web Workshop | DHTML, HTML & CSS
SRC Attribute | src Property
Retrieves the URL to an external file that contains the source code or data.
Syntax
Possible Values
sURL String that specifies the URL of the source code or data.
Remarks
The SRC attribute first was available in Internet Explorer 3.02. The src property is
exposed through the object model as of Internet Explorer 4.0.
In Internet Explorer 5, the SRC attribute of the SCRIPT element can refer to an XML
data set if the LANGUAGE attribute is set to XML.
Applies To
SCRIPT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
S SRC Attribute | src Prope... sr srcFilter Property
Web Workshop | DHTML, HTML & CSS
srcElement Property
Retrieves the object that fired the event.
Syntax
HTML N/A
Scripting [ oObject = ] event.srcElement
Possible Values
Example
This example uses the srcElement property to retrieve the parent object, if needed,
create the text range, move to the original object, and select the first word in the
object.
<SCRIPT LANGUAGE="JScript">
function selectWord() {
var oSource = window.event.srcElement ;
if (!oSource.isTextEdit)
oSource = window.event.srcElement.parentTextEdit;
if (oSource != null) {
var oTextRange = oSource.createTextRange();
oTextRange.moveToElementText(window.event.srcElement);
oTextRange.collapse();
oTextRange.expand("word");
oTextRange.select();
}
}
</SCRIPT>
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
sr srcElement Property sr srcUrn Property DHTML
Web Workshop | DHTML, HTML & CSS
srcFilter Property
Retrieves the filter object that caused the onfilterchange event to fire.
Syntax
HTML N/A
Scripting [ sSrcFilter = ] event.srcFilter
Possible Values
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
sr srcFilter Property START Attribute | start P...
Web Workshop | DHTML, HTML & CSS
srcUrn Property
Retrieves the Uniform Resource Name (URN) of the behavior that fired the event.
I
Syntax
HTML N/A
Scripting [sUrn = ] event.srcUrn
Possible Values
Remarks
This property is set to null unless both of the following conditions are true:
Applies To
event
See Also
behaviorUrns, urns
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
sr srcUrn Property start Property DHTML Proper
Web Workshop | DHTML, HTML & CSS
START Attribute | start Property
Sets or retrieves the starting number for an ordered list.
Syntax
Possible Values
HTML N/A
Scripting OL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
START Attribute | start P... status Property DH
Web Workshop | DHTML, HTML & CSS
start Property
Sets or retrieves when a video clip file should begin playing.
Syntax
Possible Values
The start property applies only to IMG objects with the DYNSRC attribute specified.
Applies To
HTML N/A
Scripting IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
start Property status Property DHTML Propert
Web Workshop | DHTML, HTML & CSS
status Property
Sets or retrieves the message in the status bar at the bottom of the window.
Syntax
HTML N/A
Scripting window.status [ =sStatus ]
Possible Values
Do not confuse the status property with the defaultStatus property. The
defaultStatus property specifies the default message displayed in the status bar.
Applies To
HTML N/A
Scripting window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
status Property STYLE Attribute DHTML Prope
Web Workshop | DHTML, HTML & CSS
status Property
Sets or retrieves whether the check box or radio button is selected.
Syntax
HTML N/A
Scripting object.status [ = bStatus ]
Possible Values
This example uses the status property to control a check box that is disabled by
default.
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STYLE Attribute TABINDEX Attribute | tabI...
Web Workshop | DHTML, HTML & CSS
systemLanguage Property
Retrieves the default language used by the system.
Syntax
HTML N/A
Scripting [ sLanguage = ] navigator.systemLanguage
Possible Values
sLanguage String that specifies any of the values described in Language Codes.
Applies To
HTML N/A
Scripting clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
systemLanguage Property table-layout Attribut
Web Workshop | DHTML, HTML & CSS
TABINDEX Attribute | tabIndex Property
Sets or retrieves the index within the tab selection order of the object.
Syntax
Possible Values
iIndex Non-negative integer that specifies the tab index. To remove the object from the tab selection order, use -1.
1. All objects with a tabIndex greater than 0 are selected in increasing tab index
order, or all objects with duplicate tabIndex values are selected in source order.
2. All objects with a tabIndex equal to 0, or without tabIndex set, are selected
next, in source order.
3. Elements with a negative tabIndex are omitted from the tabbing order.
The valid range of values for the tabIndex property is -32767 to 32767.
The following elements can have focus and are tab stops by default: A, BODY,
BUTTON, EMBED, FRAME, IFRAME, IMG, INPUT, ISINDEX, OBJECT, SELECT,
TEXTAREA.
The following elements can have focus by default but are not tab stops; however, they
can be set as tab stops: APPLET, DIV, FRAMESET, SPAN, TABLE, TD.
You can set the THEAD and TFOOT elements to participate in the tabbing sequence,
but they do not highlight when receiving focus.
As of Internet Explorer 5, scoped elements support the tabIndex property and can
have focus. These elements are not tab stops and do not have focus by default.
Setting the tabIndex property to a valid positive integer makes the element a tab
stop. The element can have focus if the tabIndex property is set to any valid negative
or positive integer.
Elements that receive focus can fire the onblur and onfocus events as of Internet
Explorer 4.0, and the onkeydown, onkeypress, and onkeyup events as of Internet
Explorer 5.
Example
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tagName Property TARGET Attribute | target...
Web Workshop | DHTML, HTML & CSS
tagUrn Property
Retrieves the Uniform Resource Name (URN) specified in the namespace declaration.
Syntax
HTML N/A
Scripting [ sUrn = ] object.tagUrn
Possible Values
sUrn String that specifies the URN in the namespace declaration, or the following value:
null Returned for standard HTML tags, or for custom tags that omit the namespace declaration.
Remarks
To declare the namespace in the document, use the XMLNS attribute of the HTML
element.
Example
This example uses the values returned by the scopeName and tagUrn properties to
create a simple HelloWorld custom tag. The browser's status bar displays the property
values.
<HTML XMLNS:InetSDK='http://msdn.microsoft.com/workshop'>
<STYLE>
@media all {
InetSDK\:HelloWorld { behavior:url (simple.htc) }
}
</STYLE>
<SCRIPT>
function window.onload()
{
window.status = 'scopeName = ' + hello.scopeName +
'; tagUrn = ' + hello.tagUrn;
}
</SCRIPT>
<BODY>
<InetSDK:HelloWorld ID='hello'></InetSDK:HelloWorld>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tagUrn Property text Property DHTML Propert
Web Workshop | DHTML, HTML & CSS
TARGET Attribute | target Property
Sets or retrieves the window or frame at which to target the contents.
Syntax
Possible Values
If there is no frame or window that matches the specified target, a new window is
opened for the link.
The default value for target depends on the URL and site. If the user does not leave
the site, the default is _self, but if the user exits to a new site, the default is _top.
Example
This example uses the TARGET attribute to specify a link that loads the page into the
topmost frame of the current frameset.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TARGET Attribute | target... TEXT Attribute | te
Web Workshop | DHTML, HTML & CSS
text Property
Sets or retrieves the text contained within the range.
Syntax
HTML N/A
Scripting TextRange.text [ =sTxt ]
Possible Values
The text formats within the current context of the document. You cannot set this
property while the document is loading. Wait for the onload event before attempting to
set this property.
This feature might not be available on non-Win32® platforms. For the latest
information about Microsoft® Internet Explorer cross-platform compatibility, see article
q172976 in the Microsoft Knowledge Base.
I
Applies To
HTML N/A
Scripting TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text Property text Property DHTML Properties
Web Workshop | DHTML, HTML & CSS
TEXT Attribute | text Property
Sets or retrieves the text (foreground) color for the document body.
Syntax
Possible Values
sColor String that specifies any of the color names or values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Example
This example uses the text property to change the text color of the body.
<BODY ID="oBody">
:
<BUTTON onmouseover="oBody.text='green'">GREEN</BUTTON>
<BUTTON onmouseover="oBody.text='red'">RED</BUTTON>
<BUTTON onmouseover="oBody.text='blue'">BLUE</BUTTON>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TEXT Attribute | text Pro... text Property DHT
Web Workshop | DHTML, HTML & CSS
text Property
Retrieves the text of the block object as a string.
Syntax
HTML N/A
Scripting [ sTxt=]object.text
Possible Values
Applies To
HTML N/A
Scripting SCRIPT, TITLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text Property text-align Attribute | te... DHTM
Web Workshop | DHTML, HTML & CSS
text Property
Sets or retrieves the text string specified by the OPTION tag.
Syntax
HTML N/A
Scripting object.text [ = sTxt ]
Possible Values
The text and value properties are distinct from one another. Changing the text
property does not alter an existing value, which is set within the option.
Example
This example uses the text property to change the text string of each OPTION each
time the user selects an option.
Applies To
HTML N/A
Scripting OPTION
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-align Attribute | te... text-decoration Attrib
Web Workshop | DHTML, HTML & CSS
text-autospace Attribute | textAutospace Property
Sets or retrieves the autospacing and narrow space width adjustment of text.
Syntax
Possible Values
The property is read/write with a default value of none; the cascading style sheets
(CSS) attribute is inherited.
Remarks
An ideograph is a character in the East Asian writing system that represents a concept
or an idea, but not a particular word or phrase.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, HEAD, Hn, HR, HTML,
I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT,
SMALL, SPAN, STRIKE, STRONG, styleSheet, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
textDecorationBlink Prope... textDecorationNon
Web Workshop | DHTML, HTML & CSS
textDecorationLineThrough Property
Sets or retrieves whether the text in the object has a line drawn through it.
Syntax
HTML N/A
Scripting object.style.textDecorationLineThrough [ = bLineThrough ]
Possible Values
<P onclick="this.style.textDecorationLineThrough=true;">
Click this if you think it's unimportant.
</P>
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
textDecoration
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
textDecorationLineThrough... textDecorationOv
Web Workshop | DHTML, HTML & CSS
textDecorationNone Property
Sets or retrieves whether the textDecoration property for the object has been set to none.
Syntax
HTML N/A
Scripting object.style.textDecorationNone [ =bDecoration ]
Possible Values
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
textDecoration
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
textDecorationNone Proper... textDecorationUn
Web Workshop | DHTML, HTML & CSS
textDecorationOverline Property
Sets or retrieves whether the text in the object has a line drawn over it.
Syntax
HTML N/A
Scripting object.style.textDecorationOverline [ = bOverline ]
Possible Values
This example uses the textDecorationOverline property to draw a line over the text
when the user moves the mouse over the text.
<P onmouseover="this.style.textDecorationOverline=true;">
Mouse over this text for an overline.
</P>
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
textDecoration
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
textDecorationOverline Pr... text-indent Attribut
Web Workshop | DHTML, HTML & CSS
textDecorationUnderline Property
Sets or retrieves whether the text in the object is underlined.
Syntax
HTML N/A
Scripting object.style.textDecorationUnderline [ = bUnderline ]
Possible Values
This example uses the textDecorationUnderline property to underline the text when
the user clicks the text with the mouse.
<P onclick="this.style.textDecorationUnderline=true;">
Click this if you think it's important.
</P>
Applies To
A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD, DFN, DIR, DIV, DL, DT, EM,
FIELDSET, FORM, Hn, HTML, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P,
PLAINTEXT, PRE, runtimeStyle, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
textDecoration
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-transform Attribute ... tHead Property DH
Web Workshop | DHTML, HTML & CSS
tFoot Property
Retrieves the TFOOT object of the TABLE.
Syntax
HTML N/A
Scripting [ oTFoot = ] table.tFoot
Possible Values
Remarks
Example
document.all.myTable.tFoot.style.color = "blue"
Applies To
HTML N/A
Scripting TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tFoot Property TITLE Attribute | title P... DHT
Web Workshop | DHTML, HTML & CSS
tHead Property
Retrieves the THEAD object of the TABLE.
Syntax
HTML N/A
Scripting [ oTHead = ] table.tHead
Possible Values
Remarks
Example
document.all.myTable.tHead.style.color = "blue"
Applies To
HTML N/A
Scripting TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tHead Property TITLE Attribute | title P... DHT
Web Workshop | DHTML, HTML & CSS
TITLE Attribute | title Property
Sets or retrieves the title of the style sheet.
Syntax
Possible Values
Applies To
LINK
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TITLE Attribute | title P... toElement Property
Web Workshop | DHTML, HTML & CSS
TITLE Attribute | title Property
Sets or retrieves advisory information (a ToolTip) for the object.
Syntax
Possible Values
Internet Explorer renders the title as a ToolTip when the user hovers the mouse over
the object.
Windows CE
In Microsoft® Windows® CE, ToolTips do not appear when a user hovers the mouse
pointer over objects.
Example
This example uses the title property to display advisory text when the user hovers the
mouse pointer over the text.
<SCRIPT>
function boldAdvise(src) {
src.title="this is bold text";
return;
}
</SCRIPT>
:
<SPAN onmouseover="boldAdvise(this)">bold section</SPAN>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CITE, CODE, COLGROUP, custom, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
TITLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
top Property TOPMARGIN Attribute | top... DH
Web Workshop | DHTML, HTML & CSS
top Property
Retrieves the top coordinate of the rectangle surrounding the object content.
Syntax
HTML N/A
Scripting [ iCoord = ] oTextRectangle.top
Possible Values
iCoord Integer that specifies the top coordinate of the rectangle, in pixels.
Remarks
Use this syntax to access the top coordinate of the second text rectangle of a
TextRange object:
oRct = oTextRange.getClientRects();
oRct[1].top;
Note that the collection index starts at 0, so the second item index is 1.
To access the top coordinate of the bounding rectangle of an object, use this syntax:
oBndRct = oElement.getBoundingClientRect();
oBndRct.top;
Example
<SCRIPT>
function getCoords(oObject) {
oBndRct=oObject.getBoundingClientRect();
alert("Bounding rectangle = \nUpper left coordinates: "
+ oBndRct.left + " " + oBndRct.top +
"\nLower right coordinates: "
+ oBndRct.right + " " + oBndRct.bottom);
}
</SCRIPT>
</HEAD>
<BODY>
<P ID=oPara onclick="getCoords(this)">
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
TextRectangle
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
top Property TRUESPEED Attribute | tru... DH
Web Workshop | DHTML, HTML & CSS
TOPMARGIN Attribute | topMargin Property
Sets or retrieves the margin for the top of the page.
Syntax
Possible Values
iMargin Integer that specifies the top margin of the body, in pixels.
If the value is set to "0" or "", the top margin is on the top edge of the window or
frame.
Applies To
BODY
See Also
leftMargin
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TOPMARGIN Attribute | top... TYPE Attribute | t
Web Workshop | DHTML, HTML & CSS
TRUESPEED Attribute | trueSpeed Property
Sets or retrieves whether the position of the marquee is calculated using the scrollDelay
and scrollAmount properties and the actual time elapsed from the last clock tick.
Syntax
Possible Values
The trueSpeed property indicates that the exact scrollDelay value specified is used
to move the marquee text. If trueSpeed is false, all scrollDelay values of 59 or less
are rounded up to 60 milliseconds.
Applies To
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... TYPE Attribute | typ
Web Workshop | DHTML, HTML & CSS
type Property
Retrieves the type of selection.
Syntax
HTML N/A
Scripting [ sType = ] selection.type
Possible Values
Remarks
Example
This example uses the type property to create an alert that indicates the type of
object selected by the user. If the user drags the mouse pointer over the text "Some
text", the alert reads "Text". If the user drags the mouse pointer over the space to the
right of the text, the alert reads "None".
<BODY onclick="alert(document.selection.type)">
Some text.
Applies To
HTML N/A
Scripting selection
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
type Property TYPE Attribute | type Pro... DHT
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Retrieves the cascading style sheets (CSS) language in which the style sheet is written.
Syntax
Possible Values
sType String that specifies the CSS language of the style sheet.
Remarks
The property can be any string, including an empty string. Valid style sheets for
Microsoft® Internet Explorer 4.0 are set to "text/css".
Applies To
STYLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... type Property DHT
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Retrieves the classification and default behavior of the button.
Syntax
Possible Values
Remarks
A Submit button has the same default behavior as a button created using the submit
type with the INPUT object. If a user presses the ENTER key while viewing a form that
contains a Submit button, the form is submitted. This default behavior of a Submit
button is indicated by a border surrounding the button. The border appears when any
control within the form receives the focus, other than another button. If the Submit
button has a name property, the button contributes a name/value pair to the
submitted data.
Applies To
BUTTON
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... TYPE Attribute | typ
Web Workshop | DHTML, HTML & CSS
type Property
Retrieves the event name from the event object.
Syntax
HTML N/A
Scripting [ sType = ] event.type
Possible Values
Remarks
Events are returned without the "on" prefix. For example, the onclick event is
returned as "click".
Applies To
HTML N/A
Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
type Property type Property DHTML Propertie
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Sets or retrieves the MIME type of the object.
Syntax
Possible Values
When no CLASSID= attribute is specified for an object, the type property is used to
retrieve the class identifier for the object.
Applies To
OBJECT
See Also
data
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... TYPE Attribute | typ
Web Workshop | DHTML, HTML & CSS
type Property
Retrieves the cascading style sheets (CSS) language in which the style sheet is written.
Syntax
HTML N/A
Scripting [ sType = ] styleSheet.type
Possible Values
sType String that specifies the CSS language of the style sheet.
Remarks
This property can be any string, including an empty string. Style sheets having any
type other than "text/css" are not supported for Microsoft® Internet Explorer 4.0.
Applies To
HTML N/A
Scripting styleSheet
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... unicode-bidi Attribu
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
Retrieves the MIME type for the associated scripting engine.
Syntax
Possible Values
Remarks
The property can refer to any browser-supported scripting language specified in the
Possible Values section.
To avoid conflict, match the type with the language type specified in the language
property.
Applies To
SCRIPT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
unicode-bidi Attribute | ... UNITS Attribute | un
Web Workshop | DHTML, HTML & CSS
uniqueID Property
Retrieves an auto-generated, unique identifier for the object.
Syntax
HTML N/A
Scripting [ sID = ] object.uniqueID
Possible Values
Remarks
When you apply this property to the document object, the browser automatically
generates a new identifier that you can assign to an element's ID property.
A new ID is generated and assigned to the element the first time the property is
retrieved. Every subsequent access to the property on the same element returns the
same ID.
Note The unique identifier generated is not guaranteed to be the same every time the
page is loaded.
Example
The following examples use the uniqueID property within an HTML Component (HTC)
to assign a unique identifier to an element.
This example assigns a uniqueID to an element from within a behavior. Every time
the setTimeout method is invoked, the behavior-defined tick() function is called. The
uniqueID attaches the element to the tick() function defined in the behavior's
namespace.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
uniqueID Property updateInterval Property D
Web Workshop | DHTML, HTML & CSS
UNITS Attribute | units Property
Sets or retrieves the height and width units of the EMBED object.
Syntax
Possible Values
EMBED
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
UNITS Attribute | units P... URL Property DHT
Web Workshop | DHTML, HTML & CSS
updateInterval Property
Sets or retrieves the update interval for the screen.
Syntax
HTML N/A
Scripting screen.updateInterval [ =iInterval ]
Possible Values
The updateInterval property can be set to an integer value specifying the number of
milliseconds between updates to the screen. A value of 0 disables the update interval.
The interval causes screen updates to be buffered and then drawn in the specified
millisecond intervals. This limits excessive invalidations that reduce the overall painting
performance, which can happen when too many flipbook-style animations occur at
once.
Use this property judiciously; a value too small or too large adversely affects the page
rendering response.
Applies To
HTML N/A
Scripting screen
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
updateInterval Property URN Attribute | urn Pro
Web Workshop | DHTML, HTML & CSS
URL Property
Sets or retrieves the URL for the current document.
Syntax
HTML N/A
Scripting document.URL [ =sURL ]
Possible Values
Applies To
HTML N/A
Scripting document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
URL Property USEMAP Attribute | useMap... D
Web Workshop | DHTML, HTML & CSS
URN Attribute | urn Property
Sets or retrieves a Uniform Resource Name (URN) for a target document.
Syntax
Possible Values
URNs are an adjunct to Uniform Resource Locators (URL). URLs, the addresses used on
the World Wide Web, usually specify a particular file on a particular machine, whereas
URNs specify the identity of a resource, rather than its location.
Applies To
See Also
URL
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
userAgent Property VALIGN Attribute | vAlign..
Web Workshop | DHTML, HTML & CSS
userLanguage Property
Retrieves the current user language.
Syntax
HTML N/A
Scripting [ sLanguage = ] navigator.userLanguage
Possible Values
sLanguage String that specifies any of the possible return values listed in the Language Codes.
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
userLanguage Property VALIGN Attribute | vAlig
Web Workshop | DHTML, HTML & CSS
VALIGN Attribute | vAlign Property
Sets or retrieves whether the caption appears at the top or bottom of the TABLE.
Syntax
Possible Values
CAPTION
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VALIGN Attribute | vAlign... value Property D
Web Workshop | DHTML, HTML & CSS
VALIGN Attribute | vAlign Property
Sets or retrieves how text and other content are vertically aligned within the object that
contains them.
Syntax
Possible Values
See Also
verticalAlign
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VALIGN Attribute | vAlign... VALUE Attribute | v
Web Workshop | DHTML, HTML & CSS
value Property
Sets or retrieves the value of the object.
Syntax
HTML N/A
Scripting object.value [ = sValue ]
Possible Values
In this example, when the user clicks the text area, the alert displays the value "This is
the value of a TEXTAREA".
<TEXTAREA onclick="alert(this.value)">
This is the value of a TEXTAREA.
</TEXTAREA>
Applies To
TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VALUE Attribute | value P... verticalAlign Proper
Web Workshop | DHTML, HTML & CSS
VCARD_NAME Attribute | vcard_name Property
Sets or retrieves the vCard value of the object to use for the AutoComplete box.
Syntax
Possible Values
If the VCARD_NAME attribute is not specified, the name of the text field is used to
map the submitted information. However, information from the Profile Assistant is not
used.
Even though you can map PASSWORD values for AutoComplete, the browser can
disable the ability to store this information. When this occurs, the browser prompts the
user for a confirmation before storing the value.
The object model and a Web page do not have access to information provided by the
AutoComplete feature until the user selects one of the suggestions for the text field.
This example uses the VCARD_NAME attribute to map the value of the text field to
the e-mail address specified by the Profile Assistant.
<INPUT
TYPE = text NAME= "CustomerEmail"
VCARD_NAME = "vCard.Email"
>
Applies To
INPUT_password, INPUT_text
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
visited Pseudo-class vlinkColor Property DHTM
Web Workshop | DHTML, HTML & CSS
VLINK ATTRIBUTE | vLink Property
Sets or retrieves the color of links in the object that have already been visited.
Syntax
Possible Values
sColor String that specifies one of the color names or values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize red-
green-blue (RGB) color values and display them correctly.
Applies To
BODY
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VLINK ATTRIBUTE | vLink P... VOLUME Attribute
Web Workshop | DHTML, HTML & CSS
vlinkColor Property
Sets or retrieves the color of the links that the user has visited.
Syntax
HTML N/A
Scripting document.vlinkColor [ =sColor ]
Possible Values
sColor String that specifies one of the color names or values in the Color Table.
Some browsers do not recognize color names, but all browsers should recognize red-
green-blue (RGB) color values and display them correctly.
Applies To
HTML N/A
Scripting document
See Also
alinkColor, linkColor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
vlinkColor Property VSPACE Attribute | vspace.
Web Workshop | DHTML, HTML & CSS
VOLUME Attribute | volume Property
Retrieves the volume setting for the sound.
Syntax
Possible Values
iVolume Integer that specifies the volume setting. Valid values range from -10,000 to 0, with 0 being full Wave Output volume.
Remarks
Applies To
BGSOUND
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VOLUME Attribute | volume... WHITESPACE Att
Web Workshop | DHTML, HTML & CSS
VSPACE Attribute | vspace Property
Sets or retrieves the vertical margin for the object.
Syntax
Possible Values
This property is similar to border, except the margins don't have color when the object
is a link.
Applies To
See Also
hspace
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
VSPACE Attribute | vspace... width Property D
Web Workshop | DHTML, HTML & CSS
WHITESPACE Attribute | whiteSpace Property
Property not implemented.
See Also
CSS Attributes
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
WHITESPACE Attribute | wh... WIDTH Attribute
Web Workshop | DHTML, HTML & CSS
width Property
Retrieves the horizontal resolution of the screen.
Syntax
HTML N/A
Scripting [ iWidth = ] screen.width
Possible Values
Applies To
HTML N/A
Scripting screen
See Also
availWidth, height
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
width Property width Attribute | width P... DH
Web Workshop | DHTML, HTML & CSS
WIDTH Attribute | width Property
Sets or retrieves the calculated width of the object.
Syntax
Possible Values
This property is read/write for the IMG object and read-only for other objects. There is
no default value.
Remarks
If you specify the width property of an IMG, but not the height property, the resulting
height of the IMG is sized proportionally to the specified width property and the
actual height, in pixels, of the source image file. Consider the following example:
If you specify the width property of an IMG, and the height and width of the image in
the source file are identical, the height of the image matches the width.
If you specify the height property and the width property of an IMG, the resulting
image dimensions match the height and width specified.
Although you can specify the width as a percentage, this property always retrieves the
width in pixels.
Example
This example sets the width of the image to 20 pixels regardless of the original size of
the image.
Applies To
COL, COLGROUP, EMBED, FRAME, HR, IMG, MARQUEE, OBJECT, TABLE, TD, TH, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
WORDSPACING Attribute | w... x Property DH
Web Workshop | DHTML, HTML & CSS
WRAP Attribute | wrap Property
Sets or retrieves how to handle wordwrapping in the object.
Syntax
Possible Values
To detect the difference between soft and hard you must submit the content within
the TEXTAREA to an HTTP server.
Example
This example dynamically sets the wrap property of a TEXTAREA to the value
selected by the user.
<SCRIPT>
function ChangeWrap(oSelect, oTA)
{
cValue = oSelect.options(oSelect.selectedIndex).value;
oTA.wrap = cValue;
}
</SCRIPT>
...
<SELECT ID=cboWrap onchange="ChangeWrap(this, txt1)">
<OPTION VALUE=soft>soft
<OPTION VALUE=hard>hard
<OPTION VALUE=off>off
</SELECT>
<P>
<TEXTAREA ID=txt1 STYLE="height:200;width:200"></TEXTAREA>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
WRAP Attribute | wrap Pro... XMLDocument Pro
Web Workshop | DHTML, HTML & CSS
x Property
Retrieves the x-coordinate of the mouse pointer's position relative to the parent element.
Syntax
HTML N/A
Scripting [ iX = ] event.x
Possible Values
Remarks
If the mouse is outside the window when the event is called, this property returns -1.
If an element is absolutely positioned and fires a mouse event, or is not the child of an
absolutely positioned element, the x property returns a coordinate relative to the
BODY element.
Example
This example displays the current mouse position in the browser's status window.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
x Property XMLNS Attribute DHTML Properties
Web Workshop | DHTML, HTML & CSS
XMLDocument Property
Retrieves a reference to the XML Document Object Model (DOM) exposed by the object.
Syntax
HTML N/A
Scripting [ oXMLObject = ] object.XMLDocument
Possible Values
oXMLObject Object that specifies a reference to the XML DOM exposed by the object.
Remarks
For a complete description of the XML DOM exposed by the XMLDocument property,
see the xml dom reference .
I
Example
This example uses the XMLDocument property to access the object model of an XML
data island.
Applies To
XML
See Also
persistence
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
XMLNS Attribute z-index Attribute | zInde... D
Web Workshop | DHTML, HTML & CSS
y Property
Retrieves the y-coordinate of the mouse pointer's position relative to the parent element.
Syntax
HTML N/A
Scripting [ iY = ] event.y
Possible Values
Remarks
If the mouse is outside the window at the time the event fires, this property returns
-1. If an element is absolutely positioned and fires a mouse event, or is not the child of
an absolutely positioned element, the y property returns a coordinate relative to the
BODY element.
Example
This example displays the current mouse position in the browser's status window.
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
elementFromPoint Method execCommand Meth
Web Workshop | DHTML, HTML & CSS
empty Method
Deselects the current selection, sets the selection type to none, and sets the item property
to null.
Syntax
selection.empty()
Return Value
No return value.
Applies To
selection
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
execCommand Method expand Method DHTM
Web Workshop | DHTML, HTML & CSS
execScript Method
Executes the specified script in the provided language.
Syntax
window.execScript(sExpression, sLanguage)
Parameters
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
children Collection elements Collection DHTM
Web Workshop | DHTML, HTML & CSS
controlRange Collection
Returns an array of elements specified in the createControlRange method.
Syntax
[collRange= ] document.body.createControlRange()
Possible Values
Remarks
Instead of using the collection's item method, you can use an index to directly access
an element in the collection. For example, the element returned from the collection
represented by collRange(0) is the same as the element returned by
collRange.item(0).
Members
See Also
createControlRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
print Method queryCommandEnabled Metho...
Web Workshop | DHTML, HTML & CSS
prompt Method
Displays a dialog box that prompts the user with a message and an input field.
Syntax
Parameters
sMessage Optional. String that specifies the message to display in the dialog box. By default, this parameter is set to "".
sDefaultValue Optional. String that specifies the default value of the input field. By default, this parameter is set to "undefined".
Return Value
Remarks
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
queryCommandValue Method refresh Method
Web Workshop | DHTML, HTML & CSS
recalc Method
Recalculates all dynamic properties in the current document.
Syntax
document.recalc([bForceAll])
Parameters
Return Value
No return value.
Remarks
Implicit dependencies, internal property changes, and related properties can cause
some expressions not to recalculate, even though the properties being referenced
might have changed. For example, resizing the main window changes
document.body.clientWidth. Expressions that reference clientWidth might not be
recalculated, because the change might not be recognized.
Related properties can access or manipulate data or behaviors through one or more
other properties. For example, pixelLeft and posLeft can set or retrieve the left position
of the element. However, if an expression that references element.pixelLeft and
element.posLeft is altered, the expression might not be recalculated on subsequent
calls to recalc.
Related properties that can cause this behavior include the following: clientHeight,
clientLeft, clientTop, clientWidth, height, left, offsetHeight, offsetLeft, offsetTop,
offsetWidth, pixelHeight, pixelLeft, pixelTop, pixelWidth, posHeight, posLeft, posTop,
posWidth, and top.
To force recalculations of all expressions, you should refer to the same property name
or manually call recalc(true).
Example
The following examples use the recalc method in HTML and script to change the width
of an element by the value specified in a text field.
Applies To
document
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BackColor Command | IDM_B... BlockDirRTL Co
Web Workshop | DHTML, HTML & CSS
BlockDirLTR Command | IDM_BLOCKDIRLTR Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop
Further Reading
The descriptions for the following items are contained in the
Microsoft® platform software development kit (SDK).
I
ACCELERATEABSDI
AccessibleObjectFromEvent
AddRef
BindMoniker
BORDERWIDTHS
BSTR
CB_DELETESTRING
CB_FINDSTRINGEXACT
CB_GETCOUNT
CB_GETCURSEL
CB_GETDROPPEDCONTROLRECT
CB_GETDROPPEDSTATE
CB_GETEXTENDEDUI
CB_GETITEMDATA
CB_GETITEMHEIGHT
CB_GETLBTEXT
CB_GETLBTEXTLEN
CB_LIMITTEXT
CB_RESETCONTENT
CB_SELECTSTRING
CB_SETCURSEL
CB_SETDROPPEDWIDTH
CB_SETEXTENDEDUI
CB_SETITEMDATA
CB_SETITEMHEIGHT
CB_SHOWDROPDOWN
CloseHandle
CLSCTX
CLSIDFromProgID
CoCreateInstance
CoInitialize
COLORREF
CoTaskMemAlloc
CoTaskMemFree
CoUninitialize
CreateDialogIndirect
CreateFile
CreateIcon
CreateProcess
CreateWindow
CreateWindowEx
DefDlgProc
DefWindowProc
DeleteMenu
DeleteObject
DestroyIcon
DestroyWindow
DEVMODE
DISMISSMODELESS
DispatchMessage
DLGITEMTEMPLATE
DLGTEMPLATE
DllCanUnloadNow
DllEntryPoint
DllGetClassObject
DllRegisterServer
DM_SETDEFID
DoDragDrop
DrawFrameControl
DRAWITEMSTRUCT
DrawText
DVTARGETDEVICE
EM_LIMITTEXT
EM_SETLIMITTEXT
EN_CHANGE
EN_KILLFOCUS
EN_UPDATE
EnableScrollBar
EndDialog
ERROR_INSUFFICIENT_BUFFER
EVENT_OBJECT_CREATE
EVENT_OBJECT_DESTROY
EVENT_OBJECT_FOCUS
EVENT_OBJECT_STATECHANGE
EXCEPINFO
ExitWindowsEx
ExtractAssociatedIcon
ExtractIcon
ExtractIconEx
FAILED
FD_FLAGS
FILETIME
FindFirstChangeNotification
FindFirstFile
FindResource
FindWindow
FlashWindow
FORMATETC
FormatMessage
FreeLibrary
GetClassFile
GetCurrentDirectory
GetCurrentTime
GetCursorPos
GetDCEx
GetFileAttributes
GetLastError
GetMessage
GetModuleHandle
GetParent
GetProcAddress
GetScrollInfo
GetScrollPos
GetScrollRange
GetSubMenu
GetSysColor
GetSystemMetrics
GetThreadPriority
GetWindowLong
GlobalAlloc
HPALETTE
HRESULT
IAccessible
IActiveDesktop
IAddrBook
IAdviseSink
IAdviseSink::OnViewChange
IBindCtx
IBindCtx::RegisterObjectBound
ICatRegister::RegisterClassImplCategories
IClassFactory
IClassFactory::CreateInstance
IClassFactory::LockServer
IClassFactory2
IConnectionPoint
IConnectionPoint::Unadvise
IConnectionPointContainer
IDataObject
IDataObject::EnumFormatEtc
IDataObject::GetData
IDataObject::GetDataHere
IDataObject::QueryGetData
IDataObject::SetData
IDispatch
IDispatch::GetIDsOfNames
IDispatch::GetTypeInfo
IDispatch::GetTypeInfoCount
IDispatch::Invoke
IDispatchEx
IDispatchEx::GetDispID
IDispatchEx::InvokeEx
IDropSource
IDropSource::GiveFeedback
IDropSource::QueryContinueDrag
IDropTarget
IDropTarget::DragEnter
IDropTarget::DragLeave
IDropTarget::DragOver
IDropTarget::Drop
IEnumFORMATETC
IEnumString
IEnumUnknown
IEnumVARIANT
IEnumXXXX
IErrorInfo
IMalloc
IMalloc::Free
IMAPIFolder
IMAPIProp
IMAPITable
IMessage
IMoniker
IMoniker::BindToObject
IMoniker::BindToStorage
IMoniker::GetDisplayName
IMoniker::ParseDisplayName
InsertMenu
IObjectWithSite
IObjectWithSite::SetSite
IOleCache2
IOleClientSite
IOleClientSite::GetContainer
IOleCommandTarget
IOleCommandTarget::Exec
IOleCommandTarget::QueryStatus
IOleContainer
IOleControl
IOleControlFreezeEvents
IOleControlSite
IOleControlSite::TranslateAccelerator
IOleInPlaceActiveObject
IOleInPlaceActiveObject::EnableModeless
IOleInPlaceActiveObject::OnDocWindowActivate
IOleInPlaceActiveObject::OnFrameWindowActivate
IOleInPlaceActiveObject::ResizeBorder
IOleInPlaceActiveObject::TranslateAccelerator
IOleInPlaceFrame
IOleInPlaceFrame::EnableModeless
IOleInPlaceFrame::InsertMenus
IOleInPlaceFrame::RemoveMenus
IOleInPlaceFrame::SetMenu
IOleInPlaceFrame::SetStatusText
IOleInPlaceObject
IOleInPlaceObject::InPlaceDeactivate
IOleInPlaceSite
IOleInPlaceSite::GetWindowContext
IOleInPlaceSite::OnInPlaceActivate
IOleInPlaceSite::OnUIActivate
IOleInPlaceSite::OnUIDeactivate
IOleInPlaceUIWindow
IOleItemContainer
IOleObject
IOleObject::Advise
IOleObject::DoVerb
IOleObject::GetUserClassID
IOleObject::GetUserType
IOleObject::SetClientSite
IOleWindow
IOleWindow::GetWindow
IParseDisplayName
IParseDisplayName::ParseDisplayName
IPerPropertyBrowsing
IPersist
IPersist::GetClassID
IPersist*
IPersist*::InitNew
IPersist*::Load
IPersist*::Save
IPersistFile
IPersistFile::GetCurFile
IPersistFile::IsDirty
IPersistFile::Load
IPersistFile::Save
IPersistFile::SaveCompleted
IPersistMoniker::Load
IPersistStorage
IPersistStorage::InitNew
IPersistStorage::Load
IPersistStream
IPersistStreamInit
IPersistStreamInit::InitNew
IPropertyNotifySink
IPropertyNotifySink::OnChanged
IProvideClassInfo
IProvideClassInfo2
IsDialogMessage
IServiceProvider
IServiceProvider::QueryService
IShellBrowser
ISimpleFrameSite
ISpecifyPropertyPages
IStorage
IStorage::CreateStorage
IStorage::CreateStream
IStorage::Stat
IStream
IStream::Read
ITypeInfo
IUnknown
IUnknown::AddRef
IUnknown::QueryInterface
IUnknown::Release
IViewObject::GetColorSet
IViewObject2
LBItemFromPoint
LoadIcon
LoadImage
LoadLibrary
LoadResource
LocalAlloc
LocalFree
LOGBRUSH
LOGFONT
LOGPEN
MAKEINTRESOURCE
MAPI
MAPIAllocateBuffer
MAPIAllocateMore
MAPIFreeBuffer
MAPINAMEID
MapWindowPoints
MessageBox
MkParseDisplayName
MoveWindow
MSG
NETRESOURCE
OLECMDF
OLECMDID
OLECMDEXECOPT
OleCreateFromData
OleCreateFromFile
OLEExec
OLEGETMONIKER
OleInitialize
OleLoad
OleLoadFromStream
OleRun
OleSave
OleUninitialize
OLEWHICHMK
PeekMessage
POINT
POINTL
POINTS
PostMessage
PostQuitMessage
QueryInterface
QueryService
QueryStatus
ReadFile
RECT
RegEnumValue
RegisterClipboardFormat
RegisterDragDrop
RegisterHotKey
RegisterWindowMessage
Release
ResultFromScode
RevokeDragDrop
SAFEARRAY
SCROLLINFO
SECURITY_ATTRIBUTES
SendMessage
SetBkColor
SetCurrentDirectory
SetFocus
SetMenu
SetParent
SetScrollInfo
SetScrollPos
SetScrollRange
SetTextColor
SetThreadPriority
SetWindowLong
SetWindowPos
SetWindowRgn
SetWindowText
ShowCursor
ShowScrollBar
ShowWindow
SIZE
SOANGLE
SOCOLORREF
SOMAXPOINTS
SOPALETTE
SOPutText
STARTUPINFO
STGM
STGMEDIUM
StgOpenStorage
SysFreeString
SystemParametersInfo
SYSTEMTIME
TerminateProcess
TrackPopupMenu
TrackPopupMenuEx
TranslateMessage
UpdateWindow
UrlCanonicalize
VARIANT
VARIANTARG
VariantClear
VariantInit
VwStreamDynamicName
VwStreamDynamicType
VwStreamIdCount
VwStreamIdName
VwStreamSaveName
VwStreamSectionName
VwStreamUserSaveType
WIN32_FIND_DATA
WINDOWPOS
WinMain
WM_ACTIVATE
WM_ACTIVATEAPP
WM_CANCELMODE
WM_CHARTOITEM
WM_CLOSE
WM_COMMAND
WM_CONTEXTMENU
WM_CREATE
WM_DESTROY
WM_DRAWITEM
WM_ENABLE
WM_ERASEBKGND
WM_GETDLGCODE
WM_GETFONT
WM_GETHOTKEY
WM_HOTKEY
WM_HSCROLL
WM_INITDIALOG
WM_INITMENUPOPUP
WM_KEYDOWN
WM_KEYUP
WM_KILLFOCUS
WM_LBUTTONDBLCLK
WM_LBUTTONDOWN
WM_LBUTTONUP
WM_MBUTTONDOWN
WM_MEASUREITEM
WM_MENUCHAR
WM_MENUSELECT
WM_MOUSEMOVE
WM_NCACTIVATE
WM_NCCREATE
WM_NCHITTEST
WM_NCPAINT
WM_PAINT
WM_RBUTTONDOWN
WM_RBUTTONUP
WM_SETCURSOR
WM_SETFOCUS
WM_SETFONT
WM_SETHOTKEY
WM_SETREDRAW
WM_SIZE
WM_STYLECHANGED
WM_SYSCOLORCHANGE
WM_SYSCOMMAND
WM_TIMER
WM_VKEYTOITEM
WM_VSCROLL
WM_WINDOWPOSCHANGED
WM_WININICHANGE
WritePrivateProfileString
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
BlockDirLTR Command | IDM... Bold Command
Web Workshop | DHTML, HTML & CSS
BlockDirRTL Command | IDM_BLOCKDIRRTL Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Bold Command | IDM_BOLD C... IECMDID_CLE
Web Workshop | DHTML, HTML & CSS
BrowseMode Command | IDM_BROWSEMODE Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Delete Command | IDM_DELE... DirRTL Comma
Web Workshop | DHTML, HTML & CSS
DirLTR Command | IDM_DIRLTR Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DirRTL Command | IDM_DIRR... Find Command
Web Workshop | DHTML, HTML & CSS
EditMode Command | IDM_EDITMODE Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FormatBlock Command | IDM... IDM_GETBLOC
Web Workshop | DHTML, HTML & CSS
IDM_FONT Command ID
Changes the text color, font, and font size of the current selection based on entries to the
font dialog box.
C++ Information
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IDM_FONT Command ID Indent Command | ID
Web Workshop | DHTML, HTML & CSS
IDM_GETBLOCKFMTS Command ID
Retrieves the strings corresponding to the available block format tags.
C++ Information
Remarks
Minimum Availability
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Indent Command | IDM_INDE... InlineDirRTL C
Web Workshop | DHTML, HTML & CSS
InlineDirLTR Command | IDM_INLINEDIRLTR Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
InlineDirLTR Command | ID... InsertButton Com
Web Workshop | DHTML, HTML & CSS
InlineDirRTL Command | IDM_INLINEDIRRTL Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
JustifyCenter Command | I... JustifyLeft Comm
Web Workshop | DHTML, HTML & CSS
JustifyFull Command | IDM_JUSTIFYFULL Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
JustifyLeft Command | IDM... JustifyRight Com
Web Workshop | DHTML, HTML & CSS
JustifyNone Command | IDM_JUSTIFYNONE Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
JustifyRight Command | ID... Outdent Comman
Web Workshop | DHTML, HTML & CSS
Open Command | IDM_OPEN Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Paste Command | IDM_PASTE... Print Comman
Web Workshop | DHTML, HTML & CSS
PlayImage Command | IDM_DYNSRCPLAY Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Print Command | IDM_PRINT... Refresh Comma
Web Workshop | DHTML, HTML & CSS
Redo Command | IDM_REDO Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RemoveFormat Command | ID... SaveAs Comm
Web Workshop | DHTML, HTML & CSS
RemoveParaFormat Command | IDM_REMOVEPARAFORMAT
Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
RemoveParaFormat Command ... SelectAll Com
Web Workshop | DHTML, HTML & CSS
SaveAs Command | IDM_SAVEAS Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SelectAll Command | IDM_S... SizeToControlHe
Web Workshop | DHTML, HTML & CSS
SizeToControl Command | IDM_SIZETOCONTROL Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
StrikeThrough Command | I... UnBookmark Co
Web Workshop | DHTML, HTML & CSS
SuperScript Command | IDM_SUPERSCRIPT Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Underline Command | IDM_U... Unlink Comma
Web Workshop | DHTML, HTML & CSS
Undo Command | UNDO Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
anim:DA Element | anim Be... Default Behavior
Web Workshop | DHTML, HTML & CSS
anchor Behavior
Enables the browser to navigate to a folder view.
Syntax
XML N/A
HTML <A STYLE="behavior:url('#default#AnchorClick')" ID=sID>
Scripting object.style.behavior = "url('#default#AnchorClick')"
object.addBehavior("#default#AnchorClick")
Possible Values
Members
Remarks
You can use the anchor behavior and the exposed folder property to display the files
and folders on a Web server in a Web folder view, similar to the Microsoft® Windows®
folder view. The folder property must be present for the folder navigation to occur. If
the folder property is not included, the href on the A object is used as normal.
For this behavior to work, the Web Folders component of Microsoft® Internet Explorer
must be installed. If the component is not installed and the behavior is invoked,
Internet Explorer prompts the user to download the component. To open a Web
address in folder view, the Web server must include a WebDAV server, available as of
Microsoft® Internet Information Server 5, or support WEC extensions, available as of
Microsoft® FrontPage® 2000.
Using the folder property with the anchor behavior to navigate to a folder view is the
same as invoking the navigate or navigateFrame method from the httpFolder Behavior.
Internet Explorer 5 displays the value of the folder property when the mouse moves
over the A object. Earlier browser versions can display the value of the href property
in the status bar or as a title, so the file name and content of the earlier file version
are important to keep in mind.
You can use the TARGET attribute to specify the window or frame that loads the
specified location in the FOLDER attribute.
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
anchor Behavior ANIMATION Element | anima..
Web Workshop | DHTML, HTML & CSS
anim:DA Element | anim Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines an instance of the Microsoft® DirectAnimation® viewer in an HTML document to
render DirectAnimation objects and play DirectAnimation sounds.
Syntax
Possible Values
Members
Remarks
The prefix anim is used to associate this attribute with an XML namespace. You must
include this prefix when using the anim:DA element. To define this namespace prefix,
include the following line of code in the HEAD section of your HTML document.
<XML:NAMESPACE PREFIX="anim"/>
You also must define the custom DA element and associate it with the default anim
behavior. You can do this by adding the following line of code to the STYLE block of
your document.
<STYLE>
anim\:DA { behavior: url(#default#anim); }
</STYLE>
You also must use the height and width properties, as shown in the following line of
code, to make the DirectAnimation viewer display properly.
Other inline style properties can be used to control the DirectAnimation viewer's
position and z-index.
The anim:DA element is available as of Microsoft® Internet Explorer 5, only in the
Microsoft® Win32® platform.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
anim:DA Element | anim Be... AUDIO Element
Web Workshop | DHTML, HTML & CSS
ANIMATION Element | animation Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines a timed animation element in an HTML document.
Syntax
Possible Values
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could cause a scripting error, indicating that the object does not support a
particular member.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
See Also
Syntax
Possible Values
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could result in a scripting error, indicating that the object does not support
that particular member.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
See Also
Syntax
Possible Values
Prefix Prefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTag User-defined tag.
sID String that specifies a unique identifier for the object.
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. To prevent a scripting error—which would indicate that the object does
not support a particular member—do not use any of the behavior-defined members
before the window.onload event fires.
Example
This example retrieves all the properties exposed by the clientCaps behavior.
This example shows how to install the Internet Explorer Data Binding component, if
the component does not already exist in the user's system.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clientCaps Behavior homePage Behavior Defa
Web Workshop | DHTML, HTML & CSS
download Behavior
Downloads a file and notifies a specified callback function when the download is complete.
Syntax
Possible Values
Prefix Prefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTag User-defined tag.
sID String that specifies a unique identifier for the object.
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. To prevent a scripting error—which would indicate that the object does
not support a particular member—do not use any of the behavior-defined members
before the window.onload event fires.
The download behavior and the file specified in the startDownload method must exist
on the same domain.
Example
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
download Behavior httpFolder Behavior Defau
Web Workshop | DHTML, HTML & CSS
homePage Behavior
Contains information about a user's homepage.
Syntax
Possible Values
Prefix Prefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag.
CustomTag User-defined tag.
sID String that specifies a unique identifier for the object.
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. To prevent a scripting error—which would indicate that the object does
not support a particular member—do not use any of the behavior-defined members
before the window.onload event fires.
Example
This example uses the homePage behavior to set the user's home page to the
specified URL.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
See Also
dhtml behaviorsI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
homePage Behavior IMG Element | img Behavio
Web Workshop | DHTML, HTML & CSS
httpFolder Behavior
Contains scripting features that enable browser navigation to a folder view.
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#httpFolder')" ID=sID>
Scripting object.style.behavior = "url('#default#httpFolder')"
object.addBehavior ("#default#httpFolder")
Possible Values
Members
Remarks
The httpFolder behavior can be defined in a STYLE block, or inline with the element.
Example
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM,
FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR,
XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
httpFolder Behavior MEDIA Element | media Be
Web Workshop | DHTML, HTML & CSS
IMG Element | img Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines a timed image element in an HTML document.
Syntax
Possible Values
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could result in a scripting error, indicating that the object does not support
that particular member.
This element duplicates the HTML IMG element and provides control over media
loading. Use this element instead of the HTML IMG element for timing images in
Microsoft® Internet Explorer 5.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
The IMG element is available as of Internet Explorer 5, only in the Microsoft® Win32®
platform.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IMG Element | img Behavio... PAR Element | pa
Web Workshop | DHTML, HTML & CSS
MEDIA Element | media Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines a generic, timed media element in an HTML document.
Syntax
Possible Values
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could result in a scripting error, indicating that the object does not support
that particular member.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
See Also
Syntax
Possible Values
Members
Remarks
Use this element instead of the TIMELINE attribute to create a time container without
using an HTML element. All descendant elements, or time children, of this new time
container inherit the time properties of their container. Unlike the time children of the
SEQ element, the PAR descendants have no implicit timing relationships with each
other, and their timelines might overlap. The PAR element effectively groups elements
together so they can be easily modified as a single unit.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
The PAR element is available as of Internet Explorer 5, only in the Microsoft® Win32®
platform.
Example
This example uses the PAR element to apply a timeline to a group of HTML elements.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PAR Element | par Behavio... saveHistory Beha
Web Workshop | DHTML, HTML & CSS
saveFavorite Behavior
Enables the object to persist data in a Favorite.
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#saveFavorite')" ID=sID>
Scripting object.style.behavior = "url('#default#saveFavorite')"
object.addBehavior ("#default#saveFavorite")
Possible Values
Members
Remarks
The saveFavorite behavior allows the current state of a page to be saved when the
user adds the page to Favorites. When the user returns to the page through a shortcut
or the Favorites menu, the state of the page is restored.
The saveFavorite behavior persists data across sessions, using one UserData store
for each object. If two objects try to use the same attribute, both are persisted in the
UserData store for each element. The saveFavorite UserData store is persisted in the
Favorites INI file, which includes the URL of the page as well as the UserData store.
When the page is loaded through a shortcut or Favorites, the data from the UserData
store is loaded from the INI file, even if the user closes and reopens Microsoft®
Internet Explorer.
For example, a page with several dynamically updated styles can save these updates
using the onload and onsave events. The style values can be saved as attributes when
onsave fires, and restored when onload fires.
To use the saveFavorite behavior, use a META tag that identifies the type of
persistence.
The required STYLE can be set inline or in the document header, as follows:
<STYLE>
.saveFavorite {behavior:url(#default#savefavorite);}
</STYLE>
Example
This example uses the saveFavorite behavior to persist information after the user
saves the page as a favorite.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FONT,
FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR,
XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
saveFavorite Behavior saveSnapshot Behavior
Web Workshop | DHTML, HTML & CSS
saveHistory Behavior
Enables the object to persist data in the browser history.
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#saveHistory')" ID=sID>
Scripting object.style.behavior = "url('#default#saveHistory')"
object.addBehavior ("#default#saveHistory")
Possible Values
Members
Remarks
The saveHistory behavior saves the current state of the page when the user
navigates away from the page. When the user returns to the page by pressing the
back or forward button, the values are restored.
The saveHistory behavior persists only for the current session. When the user
navigates away from the page containing the saveHistory behavior, the data is
persisted in a UserData store. The saveHistory behavior uses one UserData store for
the entire document. Thus, if two elements write the same attribute, the first is
overwritten by the second. The UserData store is saved in an in-memory stream and is
not saved to disk. Therefore, it is not available after the user closes Microsoft®
Internet Explorer.
For example, a page with several dynamically updated styles might save these updates
using the onload and onsave event handlers. The style values can be saved as
attributes when onsave fires, and restored when onload fires.
To use the saveHistory behavior, use a META tag that identifies the type of
persistence.
The required STYLE can be set inline or in the document header, as follows:
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
Example
This example uses the saveHistory behavior to persist information after the user
leaves and subsequently returns to the page.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FONT,
FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR,
XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
saveHistory Behavior SEQ Element | seq Behav
Web Workshop | DHTML, HTML & CSS
saveSnapshot Behavior
Enables the object to persist data when a Web page is saved.
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#saveSnapshot')" ID=sID>
Scripting object.style.behavior="url('#default#saveSnapshot')"
object.addBehavior ("#default#saveSnapshot")
Possible Values
Members
Remarks
The saveSnapshot behavior can persist form values, styles, dynamically updated
content, and scripting variables when the user saves a Web page locally as Web Page,
HTML Only.
The saveSnapshot behavior cannot persist the BODY element and individual table
elements, such as rows and cells.
The saveSnapshot behavior can persist the content of the SCRIPT element if the
element is assigned an ID and a CLASS. The saveSnapshot behavior can persist only
string, Boolean, and integer variants. Comments, functions, and scripting objects, such
as arrays, are stripped out. Persistent SCRIPT elements with an external source write
the variables into the persistent page from the source.
To use the saveSnapshot behavior, use a META tag that identifies the type of
persistence.
The required STYLE may be set inline or in the document header, as follows:
<STYLE>
.saveSnapshot {behavior:url(#default#savesnapshot);}
</STYLE>
Example
The following examples show how to use the saveSnapshot behavior.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, Hn, HR,
I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P,
PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
saveSnapshot Behavior time Behavior Defaul
Web Workshop | DHTML, HTML & CSS
SEQ Element | seq Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines a new timeline container in an HTML document for sequentially timed elements.
Syntax
Possible Values
Members
Remarks
All timed HTML descendants of this XML element have sequential timing. These
sequential elements are timed as though each one has the BEGINAFTER attribute set
to the previous timed element. As with beginAfter timing, a duration value (dur
property) must be specified or the next element in the sequence might never be
displayed. Elements without timing attributes are ignored by the timing mechanism
and are statically rendered. A timed element is an HTML element with an associated
time behavior.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
Example
This example uses the SEQ element to display a sequence of text lines without
specifying begin times for each timed element in the sequence.
See Also
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#time')" ID=sID>
Scripting object.style.behavior = "url('#default#time')"
object.addBehavior ("#default#time")
Possible Values
Members
Remarks
This default behavior adds timing to HTML pages. Using the HTML+TIME extensions,
any HTML element can be set to appear at a given time, last for a specified duration,
and repeat the behavior if desired. The time behavior supports all time-related
attributes, properties, methods, and events. The XML elements associated with this
behavior are ANIMATION, AUDIO, IMG, MEDIA, PAR, SEQ, and VIDEO.
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could result in a scripting error, indicating that the object does not support
that particular member.
Example
This example uses the time behavior to make text appear for specified intervals of
time.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DIR, DIV, DL, DT, EM, FIELDSET, FONT,
FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LEGEND, LI, LISTING, MARQUEE, MENU,
OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH,
THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
time Behavior VIDEO Element | video Beh...
Web Workshop | DHTML, HTML & CSS
userData Behavior
Enables the object to persist data in user data.
Syntax
XML N/A
HTML <ELEMENT STYLE="behavior:url('#default#userData')" ID=sID>
Scripting object.style.behavior = "url('#default#userData')"
object.addBehavior ("#default#userData")
Possible Values
Members
Remarks
The userData behavior persists data across sessions, using one UserData store for
each object. The UserData store is persisted in the cache using the save and load
methods. Once the UserData store has been saved, it can be reloaded even if
Microsoft® Internet Explorer has been closed and reopened.
For security reasons, a UserData store is available only in the same directory and with
the same protocol used to persist the store.
Setting the userData behavior (proposed) class on the HTML, HEAD, TITLE, or STYLE
object causes an error when the save or load method is called.
The required STYLE can be set inline or in the document header, as follows:
<STYLE>
.userData {behavior:url(#default#userdata);}
</STYLE>
Example
This example uses the userData behavior to preserve information in a UserData
Store.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FONT,
FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU,
OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR,
XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
userData Behavior ACCELERATE Attribute | ac..
Web Workshop | DHTML, HTML & CSS
VIDEO Element | video Behavior
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Defines a timed video element in an HTML document.
Syntax
Possible Values
Members
Remarks
The members listed in the preceding table might not be accessible through scripting
until the window.onload event fires. Waiting for this event to fire ensures that the page
is completely loaded, that all behaviors have been applied to corresponding elements
on the page, and that all the behavior's properties, methods, and events are available
for scripting. Using any of the behavior-defined members before the window.onload
event fires could result in a scripting error, indicating that the object does not support
that particular member.
The prefix t is used to associate this element with an XML namespace. You must
include the following line of code in the HEAD section of your HTML document when
using this element.
<XML:NAMESPACE PREFIX="t"/>
See Also
Syntax
Possible Values
iPercent Integer that specifies a value between 0 and 100, and represents the percentage of the local timeline over which the acceleration is
applied. The local timeline refers to the timeline associated with a particular HTML element (such as a DIV or SPAN), rather than the global
timeline associated with the entire document.
The property is read/write with a default value of 0. This property cannot be modified
in script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ACCELERATE Attribute | ac... availHeight Prope
Web Workshop | DHTML, HTML & CSS
AUTOREVERSE Attribute | autoReverse Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves whether the timeline on an element immediately begins playing in
reverse after completing in the forward direction.
Syntax
Possible Values
The property is read/write with a default value of false. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AUTOREVERSE Attribute | a... availWidth Prope
Web Workshop | DHTML, HTML & CSS
availHeight Property
Retrieves the height of the working area of the system's screen, excluding the Microsoft®
Windows® taskbar.
Syntax
HTML N/A
Scripting [ iHeight = ] oClientCaps.availHeight
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
availHeight Property BEGIN Attribute | begin P.
Web Workshop | DHTML, HTML & CSS
availWidth Property
Retrieves the width of the working area of the system's screen, excluding the Microsoft®
Windows® taskbar.
Syntax
HTML N/A
Scripting [ iWidth = ] oClientCaps.availWidth
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
availWidth Property BEGINAFTER Attribute | be
Web Workshop | DHTML, HTML & CSS
BEGIN Attribute | begin Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the delay time before the timeline begins playing on the element.
Syntax
Possible Values
sTime String that specifies the time delay before the element becomes active on the timeline. This is an offset from the time the page is loaded.
The time must be specified as described in Time Formats.
The property is read/write with a default value of 0. This property cannot be modified
in script after the onload event fires on the document body.
Remarks
Example
This example uses the BEGIN attribute to make text appear and disappear over time.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BEGIN Attribute | begin P... BEGINEVENT Attrib
Web Workshop | DHTML, HTML & CSS
BEGINAFTER Attribute | beginAfter Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value indicating that the timeline of an element starts when the
referenced element ends.
Syntax
Possible Values
sID String that specifies the unique identifier of another timed element within the current time scope. The timeline begins on the current element
when the referenced element ends. For more information about time scope, see the Remarks section.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
This property supports relative sequential timing. You can offset the start time by
specifying a nonzero value for the BEGIN attribute on the element. This indicates that
the timeline should start a specified amount of time after the timeline on the
referenced element ends. If the referenced element has an indefinite duration, the
timeline on the current element does not start. This property cannot be used on the
same element as the BEGINEVENT or BEGINWITH attribute.
The current time scope is defined by the closest parent time container created with the
TIMELINE attribute or the PAR or SEQ element. All timed elements within the same
parent time container (time siblings) share the current time scope. If no time
containers are explicitly declared, the document root is defined as the parent time
container. In this case, all timed elements in the document would share the current
time scope. To create timing dependencies between elements in different time scopes,
use the BEGINEVENT attribute instead of the BEGINAFTER attribute.
Example
This example uses the BEGINAFTER and BEGIN properties to make a paragraph
appear one second after the first paragraph appears.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BEGINAFTER Attribute | be... BEGINWITH Attri
Web Workshop | DHTML, HTML & CSS
BEGINEVENT Attribute | beginEvent Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value that starts the timeline of an element when the referenced event
occurs.
Syntax
Possible Values
sEventName String that specifies a timing event or an event supported by the Dynamic HTML (DHTML) Object Model. Valid values include
object.EventName or the string "none". Examples of event names include span1.onBegin and document.onLoad.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
This property supports interactive timing, where element timelines can begin in
response to events from users, media players, or the presentation. You can offset the
start time by specifying a nonzero value for the BEGIN attribute on the element. This
indicates that the timeline should start a specified amount of time after the referenced
event occurs. If the referenced event doesn't occur, the timeline on the current
element does not start. This property cannot be used on the same element as the
BEGINAFTER or BEGINWITH attribute.
To start the timeline on the current element, you can specify more than one event
setting the BEGINEVENT attribute to a string containing a list of semicolon-separated
events. For example, you would use the following code to cause the timeline to begin
on the heading when either button is pressed:
Example
This example uses the BEGINEVENT attribute to make a paragraph appear one
second after the user clicks the button.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BEGINEVENT Attribute | be... bufferDepth Prop
Web Workshop | DHTML, HTML & CSS
BEGINWITH Attribute | beginWith Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value that starts an element's timeline at the same time as the
referenced element.
Syntax
Possible Values
sID String that specifies the unique identifier of another element within the current time scope. The timeline on the current element starts when
this referenced element starts. For more information about time scope, see the Remarks section.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
This property supports relative timing between elements. You can offset the start time
by specifying a nonzero value for the BEGIN attribute on the element. This indicates
that the timeline should start a specified amount of time after the referenced element
starts. This property cannot be used on the same element as the BEGINAFTER or
BEGINEVENT property.
The current time scope is defined by the closest parent time container created with the
TIMELINE attribute or the PAR or SEQ element. All timed elements within the same
parent time container (time siblings) share the current time scope. If no time
containers are explicitly declared, the document root is defined as the parent time
container. In this case, all timed elements in the document would share the current
time scope. If you need to create begin dependencies between elements in different
time scopes, use the BEGINEVENT attribute instead.
Example
This example uses the the BEGINWITH and BEGIN attributes to make a paragraph
appear two seconds after the first one appears.
Applies To
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
BEGINWITH Attribute | beg... CLIPBEGIN Attrib
Web Workshop | DHTML, HTML & CSS
bufferDepth Property
Retrieves the number of bits per pixel used for colors on the off-screen bitmap buffer.
Syntax
HTML N/A
Scripting [ iBitsPerPixel = ] oClientCaps.bufferDepth
Possible Values
Remarks
When bufferDepth is -1 and the user changes system settings that affect the screen
depth, the buffer depth automatically updates to the new depth. This does not occur if
bufferDepth is set to a specific value.
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bufferDepth Property CLIPEND Attribute | clipE
Web Workshop | DHTML, HTML & CSS
CLIPBEGIN Attribute | clipBegin Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the beginning point of a sub-clip of a continuous media object.
Syntax
Possible Values
sTime String that specifies the beginning point of a media object as an offset from the start time. The time must be specified as described in Time
Formats.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI , CLIPEND
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLIPBEGIN Attribute | cli... CLOCKSOURCE Attr
Web Workshop | DHTML, HTML & CSS
CLIPEND Attribute | clipEnd Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the end point of a sub-clip of a continuous media object.
Syntax
Possible Values
sTime String that specifies the end point of a media object as an offset from the start time. The time must be specified as described in Time
Formats.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
If the CLIPEND attribute exceeds the duration of the media object, the value is
ignored and CLIPEND is set equal to the end of the media object.
Applies To
See Also
html+timeI , CLIPBEGIN
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLIPEND Attribute | clipE... colorDepth Property
Web Workshop | DHTML, HTML & CSS
CLOCKSOURCE Attribute | clockSource Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves whether all the elements within the local time scope are synchronized
with this element's timeline.
Syntax
Possible Values
The property is read/write with a default value of false. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI , syncTolerance
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
CLOCKSOURCE Attribute | c... connectionType
Web Workshop | DHTML, HTML & CSS
colorDepth Property
Retrieves the number of bits per pixel used for colors on the destination device or buffer.
Syntax
HTML N/A
Scripting [ iBitsPerPixel =] oClientCaps.colorDepth
Possible Values
Remarks
To select an appropriate color to return to the browser, retrieve the property's value
through script.
If bufferDepth is 0 or -1, colorDepth is equal to the bits-per-pixel value for the screen
or printer. If bufferDepth is nonzero, colorDepth is equal to bufferDepth.
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
colorDepth cookieEnabled Default Behaviors R
Web Workshop | DHTML, HTML & CSS
connectionType Property
Retrieves the type of connection in use.
Syntax
HTML N/A
Scripting [ sConnectionType = ] oClientCaps.connectionType
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
connectionType Property cpuClass Property D
Web Workshop | DHTML, HTML & CSS
cookieEnabled Property
Retrieves whether client-side cookies are enabled in the browser.
Syntax
HTML N/A
Scripting [ bEnabled = ] oClientCaps.cookieEnabled
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cookieEnabled Property currTime Property De
Web Workshop | DHTML, HTML & CSS
cpuClass Property
Retrieves a string representing the CPU class.
Syntax
HTML N/A
Scripting [ sCPU = ] oClientCaps.cpuClass
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cpuClass Property DECELERATE Attribute | de..
Web Workshop | DHTML, HTML & CSS
currTime Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Retrieves a value indicating the current time along the simple duration, as defined by the
element's DUR or END attribute.
Syntax
HTML N/A
Scripting [ sTime = ] object.currTime
Possible Values
sTime String that specifies the current time on the element's simple duration.
Remarks
The simple duration is the segment of time from when the element begins playing until
it completes one forward cycle of its behavior, excluding repetitions.
If the REPEAT or REPEATDUR attribute is set on an element, the value of the currTime
property resets each time the element repeats.
Applies To
time
See Also
html+time , localTime
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
currTime Property DUR Attribute | dur Prope...
Web Workshop | DHTML, HTML & CSS
DECELERATE Attribute | decelerate Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value that applies a deceleration to the end of a simple duration.
Syntax
Possible Values
iPercent Integer that specifies a value between 0 and 100, and represents the percentage of the local timeline over which the deceleration is
applied. The local timeline refers to the timeline associated with a particular HTML element (such as a DIV or SPAN), rather than the global
timeline associated with the entire document.
The property is read/write with a default value of 0. This property cannot be modified
in script after the onload event fires on the document body.
Remarks
The simple duration is the segment of time from when the element begins playing until
it completes one forward cycle of its behavior, excluding repetitions.
The sum of the values for the ACCELERATE and DECELERATE attributes must not
exceed 100. This property is also commonly known as "ease-out" in some systems.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DECELERATE Attribute | de... END Attribute | e
Web Workshop | DHTML, HTML & CSS
DUR Attribute | dur Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value indicating the amount of time the element remains active or
displayed.
Syntax
Possible Values
The property is read/write with a default value of indefinite. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
The DUR attribute is a value relative to the value of the element's BEGIN attribute. By
contrast, the END attribute represents an absolute value along the parent element's
timeline starting at 0 seconds. Do not use the DUR attribute on the same element as
the END attribute.
Example
This example uses the DUR attribute to display lines of text for different amounts of
time.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DUR Attribute | dur Prope... ENDEVENT Attribu
Web Workshop | DHTML, HTML & CSS
END Attribute | end Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value indicating the end time for the element, or the end of the simple
duration when the element is set to repeat.
Syntax
Possible Values
The property is read/write with a default value of indefinite. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
The END attribute represents an absolute value along the parent element's timeline
starting at 0 seconds. By contrast, the DUR attribute represents a value relative to the
value of the element's BEGIN attribute. Do not use the END attribute on the same
element as the DUR attribute.
Example
This example uses the END attribute to display three lines of text, each with its own
start time, but all with the same end time.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
END Attribute | end Prope... ENDHOLD Attribut
Web Workshop | DHTML, HTML & CSS
ENDEVENT Attribute | endEvent Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves a value indicating that the timeline of an element ends immediately when
the referenced event occurs, regardless of the element's repeat count or repeatDur
property.
Syntax
Possible Values
sEventName String that specifies a timing event or an event supported by the DHTML Object Model. Valid values use the format object.EventName,
or the string "none". Examples of event names include span1.onBegin and document.onLoad.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
This property supports interactive timing, where element timelines can end in response
to events from users, media players, or the presentation. If the referenced event does
not occur, the timeline on the current element does not start. To override this behavior,
you can specify a maximum duration for the timeline using either the DUR or END
attribute on the same element. This behavior is sometimes referred to as "lazy
interactive."
Example
This example uses the ENDEVENT attribute to make a paragraph disappear when the
user clicks the button.
Applies To
See Also
html+timeI , ENDHOLD
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ENDEVENT Attribute | endE... EVENTRESTART A
Web Workshop | DHTML, HTML & CSS
ENDHOLD Attribute | endHold Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves whether an element remains active if its timeline ends before the timeline
on its parent element ends.
Syntax
Possible Values
The property is read/write with a default value of false. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
This property does not affect the defined duration (DUR) of the timeline, nor the
timeline's defined END time. However, the ENDHOLD attribute does affect the display
of the element between the end of the element's timeline and the end of the parent
element's timeline. For example, suppose an element has an end value of 10 seconds
and its parent element has an end value of 15 seconds. In this case, the ENDHOLD
attribute defines whether the element displays during the five-second interval (seconds
11 through 15) after the timeline ends.
Applies To
See Also
html+timeI , ENDEVENT
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ENDHOLD Attribute | endHo... expires Property
Web Workshop | DHTML, HTML & CSS
EVENTRESTART Attribute | eventRestart Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves whether the element should restart if a beginEvent call occurs while the
local timeline is already running.
Syntax
Possible Values
The property is read/write with a default value of true. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
EVENTRESTART Attribute | ... FOLDER Attribute
Web Workshop | DHTML, HTML & CSS
expires Property
Sets or retrieves the expiration date of data persisted with the userData behavior.
Syntax
HTML N/A
Scripting oPersistObject.expires [ = sUTCString ]
Possible Values
sUTCString String that specifies the expiration date in UTC (Universal Time Coordinate) format.
Remarks
The expires property designates the amount of time that persisted information is
available. Microsoft® Internet Explorer removes the persisted information when the
browser checks the date and the designated time has expired.
Example
This example uses the expires property to set the expiration date of persisted data to
one minute after the information is persisted.
Applies To
userData
See Also
persistence overview
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
expires Property height Property Default Beha
Web Workshop | DHTML, HTML & CSS
FOLDER Attribute | folder Property
Sets or retrieves a namespace extension, address, or path.
Syntax
Possible Values
Remarks
Browsers that do not support the FOLDER attribute will navigate to the location
specified in the HREF attribute. Microsoft® Internet Explorer 5 displays the value of
the FOLDER attribute in the browser screen instead of the value of the HREF
attribute.
Example
This example uses the FOLDER attribute to specify a location to open in folder view.
Applies To
anchor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FOLDER Attribute | folder... image Property D
Web Workshop | DHTML, HTML & CSS
height Property
Retrieves the vertical resolution of the screen.
Syntax
HTML N/A
Scripting [ iHeight = ] oClientCaps.height
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
height Property IMG Attribute | img Prope...
Web Workshop | DHTML, HTML & CSS
image Property
Sets or retrieves the Microsoft® DirectAnimation® Image (daimage ) displayed by the
I
anim:DA element.
Syntax
Possible Values
oImage DAImage object that specifies the image displayed by the anim:DA element.
Example
Applies To
anim
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
image Property javaEnabled Property Default
Web Workshop | DHTML, HTML & CSS
IMG Attribute | img Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the URL of an alternate image to display if the MIME type is not
supported on the user's computer.
Syntax
Possible Values
sURL String that specifies the URL of an alternate image to display for this element if the MIME type is not supported on the user's computer.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IMG Attribute | img Prope... localTime Property
Web Workshop | DHTML, HTML & CSS
javaEnabled Property
Retrieves whether the Microsoft virtual machine is enabled.
Syntax
HTML N/A
Scripting [ bEnabled = ] oClientCaps.javaEnabled
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
javaEnabled Property onOffBehavior Property
Web Workshop | DHTML, HTML & CSS
localTime Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Retrieves a value indicating the current time along the local duration, as defined by the
element's REPEAT or REPEATDUR attribute.
Syntax
HTML N/A
Scripting [ sTime = ] object.localTime
Possible Values
sTime String that specifies the current time on the element's local duration. The local duration is the amount of time from when the element begins
until it stops, including playing in reverse and all repetitions.
Remarks
Applies To
time
See Also
html+timeI , currTime
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
localTime Property platform Property Default
Web Workshop | DHTML, HTML & CSS
onOffBehavior Property
Retrieves an object indicating whether the specified Microsoft® DirectAnimation® behavior
is running.
Syntax
Possible Values
oOn DirectAnimation Boolean (dabooleanInt ) object that specifies one of the following values:
true Behavior is running.
false Behavior is not running.
Remarks
This property allows you to incorporate multimedia elements, such as 2-D and 3-D
animated images and sounds, into an HTML page using the anim:DA element. The
object this property is applied to must be an HTML object with a valid HTML+TIME
timeline. Use this property with HTML+TIME timelines to control DirectAnimation
content. This property is not part of the HTML+TIME specification.
Important To ensure that pages using this property display properly in future
versions of Internet Explorer, complete the following steps:
Example
This example attaches a timeline specified with HTML+TIME to an image animated with
DirectAnimation. The onOffBehavior property is used to display one image while the
animation is running, and to display a different image while the animation is stopped.
Applies To
time
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onOffBehavior Property PLAYER Attribute | play
Web Workshop | DHTML, HTML & CSS
platform Property
Retrieves the platform on which the browser is running.
Syntax
HTML N/A
Scripting [ sPlatform = ] oClientCaps.platform
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilitiesI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
platform Property playerObject Property Defa
Web Workshop | DHTML, HTML & CSS
PLAYER Attribute | player Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the object used to render the media associated with this element.
Syntax
Possible Values
sID String that specifies the class identifier of the object used to render the element's media. The format is "{XXXXXXXX-XXXX-XXXX-XXXX-
XXXXXXXXXXXX}" for registered Microsoft ActiveX controls.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
Only media playing objects that support HTML+TIME work with this property. To
support HTML+TIME, a player must implement the itimemediaplayer interface.
I
The prefix t is used to associate this attribute with an XML namespace.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
player Property progressBehavior Property De
Web Workshop | DHTML, HTML & CSS
playerObject Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Retrieves the object that plays media files.
Syntax
HTML N/A
Scripting [ oPlayer = ] object.playerObject
Possible Values
Remarks
The PLAYER attribute specifies the object that plays media files.
This property provides access to all the properties, methods, and events available on
the player object.
Example
This example plays a video clip with the Microsoft® Windows® Media Player control.
The video clip begins playing five seconds after the page loads, and continues playing
for 20 seconds. The playerObject is used to access the mute property and
I
aboutbox method available on the Windows Media Player control.
I
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
playerObject Property REPEAT Attribute | repea
Web Workshop | DHTML, HTML & CSS
progressBehavior Property
Retrieves an object indicating the progress of the specified Microsoft® DirectAnimation®
behavior.
Syntax
Possible Values
oProgress Object that specifies the DirectAnimation number (danumberInt ) used to indicate the progress of the behavior. The DANumber
object contains a floating-point number, with a value between 0.0 and 1.0, that indicates how much of the behavior is complete.
Remarks
This property allows you to incorporate multimedia elements, such as 2-D and 3-D
animated images and sounds, into an HTML page with the anim:DA element. The
object this property is applied to must be an HTML object with a valid HTML+TIME
timeline. Use this property with HTML+TIME timelines to control DirectAnimation
content. This property is not part of the HTML+TIME specification.
Important To ensure that pages using this property display properly in future
versions of Internet Explorer, complete the following steps:
Example
This example attaches a timeline specified with HTML+TIME to an image animated with
DirectAnimation. The progressBehavior property is used to animate the opacity of
the image.
Applies To
time
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
progressBehavior Property REPEATDUR Attribut
Web Workshop | DHTML, HTML & CSS
REPEAT Attribute | repeat Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the number of times an element's timeline repeats.
Syntax
Possible Values
The property is read/write with a default value of 1. This property cannot be modified
in script after the onload event fires on the document body.
Remarks
Use the DUR or END attribute to define each repeat iteration. The REPEAT attribute
has no effect if the duration is not defined or is indefinite.
Do not use this property on the same element as the REPEATDUR attribute. Typically,
REPEAT is set on elements that are time containers, such as the PAR or SEQ element.
Elements containing the TIMELINE attribute are also time containers. If you set the
REPEAT attribute on an element that is not a time container, it increases the
element's duration by multiplying the duration by the repeat count. This causes the
element to remain active on the timeline for the increased duration, but it doesn't
change the element's appearance as it repeats the local timeline.
Example
This example uses the REPEAT attribute to display a series of three different
paragraphs over time.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
REPEAT Attribute | repeat... sound Property D
Web Workshop | DHTML, HTML & CSS
REPEATDUR Attribute | repeatDur Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the number of seconds an element's timeline repeats.
Syntax
Possible Values
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
Use the DUR or END property to define each repeat iteration. The REPEATDUR
property has no effect if the duration is not defined or is indefinite.
Do not use this property on the same element as the REPEAT attribute. Typically,
REPEATDUR is set on elements that are time containers, such as the PAR or SEQ
element. Elements containing the TIMELINE attribute are also time containers. If you
set the REPEATDUR attribute on an element that is not a time container, it sets the
element's duration to the REPEATDUR value. This property is useful for coordinating
the timing of an element with a media element that has a fractional duration, such as
an audio file that is 3.45 seconds.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
REPEATDUR Attribute | rep... S SRC Attribute | sr
Web Workshop | DHTML, HTML & CSS
sound Property
Sets or retrieves the Microsoft® DirectAnimation® sound (dasound ) played by the
I
anim:DA element.
Syntax
Possible Values
oSound DASound object that specifies the sound played by the anim:DA element.
Applies To
anim
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
-
Syntax
Possible Values
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
S SRC Attribute | src Prope... SYNCBEHAVIOR Att
Web Workshop | DHTML, HTML & CSS
statics Property
Retrieves an object containing the dastatics class library used with Microsoft®
I
DirectAnimation®.
Syntax
Possible Values
oLibrary Object that contains the DAStatics functions and properties available through DirectAnimation.
Remarks
The DAStatics library is associated with meter construction mode. For more
information, see the meterlibrary documentation.
I
You must assign a scripting variable to the value of this property to allow access to all
DirectAnimation functions and properties, as shown in the following example:
<anim:DA ID="da1"/>
.
.
.
<SCRIPT>
m = da1.statics;
var x = m.property
</SCRIPT>
Applies To
anim
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
statics Property syncTolerance Property Defau
Web Workshop | DHTML, HTML & CSS
SYNCBEHAVIOR Attribute | syncBehavior Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the synchronization rules for the element's timeline.
Syntax
Possible Values
The property is read/write with a default value of canSlip. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
You must use this property with the CLOCKSOURCE attribute to determine the scope of
which elements to synchronize. If a media file isn't ready when the timeline begins,
the canSlip value enables the parent timeline to continue without interruption. The
timeline on the element associated with the media begins as soon as the file loads.
If you set the SYNCBEHAVIOR attribute to locked, the parent timeline must pause
and wait for the element to catch up. If the parent element's timeline is also locked,
the scope of the synchronization behavior is extended to include all the time children
of the parent's parent element. If all timelines are locked, the entire document pauses
when an element cannot maintain its synchronization.
Applies To
See Also
html+timeI , syncTolerance
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SYNCBEHAVIOR Attribute | ... systemLanguage
Web Workshop | DHTML, HTML & CSS
syncTolerance Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Retrieves the time variance allowed on a timeline with locked synchronization.
Syntax
HTML N/A
Scripting [ sTime= ] object.syncTolerance
Possible Values
sTime String that specifies the amount of time variance, in seconds, allowed between synchronized elements.
Remarks
This property is valid only for time containers with locked timelines, as defined using
the SYNCBEHAVIOR and CLOCKSOURCE attributes. Once the synchronization of locked
elements is off by more than the syncTolerance value, the elements resynchronize
and the onresync event fires.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
syncTolerance Property TARGET Attribute | targ
Web Workshop | DHTML, HTML & CSS
systemLanguage Property
Retrieves the default language that the system is running.
Syntax
HTML N/A
Scripting [ sLanguage = ] oClientCaps.systemLanguage
Possible Values
sLanguage String that specifies any of the values described in Language Codes.
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilitiesI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
systemLanguage Property TIMEACTION Attribu
Web Workshop | DHTML, HTML & CSS
TARGET Attribute | target Property
Sets or retrieves the name of a window or frame that is the target for navigation.
Syntax
Possible Values
Remarks
Example
This example uses the TARGET attribute and the anchor behavior to specify the name
of a window or frame.
Applies To
anchor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TARGET Attribute | target... TIMELINE Attribute
Web Workshop | DHTML, HTML & CSS
TIMEACTION Attribute | timeAction Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves what action is taken on the element while the timeline is active.
Syntax
Possible Values
The property is read/write with a default value of visibility. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
When this property is used on the HTML BODY element, the default value is none.
Example
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TIMEACTION Attribute | ti... timelineBehavior P
Web Workshop | DHTML, HTML & CSS
TIMELINE Attribute | timeline Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the type of timeline associated with an HTML element.
Syntax
Possible Values
The property is read/write with a default value of none. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
Example
This example uses the TIMELINE attribute to create a parallel time container.
Applies To
time
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TIMELINE Attribute | time... TIMESTARTRULE A
Web Workshop | DHTML, HTML & CSS
timelineBehavior Property
Retrieves a Microsoft® DirectAnimation® number (danumber ) object containing the
I
timeline behavior associated with the specified object.
Syntax
Possible Values
oBehavior Object that specifies the DANumber containing the behavior associated with the specified object.
Remarks
Typically, this property is used with the substitutetime function to replace the
I
timeline of the DirectAnimation behavior with the specified HTML+TIME timeline.
This property allows you to incorporate multimedia elements, such as 2-D and 3-D
animated images and sounds, into an HTML page with the anim:DA element. Use this
property with HTML+TIME timelines to control DirectAnimation content. This property
is not part of the HTML+TIME specification.
Important To ensure that pages using this property display properly in future
versions of Internet Explorer, complete the following steps:
Example
This example uses the timelineBehavior property to apply a timeline, created with
HTML+TIME, to a simple animation that rotates an image.
Applies To
time
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
timelineBehavior Property TYPE Attribute | type
Web Workshop | DHTML, HTML & CSS
TIMESTARTRULE Attribute | timeStartRule Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the point at which the document's timeline begins.
Syntax
Possible Values
The property is read/write with a default value of onDocLoad. This property cannot be
modified in script after the onload event fires on the document body.
Remarks
Values other than onDocLoad might be available in future versions of Internet Explorer.
Applies To
time
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TIMESTARTRULE Attribute |... userLanguage Pr
Web Workshop | DHTML, HTML & CSS
TYPE Attribute | type Property
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Sets or retrieves the MIME type of the media object referenced by the SRC attribute.
Syntax
Possible Values
sType String that specifies the MIME type of the media associated with the element.
The property is read/write with no default value. This property cannot be modified in
script after the onload event fires on the document body.
Remarks
By default, the server should send the MIME type to the user agent. If that mechanism
fails, the MIME type is obtained from this property.
Applies To
See Also
html+timeI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TYPE Attribute | type Pro... width Property De
Web Workshop | DHTML, HTML & CSS
userLanguage Property
Retrieves the current user language.
Syntax
HTML N/A
Scripting [ sLanguage = ] oClientCaps.userLanguage
Possible Values
sLanguage String that specifies any of the possible return values listed in Language Codes.
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
userLanguage Property XMLDocument Property
Web Workshop | DHTML, HTML & CSS
width Property
Retrieves the horizontal resolution of the screen.
Syntax
HTML N/A
Scripting [ iWidth = ] oClientCaps.width
Possible Values
Example
This example displays all the properties available through the clientCaps behavior.
Applies To
clientCaps
See Also
client capabilities
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
width Property addComponentRequest Metho...
Web Workshop | DHTML, HTML & CSS
XMLDocument Property
Retrieves a reference to the XML Document Object Model (DOM) exposed by the object.
Syntax
HTML N/A
Scripting [ oXMLObject = ] oObject.XMLDocument
Possible Values
oXMLObject Object that specifies the XML DOM exposed by the object.
Remarks
For a complete description of the XML DOM exposed by the XMLDocument property,
see the xml dom reference .
I
When persistence is applied to an element, a root node is automatically created within
the exposed XML document. This node is accessed through the documentelement
I
property. You can use setattribute to add attributes to the root node, and you can
I
use appendchild to add child nodes to the root node.
I
The XMLDocument property is available to the saveFavorite and saveHistory
behaviors only when the onload and onsave events are fired.
Example
This example shows how a persistent object can access the XML DOM through the
XMLDocument property. The setAttribute method is exposed through the XML DOM.
The setAttribute method is not the same as the DHTML and persistence methods of
the same name.
Applies To
See Also
persistence overviewI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
XMLDocument Property addDABehavior method
Web Workshop | DHTML, HTML & CSS
addComponentRequest Method
Adds the specified component to the queue of components to be installed.
Syntax
Parameters
sID Required. String that specifies any of the component identifiers listed in the Installable Components in Internet Explorer document.
sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentid Active Setup identifier of the component.
sMinVer Optional. String that specifies the minimum version number of the component to install.
Return Value
No return value.
Remarks
Example
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addComponentRequest Metho... beginElement
Web Workshop | DHTML, HTML & CSS
addDABehavior Method
Adds a Microsoft® DirectAnimation® behavior (dabehavior ) to the run list when the
I
behavior is not part of the animation model.
Syntax
object.addDABehavior(oBehavior, iID)
Parameters
Return Value
No return value.
Remarks
When the system starts the animation, additional behaviors are run with the same
start time as the behaviors included in the original animation.
anim
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addDABehavior Method clearComponentReques
Web Workshop | DHTML, HTML & CSS
beginElement Method
Syntax
object.beginElement()
Return Value
No return value.
Remarks
This method applies the same action as if the element's begin time is reached on the
local timeline. When the beginElement method is called, the element begins. All time
children elements are notified and aligned correctly to the local timeline.
Example
This example displays an image when the countdown reaches 0. Click the Restart
Timeline button to restart the timeline with the beginElement method.
Applies To
See Also
endElement
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
beginElement Method compareVersions Method
Web Workshop | DHTML, HTML & CSS
clearComponentRequest Method
Clears the queue of all component download requests.
Syntax
oClientCaps.clearComponentRequest()
Return Value
No return value.
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearComponentRequest met... doComponentR
Web Workshop | DHTML, HTML & CSS
compareVersions Method
Compares two version numbers.
Syntax
Parameters
sVersionNumber1 Required. String that specifies the first of two version numbers to compare.
sVersionNumber2 Required. String that specifies the second of two version numbers to compare.
Return Value
Example
This example uses the compareVersions method to compare the version of the
installed Microsoft virtual machine component with a specified version.
<BODY >
<IE:clientCaps ID="oClientCaps" />
:
<SCRIPT>
sMSvmVersion = oClientCaps.getComponentVersion
("{08B0E5C0-4FCB-11CF-AAA5-
00401C608500}","ComponentID");
if (0 == oClientCaps.compareVersions(sMSvmVersion,
"5,0,18,1024"))
window.alert ("Versions matched!");
</SCRIPT>
:
</BODY>
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
compareVersions Method endElement Method
Web Workshop | DHTML, HTML & CSS
doComponentRequest Method
Downloads all the components that have been queued using addComponentRequest.
Syntax
bSuccess = oClientCaps.doComponentRequest()
Return Value
Example
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
doComponentRequest Method getAttribute Met
Web Workshop | DHTML, HTML & CSS
endElement Method
Syntax
object.endElement()
Return Value
No return value.
Remarks
This method applies the same action as if the element's end time is reached on the
local timeline, or the element's duration (dur) has expired. All time children elements
are notified and aligned correctly to the local timeline. In addition, the endElement
method fires the onend event.
Applies To
See Also
beginElement
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
endElement Method getComponentVersion Met
Web Workshop | DHTML, HTML & CSS
getAttribute Method
Retrieves the value of the specified attribute.
Syntax
vAttribute = oPersistObject.getAttribute(sAttrName)
Parameters
sAttrName Required. String that specifies the name of the persistent attribute.
Return Value
Remarks
This method requires an object participating in persistence, where that object has a
class name equal to the desired persistence behavior. An ID is required for the
userData and saveSnapshot behaviors, and is recommended for the saveHistory and
saveFavorite behaviors.
Example
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getAttribute Method isComponentInstalled De
Web Workshop | DHTML, HTML & CSS
getComponentVersion Method
Retrieves the version of the specified component.
Syntax
Parameters
sID Required. String that specifies any of the component identifiers listed in the Detectable Components in Internet Explorer document.
sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentid Active Setup identifier of the component.
Return Value
Remarks
Example
This example detects whether Microsoft virtual machine is installed and, if it is, uses
the getComponentVersion method to indicate the version of the component
currently installed.
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getComponentVersion Metho... isHomePage Me
Web Workshop | DHTML, HTML & CSS
isComponentInstalled Method
Retrieves whether the specified component is available.
Syntax
Parameters
sID Required. String that specifies any of the component identifiers listed in the Detectable Components in Internet Explorer document.
sIDType Required. String that specifies the case-insensitive type of the identifier specified in sID, or the following value:
componentid Active Setup identifier of the component.
sMinVersion Optional. String that specifies the version number of the component.
Return Value
Boolean. Returns true if the component is installed and its version number is greater
than or equal to the specified sMinVersion, or false otherwise.
Remarks
Example
Applies To
clientCaps
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
isComponentInstalled Meth... load Method De
Web Workshop | DHTML, HTML & CSS
isHomePage Method
Determines whether the specified URL refers to the client's home page.
Syntax
bQueryHome = oHomePage.isHomePage(sPageURL)
Parameters
sPageURL Required. String that specifies the path and/or file name to compare against a client's specified home page.
Return Value
Boolean. Returns true if the client's Web page is the same as the provided argument,
or false otherwise.
Remarks
The isHomePage method returns false if the argument and a user's home page are
the same, but the document calling the method is on a different domain than the
user's home page.
Example
This example uses the isHomePage method to determine whether a user's home
page is the same as the specified URL.
Applies To
homePage
See Also
dhtml behaviorsI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
isHomePage Method navigate Method Default
Web Workshop | DHTML, HTML & CSS
load Method
Loads an object participating in userData persistence from a UserData store.
Syntax
oPersistObject.load(sStoreName)
Parameters
sStoreName Required. String that specifies the arbitrary name assigned to a persistent object within a UserData store.
Return Value
No return value.
Remarks
The load method reads information from a UserData store. You can determine access
to a UserData store by specifying a path within the immediate directory tree between
the Web root and the current folder. For example, if you save the UserData store in the
/private/ folder, a Web page located in the /public/ folder cannot access that UserData
store.
Example
This example uses the load method to read information about an object participating
in userData persistence saved in a UserData store.
Applies To
userData
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
load Method navigateFrame Method Default B
Web Workshop | DHTML, HTML & CSS
navigate Method
Navigates the window to the specified location and displays the contents in folder view.
Syntax
oDAVObject.navigate(sHTTP)
Parameters
Return Value
No return value.
Remarks
Applies To
httpFolder
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
navigate Method navigateHomePage Method
Web Workshop | DHTML, HTML & CSS
navigateFrame Method
Navigates the window or frame to the specified location and displays the contents in folder
view.
Syntax
oDAVObject.navigateFrame(sHTTP, sTarget)
Parameters
Return Value
No return value.
Remarks
Applies To
httpFolder
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
navigateFrame Method pause Method Default
Web Workshop | DHTML, HTML & CSS
navigateHomePage Method
Navigates the browser to a user's home page.
Syntax
oHomePage.navigateHomePage()
Return Value
No return value.
Example
This example uses the navigateHomePage method to load a user's home page.
Applies To
homePage
See Also
dhtml behaviorsI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
navigateHomePage Method removeAttribute Me
Web Workshop | DHTML, HTML & CSS
pause Method
Syntax
body.pause()
Return Value
No return value.
Remarks
Only the BODY element supports the pause method. When this method is invoked, the
onpause event occurs.
Example
This example uses the pause method to control the highlight sequence for rows in a
table.
Applies To
time
See Also
resume
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pause Method removeDABehavior Method De
Web Workshop | DHTML, HTML & CSS
removeAttribute Method
Removes the specified attribute from the object.
Syntax
oPersistObject.removeAttribute(sAttrName)
Parameters
sAttrName Required. String that specifies the name of the persistent attribute.
Return Value
No return value.
Remarks
This method requires an object participating in persistence, where that object has a
class name equal to the desired persistence behavior. An ID is required for the
userData and saveSnapshot behaviors, and recommended for the saveHistory and
saveFavorite behaviors.
Example
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeAttribute Method resume Method Defa
Web Workshop | DHTML, HTML & CSS
removeDABehavior Method
Syntax
object.removeDABehavior(iID)
Parameters
iID Required. Integer that specifies the identifier of the DABehavior to remove. This value is obtained from a previous call made to the
addDABehavior method.
Return Value
No return value.
Remarks
anim
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeDABehavior Method save Method Defa
Web Workshop | DHTML, HTML & CSS
resume Method
Syntax
body.resume()
Return Value
No return value.
Remarks
Only the BODY element supports the resume method. When this method is invoked,
the onresume event occurs.
Example
This example uses the resume method to control the highlight sequence for rows in a
table.
Applies To
time
See Also
pause
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
resume Method setAttribute Method Default B
Web Workshop | DHTML, HTML & CSS
save Method
Saves an object participating in userData persistence to a UserData store.
Syntax
oPersistObject.save(sStoreName)
Parameters
sStoreName Required. String that specifies the arbitrary name assigned to a persistent object within a UserData store.
Return Value
No return value.
Remarks
The save method writes information into a UserData store. You can determine access
to a UserData store by specifying a path within the immediate directory tree between
the Web root and the current folder. For example, if you save the UserData store in the
/private/ folder, a Web page located in the /public/ folder cannot access the UserData
store.
Example
This example uses the save method to save an object participating in userData
persistence to a UserData store.
Applies To
userData
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
save Method setHomePage Method Default Be
Web Workshop | DHTML, HTML & CSS
setAttribute Method
Sets the value of the specified attribute.
Syntax
oPersistObject.setAttribute(sAttrName, vAttrValue)
Parameters
sAttrName Required. String that specifies the name of the persistent attribute.
vAttrValue Required. Variant that specifies the value of the persistent attribute.
Return Value
No return value.
Remarks
If the specified attribute is not already present, the setAttribute method adds the
attribute to the object and sets the value.
This method requires an object participating in persistence, where that object has a
class name equal to the desired persistence behavior. An ID is required for the
userData and saveSnapshot behaviors, and recommended for the saveHistory and
saveFavorite behaviors.
Example
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setAttribute Method startDownload Method D
Web Workshop | DHTML, HTML & CSS
setHomePage Method
Sets a user's home page to the specified value.
Syntax
oHomePage.setHomePage(sPageURL)
Parameters
sPageURL Required. String that specifies the path and/or file name of the user's home page.
Return Value
No return value.
Remarks
The setHomePage method prompts the user to confirm the new home page value
before setting it on the browser.
Example
This example uses the setHomePage method to set a user's home page.
Applies To
homePage
See Also
dhtml behaviorsI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setHomePage Method onbegin Event Default
Web Workshop | DHTML, HTML & CSS
startDownload Method
Downloads the specified file.
Syntax
Parameters
sUrl Required. String that specifies the location of the file to download.
fpCallback Required. Function pointer that specifies the code to execute after the download is complete.
Return Value
No return value.
Remarks
The callback function pointer takes a single parameter. When a file downloads
successfully, the file contents are passed as the parameter and are accessible in script.
The startDownload method returns only the content of text documents. If a different
document format is downloaded, the format is returned, but the file content is not.
Example
This example uses the startDownload method to begin downloading a file when the
user clicks the link, and to notify the specified callback function, onDownloadDone,
when the download is complete.
Applies To
download
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
startDownload Method onend Event Default B
Web Workshop | DHTML, HTML & CSS
onbegin Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the timeline starts on an element.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Set the element's begin time. The value of the element's begin time, which can depend on other elements, determines when the
event actually fires.
Default Calls the associated event handler.
action
This event also fires for the element when the beginElement method is invoked on it,
or in response to other dependencies created by the BEGINWITH or BEGINEVENT
attribute. This event does not fire when the timeline on the element is set to repeat.
However, it fires if the parent element's timeline is set to repeat.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onbegin event handler, click the
following link.
Applies To
See Also
onend
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbegin Event onload Event Default Behavior
Web Workshop | DHTML, HTML & CSS
onend Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the timeline stops on an element.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Set the element's end time. The value of the element's end time, which can depend on other elements, determines when the event
actually fires.
Default Calls the associated event handler.
action
This event also fires for the element when the endElement method is invoked on it, or
in response to other dependencies created by the ENDEVENT attribute. If the element
timeline is set to repeat, this event fires only once after all repetitions are complete.
The timing of this event is not affected by the ENDHOLD attribute. If the ENDHOLD
attribute is set to true for the element, this event fires when the parent element's
timeline completes.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onend event handler, click the following
link.
Applies To
See Also
onbegin
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onend Event onmediacomplete Event Default
Web Workshop | DHTML, HTML & CSS
onload Event
Fires from a persistent element when the page reloads.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Load the persistent Web page from a favorite or shortcut or through an Internet address.
Default action Initiates any action associated with this script. The onload event for behaviors overrides the onload event for DHTML objects.
Although event handlers in the document object model do not directly receive
parameters, the handler can query the event object for data. For a list of properties of
the event object relevant to an onload event handler, click the following link.
Example
This example shows how to use the onload event for a persistence behavior.
Applies To
saveFavorite, saveHistory
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onload Event onmedialoadfailed Event Defaul
Web Workshop | DHTML, HTML & CSS
onmediacomplete Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the element's associated media finish loading.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Open a page in the browser that contains a media file affected by HTML+TIME.
Default action Calls the associated event handler.
When a streaming media file is used, this event could fire before the file starts playing.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onmediacomplete event handler, click
the following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmediacomplete Event onmediaslip Event D
Web Workshop | DHTML, HTML & CSS
onmedialoadfailed Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when an element's media file fails to load for any reason.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Open a page in the browser that contains a media file affected by HTML+TIME. The event will fire only if the media file fails to load.
Default action Calls the associated event handler.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onmedialoadfailed event handler, click
the following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmedialoadfailed Event onpause Event Defa
Web Workshop | DHTML, HTML & CSS
onmediaslip Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when an element's media file fails to keep up with the defined timeline.
Syntax
Remarks
Bubbles No
Cancels No
To Open a page in the browser that contains a media file affected by HTML+TIME. This event fires only if the media file fails to keep up with
invoke the defined timeline. This event could fire as a result of network problems.
Default Calls the associated event handler.
action
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onmediaslip event handler, click the
following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmediaslip Event onrepeat Event Default Be
Web Workshop | DHTML, HTML & CSS
onpause Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the timeline on an element pauses.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Call the pause method.
Default action Calls the associated event handler.
The onpause event fires on every element that is active when the timeline pauses,
including the BODY element.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onpause event handler, click the
following link.
Applies To
See Also
onresume
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onpause Event onresume Event Default Beha
Web Workshop | DHTML, HTML & CSS
onrepeat Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the timeline repeats on an element, beginning with the second iteration.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Set the repeat property to a value greater than 1.
Default action Calls the associated event handler.
The event fires once for each repetition of the timeline, excluding the first full cycle.
Therefore, the onrepeat event fires repeat–1 times unless it is stopped by other
dependencies before completion. This event fires only if the repeat or repeatDur
property is set directly on the element. This event does not fire on child elements that
have the repeat or repeatDur property set only on their parent elements.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onrepeat event handler, click the
following link.
Example
This example displays a message box that indicates the current repeat iteration every
time the onrepeat event fires on a timeline.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onrepeatEvent onresync Event Default Behav
Web Workshop | DHTML, HTML & CSS
onresume Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when an element's timeline resumes from a paused state.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Call the resume method.
Default action Calls the associated event handler.
The onresume event fires on every element that becomes active when the timeline
resumes, including the BODY element.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onresume event handler, click the
following link.
Applies To
See Also
onpause
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onresume Event onreverse Event Default Beh
Web Workshop | DHTML, HTML & CSS
onresync Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the element's associated media synchronization is interrupted.
Syntax
Remarks
Bubbles No
Cancels No
To Interrupt the element's ability to play its media as defined by the timeline. Using timelines with locked SYNCBEHAVIOR increases the
invoke chances that the element needs to be resynchronized somewhere along the timeline.
Default Calls the associated event handler and re-establishes media synchronization.
action
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onresync event handler, click the
following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onresync Event onsave Event Default Behavio
Web Workshop | DHTML, HTML & CSS
onreverse Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we encourage
you to evaluate these features and to send us your feedbackI , please note that
these features are subject to change.
Fires when the timeline on an element begins to play backward.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Set the AUTOREVERSE attribute on the element to true.
Default action Calls the associated event handler.
If the element is also set to repeat, this event fires every time the timeline begins to
play backward.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onreverse event handler, click the
following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onreverse Event onscriptcommand Default Be
Web Workshop | DHTML, HTML & CSS
onsave Event
Fires from a persisted element when the Web page is saved or bookmarked, or when the
user navigates away from the page.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke
Save the Web page.
Bookmark the Web page.
Navigate to another page.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not directly
receive parameters, the handler can query the event object for data. For a list of
properties of the event object relevant to an onsave event handler, click the following
link.
Example
This example shows how to use the onsave event for a persistence behavior.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onsave Event Default Behaviors Referen...
Web Workshop | DHTML, HTML & CSS
onscriptcommand Event
This document describes technologies available as an experimental
implementation of HTML+TIME within Internet Explorer 5. While we
encourage you to evaluate these features and to send us your feedbackI ,
please note that these features are subject to change.
Fires when the Microsoft® Windows® Media Player control receives a synchronized
command or URL.
Syntax
Remarks
Bubbles No
Cancels No
To Open a document in the browser that plays a streaming media file affected by HTML+TIME. The streaming media file (.asf)
invoke must contain embedded commands, or triggers, in the stream.
Default Calls the associated event handler.
action
This event fires when the Windows Media Player is used with one of the
HTML+TIME media elements, including ANIMATION, AUDIO, IMG, MEDIA, and
VIDEO.
Commands can be embedded among the sounds and images of an .asf file. A
command consists of a pair of Unicode strings associated with a designated time
in the stream. When the stream reaches the time associated with the command,
the Windows Media Player control fires this event and sets two properties on the
event object, the scType property and the Param property. The scType
property specifies the type of command, and the Param property specifies the
command value. The scType property determines how the Windows Media Player
control processes the command parameter.
Although event handlers in the Dynamic HTML (DHTML) Object Model do not
directly receive parameters, the handler can query the event object for data. For
a list of properties of the event object relevant to an onscriptcommand event
handler, click the following link.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Additional Named Entities... HTML Character Se
Web Workshop | DHTML, HTML & CSS
ISO Latin-1 Character Set
The following table contains the complete ISO Latin-1 character set, corresponding to the
first 256 entries of the Unicode character repertoire in Microsoft® Internet Explorer version
4.0 and later. The table provides each character, its decimal code, its named entity
reference for HTML, and also a brief description.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ISO Latin-1 Character Set Character Entities fo
Web Workshop | DHTML, HTML & CSS
Additional Named Entities for HTML
The following table contains additional named entities, their numeric character references,
and a description of each. With the exception of the left and right-pointing brackets
(〈 and 〉), the entities on this page are rendered using Lucida sans
Unicode.
Mathematical Operators
∀ ∀ ∀ for all, U2200 ISOtech
∂ ∂ ∂ partial differential, U2202 ISOtech
∃ ∃ ∃ there exists, U2203 ISOtech
Geometric Shapes
◊ ◊ ◊ lozenge, U25CA ISOpub
Miscellaneous Symbols
♠ ♠ ♠ black spade suit, U2660 ISOpub
♣ ♣ ♣ black club suit, =shamrock, U2663 ISOpub
♥ ♥ ♥ black heart suit, =valentine, U2665 ISOpub
♦ ♦ ♦ black diamond suit, U2666 ISOpub
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Additional Named Entities... Character Set Reco
Web Workshop | DHTML, HTML & CSS
Character Entities for Special Symbols and BIDI Text
Using NE NCR Using NCR
NE
C0 Controls and Basic Latin
&ensp  
en space, U2002 ISOpub
&emsp  
em space, U2003 ISOpub
&thinsp  
thin space, U2009 ISOpub
&zwnj ‌
zero width non-joiner, U200C NEW RFC 2070
&zwj ‍
zero width joiner, U200D NEW RFC 2070
&lrm ‎
left-to-right mark, U200E NEW RFC 2070
&rlm ‏
right-to-left mark, U200F NEW RFC 2070
– &ndash –
en dash, U2013 ISOpub
— &mdash —
em dash, U2014 ISOpub
‘ &lsquo ‘
left single quotation mark, U2018 ISOnum
’ &rsquo ’
right single quotation mark, U2019 ISOnum
‚ &sbquo ‚
single low-9 quotation mark, U201A NEW
“ &ldquo “
left double quotation mark, U201C ISOnum
” &rdquo ”
right double quotation mark, U201D ISOnum
„ &bdquo „
double low-9 quotation mark, U201E NEW
† &dagger †
dagger, U2020 ISOpub
‡ &Dagger ‡
double dagger, U2021 ISOpub
‰ &permil ‰
per mille sign, U2030 ISOtech
‹ &lsaquo ‹
single left-pointing angle quotation mark, U2039 ISO
proposed
› &rsaquo › single right-pointing angle quotation mark, U203A ISO
proposed
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Character Entities for Sp... CSS Attributes Refe
Web Workshop | DHTML, HTML & CSS
Character Set Recognition
Microsoft® Internet Explorer uses the character set specified for a document to determine
how to translate the bytes in the document into characters on the screen or on paper. By
default, Internet Explorer uses the character set specified in the HTTP content type
returned by the server to determine this translation. If this parameter is not given,
Internet Explorer uses the character set specified by the META element in the document. It
uses the user's preferences if no META element is given.
You can use the META element to explicitly set the character set for a document. In this
case, you set the HTTP-EQUIV= attribute to "Content-Type" and specify a character set
identifier in the CONTENT= attribute. For example, the following META element identifies
windows-1251 as the character set for the document.
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; CHARSET=windows-1251">
As long as you place the META element before the BODY element, it affects the whole
document, including the TITLE element. For clarity, it should appear as the first element
after HEAD so that all readers know the encoding before the first element that can be
displayed is parsed. Note that the META element applies to the document containing it.
This means, for example, that a compound document (a document consisting of two or
more documents in a set of frames) can use different character sets in different frames.
The following table contains information concerning the character sets supported by
Internet Explorer 5. The information provided is:
Display Name Preferred Charset ID Additional Aliases MLang Code Page Supported by Versions
Japanese (Auto Select) _autodetect 50932 3, 4, 5
Korean (Auto Select) _autodetect_kr 50949 4, 5
Unicode unicode 1200 4, 5
Unicode (BigEndian) unicodeFEFF 1201 4, 5
User Defined x-user-defined 50000 4, 5
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
all Collection applets Collection DHTML Collec
Web Workshop | DHTML, HTML & CSS
anchors Collection
Retrieves a collection of all A objects that have a name and/or id property. Objects in this
collection are in HTML source order.
Syntax
[ collAnchors = ] document.anchors
[ oObject = ] document.anchors(vIndex [, iSubIndex] )
Possible Values
Members
Example
This example shows how to display the name property of the third anchor defined in
the document.
alert(document.anchors(2).name);
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
anchors Collection areas Collection DHTML Co
Web Workshop | DHTML, HTML & CSS
applets Collection
Retrieves a collection of all APPLET objects in the document.
Syntax
[collApplets = ]document.applets
[oObject= ]document.applets(vIndex [,iSubIndex] )
Possible Values
Members
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
applets Collection attributes Collection DHTM
Web Workshop | DHTML, HTML & CSS
areas Collection
Retrieves a collection of the AREA objects defined for the given MAP object.
Syntax
[collAreas = ]map.areas
[oObject= ]map.areas(vIndex [,iSubIndex] )
Possible Values
Members
Remarks
Areas can be added to or removed from the collection. If duplicate identifiers are
found, a collection of those items is returned. Collections of duplicates must be
referenced subsequently by ordinal position.
Applies To
MAP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
attributes Collection bookmarks Collection DH
Web Workshop | DHTML, HTML & CSS
behaviorUrns Collection
Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors
attached to the element.
Syntax
[ collBehaviorUrns = ] object.behaviorUrns
[ sBehaviorUrn = ] object.behaviorUrns(iIndex)
Possible Values
Remarks
A behavior can specify a unique identifier in the form of a URN. If no URN is specified
for a behavior, an empty string is specified in the collection. If no behaviors are
attached to the element, an empty collection is returned.
Members
Example
This example shows how to display the URN of every behavior attached to a specified
DIV.
<HEAD>
<STYLE>
DIV { behavior:url(fly.htc) url (zoom.htc) url (fade.htc)}
</STYLE>
function window.onload()
{
oColl = oDiv.behaviorUrns;
if (oColl != null)
{
for (i=0; i < oColl.length; i++)
alert (oColl(i));
}
}
</HEAD>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
WBR, XML, XMP
See Also
urns
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
behaviorUrns Collection boundElements Collect
Web Workshop | DHTML, HTML & CSS
bookmarks Collection
Returns a collection of ActiveX® Data Objects (ADO) bookmarks tied to the rows affected
by the current event.
Syntax
[collBookmarks= ] event.bookmarks
[oObject= ]event.bookmarks(iIndex)
Possible Values
Members
Applies To
event
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
bookmarks Collection cells Collection DHTML
Web Workshop | DHTML, HTML & CSS
boundElements Collection
Returns a collection of all elements on the page bound to a data set.
Syntax
[collBoundElements= ] event.boundElements
[oObject= ]event.boundElements(vIndex [,iSubIndex])
Possible Values
collBoundElements Array of elements found on a page that are bound to a data set.
oObject Reference to an individual item in the array of elements contained by the object.
vIndex Required. Integer or string that specifies the element or collection to retrieve. If this parameter is an integer, the method
returns the element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If
this parameter is a string and there is more than one element with the name or id property equal to the string, the method
returns a collection of matching elements.
iSubIndex Optional. Position of an element to retrieve. This parameter is used when vIndex is a string. The method uses the string to
construct a collection of all elements that have a name or id property equal to the string, and then retrieves from this collection
the element at the position specified by iSubIndex.
Remarks
Members
Applies To
event
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
cells Collection children Collection DHTML Col
Web Workshop | DHTML, HTML & CSS
childNodes Collection
Retrieves a collection of elements and TextNodes that are direct descendants of the
specified object.
Syntax
[ collChildNodes = ] object.childNodes
[ oNode = ] object.childNodes(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
Example
This example shows how to assign to a variable the childNodes collection of the BODY
object.
<SCRIPT>
var aNodeList = oBody.childNodes;
</SCRIPT>
:
<BODY ID="oBody">
<SPAN ID="oSpan">A Span</SPAN>
</BODY>
This example shows how to assign to a variable the childNodes collection of a node
created with the createElement method.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P, PLAINTEXT, PRE, Q, S,
SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
elements Collection filters Collection DHTML C
Web Workshop | DHTML, HTML & CSS
embeds Collection
Retrieves a collection of all EMBED objects in the document.
Syntax
[collEmbeds = ]document.embeds
[oObject= ]document.embeds(vIndex [,iSubIndex] )
Possible Values
Members
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
embeds Collection forms Collection DHTML Co
Web Workshop | DHTML, HTML & CSS
filters Collection
Retrieves the collection of filters that have been applied to the object.
Syntax
[collFilters = ]object.filters
[oObject= ]object.filters(vIndex [,iSubIndex] )
Possible Values
Members
Remarks
For a filter to render, the SPAN and DIV elements must have one of the following
cascading style sheets (CSS) attributes: height, width, or position (absolute or
relative).
Applies To
BDO, BODY, BUTTON, custom, DIV, FIELDSET, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, NEXTID, RT, RUBY, SPAN, TABLE, TD,
TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
filters Collection frames Collection DHTML Co
Web Workshop | DHTML, HTML & CSS
forms Collection
Retrieves a collection, in source order, of all FORM objects in the document.
Syntax
[collForms = ]document.forms
[oObject= ]document.forms(vIndex [,iSubIndex] )
Possible Values
Members
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
frames Collection imports Collection DHTML C
Web Workshop | DHTML, HTML & CSS
images Collection
Retrieves a collection, in source order, of IMG objects in the document.
Syntax
[collImages = ]document.images
[oObject= ]document.images(vIndex [,iSubIndex] )
Possible Values
Members
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
imports Collection mimeTypes Collection DHT
Web Workshop | DHTML, HTML & CSS
links Collection
Retrieves a collection of all A objects that specify the href property and all AREA objects in
the document.
Syntax
[ collLinks = ] document.links
[ oObject = ] document.links(iIndex)
Possible Values
Members
Remarks
For A objects to appear in the collection, they must have a name and/or id property.
Example
This example shows how to display the HREF attribute of the third link defined in the
document.
alert(document.links(2).href);
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
links Collection options Collection DHTML Coll
Web Workshop | DHTML, HTML & CSS
mimeTypes Collection
Not implemented.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
options Collection rows Collection DHTML Col
Web Workshop | DHTML, HTML & CSS
plugins Collection
Retrieves a collection of all EMBED objects within the document.
Syntax
[collPlugins = ]navigator.plugins
[oObject= ]navigator.plugins(iIndex)
Possible Values
Members
Remarks
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
rules Collection styleSheets Collection DHTML
Web Workshop | DHTML, HTML & CSS
scripts Collection
Retrieves a collection of all SCRIPT objects in the document.
Syntax
[collScripts = ]document.scripts
[oObject= ]document.scripts(vIndex [,iSubIndex] )
Possible Values
Members
Remarks
This collection contains all the scripts in the document in source order regardless of the
script's location in the document (whether in the HEAD or BODY).
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
styleSheets Collection TextRectangle Collection
Web Workshop | DHTML, HTML & CSS
tBodies Collection
Retrieves a collection of all TBODY objects in the table. Objects in this collection are in
HTML source order.
Syntax
[ collTBodies = ] table.tBodies
[ oObject = ] table.tBodies(vIndex [, iSubIndex] )
Possible Values
Members
Remarks
This collection can be indexed by name (ID). If duplicate names are found, a collection
of those named items is returned. Collections of duplicate names must be referenced
subsequently by ordinal position.
Example
This example shows how to put text in the first cell in the first row of the first TBODY
object in the TABLE. For each TABLE, an initial TBODY object is synthesized in the
HTML tree even if a TBODY element does not exist in the HTML source.
document.all.oTable.tBodies[0].rows[0].cells[0].innerText =
"Text for the first table cell";
Applies To
TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getElementById Method getElementsByTagNam
Web Workshop | DHTML, HTML & CSS
getElementsByName Method
Syntax
collObjects = document.getElementsByName(sNameValue)
Parameters
Return Value
Remarks
When you use the getElementsByName method, all elements in the document that
have the specified NAME attribute value are returned.
Elements that support the NAME attribute are included in the collection returned by
the getElementsByName method, but not elements with a NAME expando.
Example
Applies To
document
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getElementsByName Method getExpression Me
Web Workshop | DHTML, HTML & CSS
getElementsByTagName Method
Syntax
collObjects = document.getElementsByTagName(sTagName)
Parameters
Return Value
Remarks
When you use the getElementsByTagName method, all child elements with the
specified tag name are returned.
Example
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT,
SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
Syntax
collElements = object.tags(sTag)
Parameters
sTag Required. String that specifies an HTML tag. It can be any one of the objects exposed by the DHTML Object Model.
Return Value
Remarks
This method returns an empty collection if no elements having the given name are
found. Use the length property on the collection to determine the number of elements
it contains.
Example
This example uses the tags method to retrieve a collection of all P elements in the
document, and then uses the textDecoration property to underline each element.
<SCRIPT LANGUAGE="JScript">
var coll = document.all.tags("P");
if (coll!=null)
{
for (i=0; i<coll.length; i++)
coll[i].style.textDecoration="underline";
}
</SCRIPT>
Applies To
all, anchors, applets, areas, boundElements, cells, children, elements, embeds, forms, images, links, options, plugins, rows, scripts, tbodies
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
taintEnabled Method write Method DHTML Me
Web Workshop | DHTML, HTML & CSS
urns Method
Retrieves a collection of all objects to which a specified behavior is attached.
I
Syntax
collObjects = object.urns(sUrn)
Parameters
sUrn Required. String that specifies the behavior's Uniform Resource Name (URN).
Return Value
Remarks
This method returns an empty collection if no element has the specified behavior
attached to it.
Use the length property on the collection to determine the number of elements it
contains, and the item method to obtain a particular item in the collection.
Example
This example uses the urns method to retrieve a collection of all elements currently
attached to the specified behavior, and then displays a comma-delimited list of IDs of
the elements in a message box.
<SCRIPT LANGUAGE="JScript">
var coll = document.all.urns("URN1");
var sText = '';
if (coll != null)
{
for (i=0; i<coll.length; i++)
sText += coll.item(i).id + ', ';
window.alert (sText);
}
</SCRIPT>
Applies To
all, anchors, applets, areas, boundElements, cells, childNodes, children, elements, embeds, FORM, forms, images, links, options, rows, scripts,
SELECT, stylesheets, tbodies
See Also
behaviorUrns
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onafterprint Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onabort Event
Fires when the user aborts the download of an image.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke
Click an anchor.
Click the browser Stop button.
Navigate to another page.
Applies To
IMG
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onabort Event onafterupdate Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onafterprint Event
Fires on the object immediately after its associated document prints.
Syntax
Remarks
Bubbles No
Cancels No
To invoke
Choose Print from the File menu in Internet Explorer.
Press CTRL + P.
Right-click anywhere on a page, and choose Print.
Right-click on a link on a page, and choose Print.
From Windows Explorer, select an .htm file, and then choose Print from the File menu.
From Windows Explorer, right-click on an .htm file, and then choose Print.
This event is usually used with the onbeforeprint event. Use the onbeforeprint event
to make changes to the document just before it prints. Use the onafterprint event to
undo those changes, reverting the document back to its pre-print state.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onafterprint event to return the document to its pre-print
state. In this case, because the onbeforeprint event handler makes all currently
hidden sections of the page visible for printing, the onafterprint event sets those
sections back to hidden.
Applies To
See Also
onbeforeprint, print
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onafterprint Event onbeforecopy Event DHTM
Web Workshop | DHTML, HTML & CSS
onafterupdate Event
Fires on a databound object after successfully updating the associated data in the data
source object.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Change the data that the object contains.
Default action Confirms that data has been transferred.
This event only fires when the object is databound and an onbeforeupdate event has
fired (for example, because the data has changed).
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onafterupdate Event onbeforecut Event DHTM
Web Workshop | DHTML, HTML & CSS
onbeforecopy Event
Fires on the source object before the selection is copied to the system clipboard.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After selecting the text:
Right-click to display the shortcut menu and select Copy.
Or press CTRL+C.
The onbeforecopy event fires on the source element. Use the setData method to
specify a data format for the selection.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
Applies To
A, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, Hn, I,
IMG, LABEL, LEGEND, LI, LISTING, MENU, NOBR, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TD, TEXTAREA, TH,
TR, TT, U, UL
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbeforecopy Event onbeforeeditfocus Event
Web Workshop | DHTML, HTML & CSS
onbeforecut Event
Fires on the source object before the selection is deleted from the document.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After selecting the text:
Right-click to display the shortcut menu and select Cut.
Or press CTRL+X if the selection is within a text field.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the setData and getData methods with the clipboardData object to
perform a cut-and-paste operation through the shortcut menu.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbeforecut Event onbeforepaste Event DHTM
Web Workshop | DHTML, HTML & CSS
onbeforeeditfocus Event
Fires before a control enters a UI activated state.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke
Press the ENTER key or click an object when it has focus.
Double-click an object.
The designMode property allows Web authors to use the design mode in Microsoft®
Internet Explorer, and the property must be set to yes for the onbeforeeditfocus
event to fire.
While the browser is in design mode, objects enter a UI activated state when the user
presses the ENTER key or clicks an object that has focus, or when the user double-
clicks the object. Objects that are UI activated have their own window within the
document and allow authors to modify the user interface. To place an object in a UI
activated state, the document must be in design mode.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, APPLET, AREA, BUTTON, custom, DIV, document, FIELDSET, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden,
INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, OBJECT,
SELECT, SPAN, TABLE, TD, TEXTAREA, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbeforeeditfocus Event onbeforeprint Event
Web Workshop | DHTML, HTML & CSS
onbeforepaste Event
Fires on the target object before the selection is pasted from the system clipboard to the
document.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After copying or cutting text:
Right-click to display the shortcut menu and select Paste.
Or press CTRL+V.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbeforepaste Event onbeforeunload Event D
Web Workshop | DHTML, HTML & CSS
onbeforeprint Event
Fires on the object before its associated document prints.
Syntax
Remarks
Bubbles No
Cancels No
To invoke
Choose Print from the File menu in Internet Explorer.
Press CTRL + P.
Right-click anywhere on a page, and choose Print.
Right-click on a link on a page, and choose Print.
From Windows Explorer, select an .htm file and choose Print from the File menu.
From Windows Explorer, right-click on an .htm file and choose Print.
Default action Prints the document associated with the object for which the event is specified.
Use this event to modify the document just before it prints. In most cases it is used to
make all the information on the page visible just before printing.
Use the event in conjunction with the onafterprint event to undo the changes made to
the document in the onbeforeprint event.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onbeforeprint to make all hidden sections of the page visible
just before the page prints. The onafterprint event is processed after the page prints
to return the document to its original state.
Applies To
See Also
onafterprint, print
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbeforeunload Event onblur Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onbeforeupdate Event
Fires on a databound object before updating the associated data in the data source object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Cause an object to receive focus, change the value of the object, and either cause the object to lose focus or force the page to
unload.
Default Signals that the data contained in an object has changed.
action
If the onbeforeupdate event is canceled, the onafterupdate event does not fire.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onblur Event oncellchange Event DHTML Even
Web Workshop | DHTML, HTML & CSS
onbounce Event
Fires when the behavior property of the MARQUEE object is set to "alternate" and the
contents of the marquee reach one side of the window.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Cause the MARQUEE contents to loop.
Default action The MARQUEE contents begin to scroll in the opposite direction.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to display an alert each time the onbounce event occurs.
<BODY>
<MARQUEE ID=mqBounce BEHAVIOR=alternate
onbounce="alert('onbounce fired')" LOOP=3
WIDTH=200>Marquee text
</MARQUEE>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
MARQUEE
See Also
behavior
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onbounce Event onchange Event DHTML Even
Web Workshop | DHTML, HTML & CSS
oncellchange Event
Fires when data changes in the data provider.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Cause data in the data source to change.
Default action Signals that the data contained in an object has changed.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
oncellchange Event onclick Event DHTML Eve
Web Workshop | DHTML, HTML & CSS
onchange Event
Fires when the contents of the object or selection have changed.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke
Choose a different OPTION in a SELECT object using mouse or keyboard navigation.
Alter text in the text area and then navigate out of the object.
This event is fired when the contents are committed and not while the value is
changing. For example, on a text box, this event is not fired while the user is typing,
but rather when the user commits the change by leaving the text box that has focus.
In addition, this event is executed before the code specified by onblur when the control
is also losing the focus.
On the SELECT object, this event does not fire programmatically when the SELECTED
attribute is changed from one OPTION to another.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onchange event to retrieve the selected option of a SELECT
object.
<BODY>
<FORM>
<P>Select a different option in the
drop-down list box to trigger the onchange event.
<SELECT NAME=selTest
onchange="alert('Index: ' + this.selectedIndex
+ '\nValue: ' + this.options[this.selectedIndex].value)">
<OPTION VALUE="Books">Books
<OPTION VALUE="Clothing">Clothing
<OPTION VALUE="Housewares">Housewares
</SELECT>
</FORM>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
See Also
onkeypress
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onclick Event oncopy Event DHTML Events
Web Workshop | DHTML, HTML & CSS
oncontextmenu Event
Fires when the user clicks the right mouse button in the client area, opening the context
menu.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Right-click the object.
Default action Opens the context menu. To cancel the default behavior, set the returnValue property of the event object to false.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to prevent a context menu from appearing by canceling the
oncontextmenu event handler.
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
oncontextmenu Event oncut Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
oncopy Event
Fires on the source element when the user copies the object or selection, adding it to the
system clipboard.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After selecting text:
Right-click to display the shortcut menu and select Copy.
Or press CTRL+C.
Use the setData method to specify a data format for the selection.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FORM, Hn,
HR, I, IMG, LEGEND, LI, LISTING, MENU, NOBR, OL, P, PLAINTEXT, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TD, TH, TR, TT, U,
UL
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
oncopy Event ondataavailable Event DHTML E
Web Workshop | DHTML, HTML & CSS
oncut Event
Fires on the source element when the object or selection is removed from the document
and added to the system clipboard.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After selecting text:
Right-click to display the shortcut menu and select Cut.
Or press CTRL+X if the selection is within a text field.
Default action Removes the selection from the document and persists it in the clipboard.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
oncut Event ondatasetchanged Event DHTML
Web Workshop | DHTML, HTML & CSS
ondataavailable Event
Fires periodically as data arrives from data source objects that asynchronously transmit
their data.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Fires when new data is received from the data source.
Default action Signals that new data is available.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondataavailable Event ondatasetcomplete Even
Web Workshop | DHTML, HTML & CSS
ondatasetchanged Event
Fires when the data set exposed by a data source object changes.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke
Make initial data available from a data source object.
Have the data source object expose a different data set.
Perform a filter operation.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondatasetchanged Event ondblclick Event DH
Web Workshop | DHTML, HTML & CSS
ondatasetcomplete Event
Fires to indicate that all data is available from the data source object.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Allow data set change to complete.
Default action Sets the reason property of the event object to one of three values, indicating the reason for completion:
0 Data transmitted successfully.
1 Data transfer aborted.
2 Data transferred in error.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondatasetcomplete Event ondrag Event DHTM
Web Workshop | DHTML, HTML & CSS
ondblclick Event
Fires when the user double-clicks the object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Click the left mouse button twice in rapid succession over an object. The user's double-click must occur within the time limit specified
by the the user's system.
Default Initiates any action that is associated with the event.
action
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the ondblclick event to add items to a list box when the user
double-clicks in the text box.
<HEAD>
<SCRIPT>
function addItem()
{
sNewItem = new Option(txtEnter.value)
selList.add(sNewItem);
}
</SCRIPT>
</HEAD>
<BODY>
<P>Enter text and then double-click in the text box to
add text to the list box.
<INPUT TYPE=text NAME=txtEnter VALUE="Enter_text"
ondblclick="addItem()">
<SELECT NAME=selList SIZE=5></SELECT>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondblclick Event ondragend Event DHTML Eve
Web Workshop | DHTML, HTML & CSS
ondrag Event
Fires on the source object continuously during a drag operation.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke
Drag a text selection or object within the browser.
Drag a text selection or object to another browser.
Drag a text selection or object to a drop target in another application.
Drag a text selection or object to the system desktop.
This event fires on the source object after the ondragstart event. The ondrag event
fires throughout the drag operation, whether the selection being dragged is over the
drag source, a valid target, or an invalid target.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TR, TT, U,
UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondrag Event ondragenter Event DHTML Even
Web Workshop | DHTML, HTML & CSS
ondragend Event
Fires on the source object when the user releases the mouse at the close of a drag
operation.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Release the mouse button during a drag operation.
Default action Calls the associated event handler.
The ondragend event is the final drag event to fire, following the ondragleave event,
which fires on the target object.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TR, TT, U,
UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondragend Event ondragleave Event DHTML E
Web Workshop | DHTML, HTML & CSS
ondragenter Event
Fires on the target element when the user drags the object to a valid drop target.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke
Drag the selection over a valid drop target within the browser.
Drag the selection to a valid drop target within another browser window.
You can handle the ondragenter event on the source or on the target object. Of the
target events, it is the first to fire during a drag operation. Target events use the
getData method to stipulate which data and data formats to retrieve. The list of drag-
and-drop target events includes:
onbeforepaste
onpaste
ondragenter
ondragover
ondragleave
ondrop
When scripting custom functionality, use the returnValue property to disable the
default action.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows when and where each event fires during a drag-and-drop
operation by listing each event and the name of the object firing it in a list box.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondragenter Event ondragover Event DHTML
Web Workshop | DHTML, HTML & CSS
ondragleave Event
Fires on the target object when the user moves the mouse out of a valid drop target during
a drag operation.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Drag the selection over a valid drop target, and then move that selection out again without dropping it.
Default action Calls the associated event handler.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondragleave Event ondragstart Event DHTML
Web Workshop | DHTML, HTML & CSS
ondragover Event
Fires on the target element continuously while the user drags the object over a valid drop
target.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke
Drag the selection over a valid drop target within the browser.
Drag the selection to a valid drop target within another browser window.
The ondragover event fires on the target object after the ondragenter event has
fired.
When scripting custom functionality, use the returnValue property to disable the
default action.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondragover Event ondrop Event DHTML Event
Web Workshop | DHTML, HTML & CSS
ondragstart Event
Fires on the source object when the user starts to drag a text selection or selected object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Drag the selected text or object.
Default action Calls the associated event handler.
The ondragstart event is the first to fire when the user starts to drag the mouse. It is
essential to every drag operation, yet is just one of several source events in the data
transfer object model. Source events use the setData method of the dataTransfer
object to provide information about data being transferred. Source events include
ondragstart, ondrag, and ondragend.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
The first example shows how to detect the tagName property of the object from which
the ondragstart event has originated. The second example shows how to order event
firing for drag-and-drop events.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondragstart Event onerror Event DHTML Even
Web Workshop | DHTML, HTML & CSS
ondrop Event
Fires on the target object when the mouse button is released during a drag-and-drop
operation.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Drag the selection over a valid drop target and release the mouse.
Default action Calls the associated event handler.
The ondrop event fires before the ondragleave and ondragend events.
When scripting custom functionality, use the returnValue property to disable the
default action.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA,
TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondrop Event onerrorupdate Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onerror Event
Fires when an error occurs during object loading.
Syntax
When this event is bound to the window object, the following parameters apply. These
parameters are required in Microsoft® Visual Basic® Scripting Edition (VBScript).
Parameter Description
sMsg Optional. Description of the error that occurred.
sUrl Optional. URL of the page on which the error occurred.
sLine Optional. Line number on which the error occurred.
Remarks
Bubbles No
Cancels Yes
To invoke Cause one of the following errors to occur:
Run-time script error, such as an invalid object reference or security violation.
Error while downloading an object, such as an image.
Default action
Displays the browser error message when a problem occurs.
Executes any error handling routine associated with the event.
To suppress the default Internet Explorer error message for the window event, set the
returnValue property of the event object to true or simply return true in JScript®.
The onerror event fires for run-time errors, but not for compilation errors. In addition,
error dialog boxes raised by script debuggers are not suppressed by returning true. To
turn off script debuggers, disable script debugging in Internet Explorer by clicking
Tools, Internet Options, and then Advanced.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
The following examples use the onerror event to handle run-time script errors and
object load errors.
Applies To
onerrorupdate
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onerror Event onfilterchange Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onerrorupdate Event
Fires on a databound object when an error occurs while updating the associated data in
the data source object.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Cause the onbeforeupdate event to fire and cancel the data transfer.
Default action Executes any error handling associated with the event.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onerrorupdate Event onfinish Event DHTML E
Web Workshop | DHTML, HTML & CSS
onfilterchange Event
Fires when a visual filter changes state or completes a transition.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Change the filter state.
Default action Signals that the filter on an object has changed state.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onfilterchange event to trigger a filter effect. When the page
loads, the block of text is erased using a checkerboard-down transition. Once the
checkerboard transition is complete, the image is made visible using a box-in
transition.
Applies To
BDO, BODY, BUTTON, custom, DIV, FIELDSET, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, NEXTID, RT, RUBY, SPAN, TABLE, TD,
TEXTAREA, TH, TR
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onfilterchange Event onfocus Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onfinish Event
Fires when marquee looping is complete.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Specify a value for the LOOP attribute of the MARQUEE object.
Default action Marquee ceases to loop.
A value greater than 1 and less than infinity must be set on the LOOP attribute for this
event to fire.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
The example uses the srcElement property of the event object to determine which
marquee has fired the onfinish event.
<BODY>
<LABEL>mqLooper1</LABEL>
<MARQUEE ID=mqLooper1 LOOP=2
onfinish="alert(event.srcElement.id + ' finished
looping.')">
this marquee loops twice
</MARQUEE>
<HR>
<LABEL>mqLooper2</LABEL>
<MARQUEE ID=mqLooper2 LOOP=5
onfinish="alert(event.srcElement.id + ' finished
looping.')">
this marquee loops five times
</MARQUEE>
</BODY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
MARQUEE
See Also
loop, onstart
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onfocus Event onkeydown Event DHTML Even
Web Workshop | DHTML, HTML & CSS
onhelp Event
Fires when the user presses the F1 key while the browser is the active window.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Press the F1 key.
Default action Firing the onhelp event opens an online Help window.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, document,
DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE,
MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, window, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onhelp Event onkeypress Event DHTML Event
Web Workshop | DHTML, HTML & CSS
onkeydown Event
Fires when the user presses a key.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Press any keyboard key.
Default action Returns a number specifying the keyCode of the key that was pressed.
In Microsoft® Internet Explorer 4.0, the onkeydown event fires for the following
keys:
Editing: BACKSPACE
Navigation: PAGE UP, PAGE DOWN
System: SHIFT+TAB
As of Internet Explorer 5, the following keys and key combinations can be canceled by
specifying event.returnValue=false:
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onkeydown event to cancel input from the keyboard.
<SCRIPT>
function fnTrapKD(){
if(oTrap.checked){
oOutput.innerText+="[trap = " + event.keyCode + "]";
event.returnValue=false;
}
else{
oOutput.innerText+=String.fromCharCode(event.keyCode);
}
}
</SCRIPT>
<INPUT TYPE="checkbox" ID="oTrap">
<INPUT ID="oExample" TYPE="text" onkeydown="fnTrapKD()">
<TEXTAREA ID="oOutput" ROWS="10" COLS="50">
</TEXTAREA>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR,
DIV, document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP,
MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
onkeyup
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeydown Event onkeyup Event DHTML Eve
Web Workshop | DHTML, HTML & CSS
onkeypress Event
Fires when the user presses an alphanumeric key.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Press an alphanumeric keyboard key.
Default action Returns a number specifying the Unicode value of the key that was pressed.
As of Microsoft® Internet Explorer 4.0, the onkeypress event fires and can be
canceled for the following keys:
Letters: a - z
Numerals: 0 - 9
Symbols: ! @ # $ % ^ & * ( ) _ - + = < > [ ] { } , . / ? \ | ' ` " ~
System: ESCAPE, SPACE, SHIFT
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to retrieve information from the shiftKey property of the
event object. When the user simultaneously presses the shift key and types a
character in the first text field, the value "true" appears in the second text field.
<HEAD>
<SCRIPT>
function checkKey()
{
if (window.event.shiftKey) // checks whether the SHIFT key
// is pressed
{
txtOutput.value = "true"; // returns TRUE if SHIFT is pressed
// when the event fires
}
}
</SCRIPT>
</HEAD>
<BODY>
<P>Press the SHIFT key while pressing another key.<BR>
<INPUT TYPE=text NAME=txtEnterValue onkeypress="checkKey()">
<P>Indicates "true" if the shift key is used.<BR>
<INPUT TYPE=text NAME=txtOutput>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR,
DIV, document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP,
MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onkeypress Event onload Event DHTML Event
Web Workshop | DHTML, HTML & CSS
onkeyup Event
Fires when the user releases a key.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Release any keyboard key.
Default action Returns a number specifying the keyCode of the key that was released.
In Microsoft® Internet Explorer 4.0, the onkeyup event fires for the following keys:
Editing: BACKSPACE
Navigation: PAGE UP, PAGE DOWN
System: SHIFT+TAB
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR,
DIV, document, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image,
INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP,
MARQUEE, MENU, NEXTID, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
onkeydown, onkeypress
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onload Event onmousedown Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onlosecapture Event
Fires when the object loses the mouse capture.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Cause the object to release mouse capture:
Set mouse capture to a different object.
Change the active window so that the current document using mouse capture loses focus.
Invoke the releaseCapture method on the document or object.
Default action Sends the event notification to the object that is losing the mouse capture.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to fire the onlosecapture event. When the user clicks the
mouse, the releaseCapture method is invoked and subsequently fires the
onlosecapture event.
<BODY onload="divOwnCapture.setCapture()"
onclick="divOwnCapture.releaseCapture();">
<DIV ID=divOwnCapture
onmousemove="txtWriteLocation.value=event.clientX
+ event.clientY";
onlosecapture="alert(event.srcElement.id
+ ' lost mouse capture.')">
<P>Mouse capture has been set to this gray division (DIV) at
load time using the setCapture method. The text area will
track
the mousemove event anywhere in the document.<BR><BR>
<TEXTAREA ID=txtWriteLocation COLS=2></TEXTAREA>
</DIV>
<HR>
<DIV ID=divNoCapture>
<P>Click anywhere on the document to invoke the releaseCapture
method, whereby the onlosecapture event will fire.</P>
</DIV>
</BODY>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onlosecapture Event onmousemove Event DH
Web Workshop | DHTML, HTML & CSS
onmousedown Event
Fires when the user clicks the object with either mouse button.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Click a mouse button.
Default action Initiates actions associated with the event and with the object being clicked.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example shows how to determine the origin of the onmousedown event when
event bubbling is used.
<BODY onmousedown="alert(event.srcElement.tagName)">
<TABLE BORDER=1>
<TH>Click the items below with your mouse.</TH>
<TR><TD><BUTTON>Click Me</BUTTON></TD></TR>
<TR><TD><INPUT TYPE=text VALUE="Click Me"></TD></TR>
<TR><TD><SPAN>Click Me</SPAN></TD></TR>
</TABLE>
<P>This code retrieves the tagName of the object on which
the onmousedown event has fired.
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY,
TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmousedown Event onmouseout Event DHT
Web Workshop | DHTML, HTML & CSS
onmousemove Event
Fires when the user moves the mouse over the object.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Move the mouse over the document.
Default action Initiates any action associated with this event.
If the user presses a mouse button, use the button property to determine which button
was pressed.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onmousemove event to monitor the location of the mouse
cursor on the screen. When the mouse cursor moves over the DIV object, a SPAN
object is updated with the clientX and clientY property values. The clientX and clientY
properties are exposed by the event object.
<SCRIPT>
function fnTrackMouse(){
oNotice.innerText="Coords: (" + event.clientX + ",
" + event.clientY + ")";
}
</SCRIPT>
</DIV>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=oreset, INPUT type=password, INPUT type=radio, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmouseover Event onpaste Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onmouseup Event
Fires when the user releases a mouse button while the mouse is over the object.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Press and release a mouse button.
Default action Initiates any action associated with this event.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onmouseup Event onpropertychange Event D
Web Workshop | DHTML, HTML & CSS
onpaste Event
Fires on the target object when the user pastes data, transferring the data from the
system clipboard to the document.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke After copying or cutting the text:
Right-click to display the shortcut menu and select Paste.
Or press CTRL+V.
Default action Inserts the data from the system clipboard into the specified location on the document.
Creating custom code to enable the Paste command requires several steps.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the clipboardData object to implement custom editing functionality.
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, OL, P, PLAINTEXT, PRE, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Syntax
Remarks
Bubbles No
Cancels No
To invoke Cause a property to change value.
Default action Sends notification when a property changes.
When the onpropertychange event fires, the srcElement property of the event
object is set to the object whose property has changed.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
Applies To
A, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COMMENT, custom, DD, DFN, DIR, DIV,
DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL,
LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
propertyName, srcElement
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onpropertychange Event onreset Event DHTM
Web Workshop | DHTML, HTML & CSS
onreadystatechange Event
Fires when the state of the object has changed.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Change the ready state.
Default action Signals the ready state of the document.
You can use the readyState property to query the current state of the element when
the onreadystatechange event fires.
All elements expose an onreadystatechange event. The following objects always fire
the event because they load data: APPLET, document, FRAME, FRAMESET, IFRAME,
IMG, LINK, OBJECT, SCRIPT, and XML elements. Other objects will only fire the
onreadystatechange event when a dhtml behavior is attached.
I
When working with behaviors, wait for the onreadystatechange event to fire and
verify that the readyState property of the element is set to complete to ensure that
the behavior is completely downloaded and applied to the element. Until the
onreadystatechange event fires, if you use any of the behavior-defined members
before attaching the behavior to the element, a scripting error can result, indicating
that the object does not support that particular property or method.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onreadystatechange event to invoke a function when the
readyState is complete.
document.onreadystatechange=fnStartInit;
function fnStartInit(){
if(event.readyState=="complete"){
// Finish initialization.
}
}
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, HEAD, Hn, HR,
HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE,
MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN,
STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onreadystatechange Event onresize Event DH
Web Workshop | DHTML, HTML & CSS
onreset Event
Fires when a user resets a form.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke
Click a Reset button.
Invoke the reset method of the FORM object.
Refresh the page.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
FORM
See Also
reset
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onresize Event onrowexit Event DHTML Event
Web Workshop | DHTML, HTML & CSS
onrowenter Event
Fires to indicate that the current row has changed in the data source and new data values
are available on the object.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Change data values in the current row.
Default action Signals that new data is available in the current row.
The onrowenter event only fires on databound objects. This event applies only to
objects that identify themselves as data providers.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onrowenter Event onrowsdelete Event DHTML
Web Workshop | DHTML, HTML & CSS
onrowexit Event
Fires just before the data source control changes the current row in the object.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Change rows in the data source.
Default action Signals that the row in the databound object is about to be changed.
The onrowexit event only fires on databound objects. This event applies to objects
that identify themselves as data providers.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onrowexit Event onrowsinserted Event DHTM
Web Workshop | DHTML, HTML & CSS
onrowsdelete Event
Fires when rows are about to be deleted from the recordset.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Fires when the delete method is called on the recordset.
Default action Signals that rows are about to be deleted.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onrowsdelete Event onscroll Event DHTML Ev
Web Workshop | DHTML, HTML & CSS
onrowsinserted Event
Fires just after new rows are inserted in the current recordset.
Syntax
Remarks
Bubbles Yes
Cancels No
To invoke Fires when the addnewInt method is called on the current recordset.
Default action Signals that a new row has been inserted into the recordset.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
See Also
data binding
I
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onrowsinserted Event onselect Event DHTML
Web Workshop | DHTML, HTML & CSS
onscroll Event
Fires when the user repositions the scroll box in the scroll bar on the object.
Syntax
Remarks
Bubbles No
Cancels No
To invoke Begin scrolling in the object that has a scroll bar:
Click and drag the scroll box with the mouse.
Click the scroll arrow.
Click the scroll bar.
Invoke the doScroll method.
Press the PAGE UP or PAGE DOWN key.
Press the ARROW UP or ARROW DOWN key until scrolling occurs.
Default action Scrolls the contents of an object until new portions of the object become visible.
Use the componentFromPoint and doScroll methods to control the scroll bar
components.
Cascading style sheets (CSS) enable scrolling on all objects through the overflow
property. These objects are not listed in the Applies To list for this event.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
APPLET, BDO, BODY, custom, DIV, EMBED, MAP, MARQUEE, OBJECT, SELECT, TABLE, TEXTAREA
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onscroll Event onselectstart Event DHTML Eve
Web Workshop | DHTML, HTML & CSS
onselect Event
Fires when the current selection changes.
Syntax
Remarks
Bubbles No
Cancels Yes
To invoke Initiate text selection:
Move the mouse from character to character during a drag selection.
Press the SHIFT key while moving the cursor over text.
Default action Moves the selection to a given character and highlights that selection.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onselect Event onstart Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onselectstart Event
Fires when the object is being selected.
Syntax
Remarks
Bubbles Yes
Cancels Yes
To invoke Begin selecting one or more objects.
Default action Moves the selection to an object and highlights that selection.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DEL, DFN, DIR, DIV, DL,
DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LI, LISTING, MAP, MARQUEE, MENU,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
onselect, select
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onselectstart Event onstop Event DHTML Eve
Web Workshop | DHTML, HTML & CSS
onstart Event
Fires at the beginning of every loop of the MARQUEE object.
Syntax
Remarks
Bubbles No
Cancels No
To invoke
Set the LOOP attribute to 1 or higher.
Omit the LOOP attribute so that the MARQUEE loops indefinitely.
The start method does not cause the onstart event to fire.
Although event handlers in the DHTML Object Model do not receive parameters
directly, the handler can query the event object for data.
Example
<BODY>
<P>An alert dialog box displays each time the onstart event
fires.
<MARQUEE onstart="alert('onstart fired')"
BEHAVIOR=alernate LOOP=2>Marquee Text</MARQUEE>
</BODY>
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
MARQUEE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
onstart Event onsubmit Event DHTML Events
Web Workshop | DHTML, HTML & CSS
onstop Event
Fires when the user clicks the Stop button or leaves the Web page.
Syntax
Remarks
Bubbles No
Cancels No
To invoke
Click the Stop button.
Leave the Web page.
The onstop event fires after the onbeforeunload event, and before the onunload
event.
Although event handlers in the document object model do not receive parameters
directly, the handler can query the event object for data.
Example
This example uses the onstop event to stop a function from executing in a continuous
cycle. The setInterval method is used to execute script every millisecond. If the user
clicks the Stop button, the clearInterval method removes the interval and the script is
no longer executed.
document.onstop=fnTrapStop;
window.onload=fnInit;
var oInterval;
function fnInit(){
oInterval=window.setInterval("fnCycle()",1);
}
function fnCycle(){
// Do something
}
function fnTrapStop(){
window.clearInterval(oInterval);
}
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addBehavior Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
add Method
Adds an element to the collection.
Syntax
object.add(oElement [, iIndex])
Parameters
oElement Required. Object that specifies the element to add to the collection.
iIndex Optional. Integer that specifies the index position in the collection where the element is placed. If no value is
given, the method places the element at the end of the collection.
Return Value
No return value.
Remarks
Before you can add an element to a collection, you must create it first by
using the createElement method.
The add method can be used on the AREA object only after the page
loads. If the method is applied inline, a run-time error occurs.
Example
This example uses the add method to insert an object into the options
collection of a SELECT object.
<SELECT ID="oSelect">
<OPTION VALUE="1">One</OPTION>
</SELECT>
<SCRIPT>
var oOption = document.createElement("OPTION");
oSelect.options.add(oOption);
oOption.innerText = "Two";
oOption.Value = "2";
</SCRIPT>
Applies To
See Also
remove
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
add Method AddChannel Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
addBehavior Method
Attaches a behavior to the element.
I
Syntax
iID = object.addBehavior(sUrl)
Parameters
Return Value
Integer. Returns an identifier that can be used later to detach the behavior from the
element.
Remarks
This method lets you attach a behavior without having to use cascading style sheets
(CSS).
Unless the behavior specified in the addBehavior call is one of the default behaviors
built into Microsoft® Internet Explorer, the addBehavior call causes Internet Explorer
to download the behavior asynchronously, before the behavior is attached to the
element.
Due to the asynchronous nature of the addBehavior method, its return value cannot
be relied on to determine whether the behavior was successfully applied to the
element. Waiting for the onreadystatechange event to fire and verifying that the
readyState property of the element is set to complete ensures that the behavior is
completely attached to the element, and that all the behavior's members are available
for scripting. Otherwise, attempting to use any of the behavior-defined members
before the behavior is attached to the element results in a scripting error indicating
that the object does not support that particular member.
Example
This example uses the addBehavior method to dynamically attach a behavior that
implements a mouseover highlighting effect to all LI elements on a page.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
WBR, XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addBehavior Method AddDesktopComponent M
Web Workshop | DHTML, HTML & CSS
AddChannel Method
Presents a dialog box that allows the user to either add the channel specified, or change
the channel URL if it is already installed.
Syntax
window.external.AddChannel(sURLToCDF)
Parameters
sURLToCDF Required. String that specifies the URL of a Channel Definition Format (CDF) file to be installed.
Return Value
No return value.
Remarks
If the call fails, an error dialog box appears. You can suppress the dialog box by using
the onerror event.
Note This method is intended for use by publishers shipping Microsoft® Active
Channel™ content. Active Channel technology is available as of Microsoft® Internet
Explorer 4.0 and later.
This example uses the AddChannel method to present a dialog box that allows the
user to add the channel described in the specified CDF file.
window.external.AddChannel("http://domain/folder/file.cdf");
Applies To
external
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AddChannel Method AddFavorite Method DHT
Web Workshop | DHTML, HTML & CSS
AddDesktopComponent Method
Adds a Web site or image to the Microsoft® Active Desktop™.
Syntax
Parameters
sURL Required. String that specifies the location of the Web site or image to be added to the Active Desktop.
sType Required. String that specifies the type of item to add. The value image specifies the component is an image. The value website specifies
the component is a Web site.
iLeft Optional. Integer that specifies the position of the left edge, in screen coordinates.
iTop Optional. Integer that specifies the position of the top edge, in screen coordinates.
iWidth Optional. Integer that specifies the width, in screen units.
iHeight Optional. Integer that specifies the height, in screen units.
Return Value
No return value.
Remarks
The user must have Active Desktop installed for the AddDesktopComponent method
to work. If Active Desktop is not installed, the method is not invoked.
This example uses the AddDesktopComponent method to add the Microsoft Web site
as an Active Desktop component.
window.external.AddDesktopComponent(
"http://www.microsoft.com",
"website",
100,100,200,200
);
Applies To
external
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AddDesktopComponent Metho... addImport Me
Web Workshop | DHTML, HTML & CSS
AddFavorite Method
Prompts the user with a dialog box to add the specified URL to the Favorites list.
Syntax
external.AddFavorite(sURL [, sTitle])
Parameters
sURL Required. String that specifies the URL of the favorite to be added to the Favorites list.
sTitle Optional. String that specifies the suggested title to be used in the Favorites list. The user can change the title in the Add Favorite dialog box.
Return Value
No return value.
Remarks
Calling the AddFavorite method in script yields the same dialog box that is presented
when the user selects Add to Favorites from the Favorites menu.
This example uses the AddFavorite method to prompt a user to add the current page
to the Favorites list.
window.external.AddFavorite(location.href, document.title);
This feature requires Internet Explorer 4.0 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
external
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addImport Method addRule Method DHTML M
Web Workshop | DHTML, HTML & CSS
addReadRequest Method
Adds an entry to the queue for read requests.
Syntax
Parameters
sAttributeName Required. String that specifies one of the standard vCard names. If anything else is used, the request is ignored and nothing is
added to the read-requests queue.
vReserved Optional. Internet Explorer currently ignores this parameter.
Return Value
Boolean. Returns true if the request has been added to the queue successfully, or
false otherwise. A return value of false means either the attribute name was not
recognized or the attribute already appeared in the request queue.
Remarks
This method appends a vCard name to the read-requests queue. The read-requests
queue is a list of read requests waiting to be initiated. To initiate the accumulated, or
compound, read requests in the queue, call doReadRequest. To clear the queue, call
clearRequest.
Applies To
userProfile
See Also
getAttribute
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addReadRequest Method alert Method DHTML
Web Workshop | DHTML, HTML & CSS
addRule Method
Creates a new style rule for the styleSheet object, and returns the index into the rules
collection.
Syntax
Parameters
sSelector Required. String that specifies the selector for the new rule. Single contextual selectors are valid. For example, "DIV P B" is a valid
contextual selector.
sStyle Required. String that specifies the style assignments for this style rule. This style takes the same form as an inline style specification. For
example, "color:blue" is a valid style parameter.
iIndex Optional. Integer that specifies the location in the rules collection to add the new style rule. If an index is not provided, the rule is added
to the end of the collection by default.
Return Value
Remarks
You can apply rules to a disabled styleSheet, but they do not apply to the document
until you enable the styleSheet.
Example
This example uses the addRule method to add a rule that sets all bold text appearing
in a DIV to the color blue.
<DIV>
Internet Explorer makes <B>HTML</B> dynamic.
</DIV>
<SCRIPT>
var new_rule;
new_rule = styleSheets[0].addRule("DIV B", "color:blue", 0);
</SCRIPT>
This example uses the addRule method to add two rules to the end of the rules
collection. The rules apply the hover and link pseudo-class attributes to all anchors
that appear within an H2 heading.
<H2>
<A HREF="http://www.microsoft.com/">
Where Do You Want to Go Today?
</A>
</H2>
<SCRIPT>
document.styleSheets[0].addRule("H2 A:hover", "color:gold");
document.styleSheets[0].addRule("H2 A:link", "color:black");
</SCRIPT>
Applies To
styleSheet
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addRule Method appendChild Method DHTML
Web Workshop | DHTML, HTML & CSS
alert Method
Displays a dialog box containing an application-defined message.
Syntax
window.alert([sMessage])
Parameters
sMessage Optional. String that specifies the message to display in the Alert dialog box. If no value is provided, the dialog box contains no message.
Return Value
No return value.
Remarks
You cannot change the title bar of the Alert dialog box.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
appendChild Method assign Method DHTML M
Web Workshop | DHTML, HTML & CSS
applyElement Method
Makes the element either a child or parent of the object.
Syntax
object.applyElement(oNewElement [, sWhere])
Parameters
oNewElement Required. Object that becomes the child or parent of the object that invokes applyElement.
sWhere Optional. String that specifies one of the following values:
outside Default. Element becomes a parent of the object.
inside Element becomes a child of the object, but contains all children in the object.
Return Value
No return value.
Remarks
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the applyElement method to apply the I element to an unordered
list.
<SCRIPT>
function fnApply(){
var oNewNode = document.createElement("I");
oList.applyElement(oNewNode);
}
</SCRIPT>
<UL ID = oList>
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</UL>
<INPUT
TYPE="button"
VALUE="Apply Element"
onclick="fnApply()"
>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
applyElement Method attachEvent Method DH
Web Workshop | DHTML, HTML & CSS
assign Method
Loads a new HTML document.
Syntax
location.assign(sURL)
Parameters
sURL Required. String that specifies the URL of the document to load.
Return Value
No return value.
Applies To
location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
assign Method AutoCompleteSaveForm Meth...
Web Workshop | DHTML, HTML & CSS
attachEvent Method
Binds the specified function to an event that fires on the object when the function is called.
Syntax
Parameters
sEvent Required. String that specifies any of the standard DHTML events.
fpNotify Required. Pointer that specifies the function to be called when sEvent fires.
Return Value
Boolean. Returns true if the function is bound successfully to the event, or false
otherwise.
Remarks
When sEvent fires on the object, the object's sEvent handler is called before fpNotify,
the specified function. If you attach multiple functions to the same event on the same
object, the functions are called in random order, immediately after the object's event
handler is called.
The attachEvent method enables a behavior to handle events that occur on the
containing page. This method is not limited, however, to behaviors. You can also define
a function on a page that attaches to events fired on the same page.
Behaviors that attach to events using the attachEvent method must explicitly call the
detachEvent method to stop receiving notifications from the page when the ondetach
event fires. A behavior that attaches to events on the page using the HTML
Components (HTC) ATTACH element automatically stops receiving notifications when
the behavior detaches from the element, and does not need to call the detachEvent
method.
Example
This example shows how to implement a mouseover highlighting effect by calling the
attachEvent method from an HTC.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD,
Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, window, XMP
See Also
detachEvent, dhtml behaviorsI , using dhtml behaviorsI , implementing dhtml
behaviors in scriptI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
attachEvent Method AutoScan Method DHTML
Web Workshop | DHTML, HTML & CSS
AutoCompleteSaveForm Method
Saves the specified form in the AutoComplete data store.
Syntax
window.external.AutoCompleteSaveForm(oForm)
Parameters
Return Value
No return value.
Remarks
To enable the AutoComplete feature for forms, click Tools, Internet Options, Content,
and then AutoComplete. To disable the feature for individual form controls and entire
forms, use the AUTOCOMPLETE attribute.
This example uses the AutoCompleteSaveForm method to save the value of a text
field without submitting the form to a server.
Applies To
external
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
AutoCompleteSaveForm Meth... back Method
Web Workshop | DHTML, HTML & CSS
AutoScan Method
Attempts to connect to a Web server by passing the specified query through completion
templates.
Syntax
Parameters
sUserQuery Required. String that specifies a domain address that begins with www., and ends with .com, .org, .net, or .edu.
sURL Optional. String that specifies the Web page to display if the domain address created from sUserQuery is invalid. The default Internet
Explorer error page is displayed if a value is not provided.
sTarget Optional. String that specifies the target window or frame where the results are displayed. The default value is the current window.
Return Value
No return value.
Remarks
The domain suffixes added to the user query are located in the system registry under
HKEY_LOCAL_MACHINE\software\microsoft\internet explorer\main\urltemplate.
Each suffix is appended in the following order until an existing server is found.
1. .com
2. .org
3. .net
4. .edu
If no server is found, the document specified by the sURL parameter is displayed.
This example uses the AutoScan method to connect to the www.microsoft.com Web
site.
window.external.AutoScan("microsoft","InvalidSite.htm","_main");
Applies To
external
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
back Method clear Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
blur Method
Causes an object to lose focus, and fires the onblur event.
Syntax
object.blur()
Return Value
No return value.
Remarks
As of Microsoft® Internet Explorer 5, elements that expose the blur method must
have the TABINDEX attribute set.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DIV,
DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE,
STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, window, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
blur Method clear Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
clear Method
Clears the contents of the selection.
Syntax
selection.clear()
Return Value
No return value.
Applies To
selection
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clear Method clearAttributes Method DHTML M
Web Workshop | DHTML, HTML & CSS
clear Method
Clears the current document.
Syntax
document.clear()
Return Value
No return value.
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clear Method clearData Method DHTML Metho
Web Workshop | DHTML, HTML & CSS
clearAttributes Method
Syntax
object.clearAttributes()
Return Value
No return value.
Remarks
The clearAttributes method only clears persistent HTML attributes. Events, styles,
and script-only properties are not affected.
Example
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
mergeAttributes
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearAttributes Method clearInterval Method D
Web Workshop | DHTML, HTML & CSS
clearData Method
Removes one or more data formats from the clipboard through dataTransfer or
clipboardData object.
Syntax
object.clearData([sDataFormat])
Parameters
sDataFormat Optional. String that specifies one or more of the following data format values:
Text Removes the text format.
URL Removes the URL format.
File Removes the file format.
HTML Removes the HTML format.
Image Removes the image format.
Return Value
No return value.
Remarks
Example
This example uses the clearData method to remove the Text data format from the
clipboard through the dataTransfer object.
Applies To
clipboardData, dataTransfer
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearData Method clearRequest Method DHTM
Web Workshop | DHTML, HTML & CSS
clearInterval Method
Cancels the interval previously started using the setInterval method.
Syntax
window.clearInterval(iIntervalID)
Parameters
iIntervalID Required. Integer that specifies the interval to cancel. This value must have been previously returned by the setInterval method.
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearInterval Method clearTimeout Method DH
Web Workshop | DHTML, HTML & CSS
clearRequest Method
Clears all requests in the read-requests queue to prepare for new profile-information
requests.
Syntax
userProfile.clearRequest()
Return Value
No return value.
Applies To
userProfile
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearRequest Method click Method DHTML Me
Web Workshop | DHTML, HTML & CSS
clearTimeout Method
Cancels a time-out that was set with the setTimeout method.
Syntax
window.clearTimeout(iTimeoutID)
Parameters
iTimeoutID Required. Integer that specifies the time-out setting returned by a previous call to the setTimeout method.
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clearTimeout Method cloneNode Method DHT
Web Workshop | DHTML, HTML & CSS
click Method
Simulates a click by causing the onclick event to fire.
Syntax
object.click()
Return Value
No return value.
Applies To
A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM,
EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE,
MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD,
TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
click Method close Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
cloneNode Method
Copies a reference to the object from the document hierarchy.
Syntax
oClone = object.cloneNode([bCloneChildren])
Parameters
Return Value
Remarks
Example
This example uses the cloneNode method to copy an unordered list and its
childNodes.
<SCRIPT>
function fnClone(){
/* the 'true' possible value specifies to clone
the childNodes as well.
*/
var oCloneNode = oList.cloneNode(true);
/* When the cloned node is added,
'oList' becomes a collection.
*/
document.body.insertBefore(oCloneNode);
}
</SCRIPT>
<UL ID = oList>
<LI>List node 1
<LI>List node 2
<LI>List node 3
<LI>List node 4
</UL>
<INPUT
TYPE="button"
VALUE="Clone List"
onclick="fnClone()"
>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
appendChild, insertBefore
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
close Method collapse Method DHTML Method
Web Workshop | DHTML, HTML & CSS
close Method
Closes an output stream, and forces the sent data to display.
Syntax
document.close()
Return Value
No return value.
Remarks
When a function fired by an event on the BODY object calls the close method, the
window.close method is implied. When an event on the BODY object calls the close
method, the document.close method is implied.
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
close Method compareEndPoints Method DHT
Web Workshop | DHTML, HTML & CSS
collapse Method
Moves the insertion point to the beginning or end of the current range.
Syntax
TextRange.collapse([bStart])
Parameters
Return Value
No return value.
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
See Also
expand
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
collapse Method componentFromPoint Method
Web Workshop | DHTML, HTML & CSS
compareEndPoints Method
Compares an end point of a TextRange object with an end point of another range.
Syntax
Parameters
Return Value
-1 The end point of the object is further to the left than the end point of oRange.
0 The end point of the object is at the same location as the end point of oRange.
1 The end point of the object is further to the right than the end point of oRange.
Remarks
A text range has two end points. One end point is located at the beginning of the text
range, and the other is located at the end of the text range. An end point also can be
characterized as the position between two characters in an HTML document.
As of Microsoft® Internet Explorer 4.0, an end point is relative to text only, not HTML
tags.
<BODY><P><B>abc
This method might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
compareEndPoints Method confirm Method D
Web Workshop | DHTML, HTML & CSS
componentFromPoint Method
Returns the component located at the specified coordinates.
Syntax
Parameters
Return Value
Remarks
Example
This example uses the componentFromPoint method to determine which object the
mouse pointer is hovering over.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn,
HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR,
XML, XMP
See Also
doScroll, onScroll
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
componentFromPoint Method contains Method
Web Workshop | DHTML, HTML & CSS
confirm Method
Displays a confirmation dialog box that contains an optional message as well as OK and
Cancel buttons.
Syntax
bChoice = window.confirm([sMessage])
Parameters
sMessage Optional. String that specifies the message to display in the confirmation dialog box. If no value is provided, the dialog box does not
contain a message.
Return Value
Boolean. Returns true if the user clicks OK, or false if the user clicks Cancel.
Remarks
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
confirm Method createCaption Method DHTML
Web Workshop | DHTML, HTML & CSS
contains Method
Checks whether the given element is contained within the object.
Syntax
bFound = object.contains(oElement)
Parameters
Return Value
Boolean. Returns true if the element is contained within the current element, or false
otherwise.
Applies To
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom,
DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button,
INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit,
INPUT type=text, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, NOBR, OL, OPTION, P, PLAINTEXT, PRE, S,
SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
contains Method createControlRange Method
Web Workshop | DHTML, HTML & CSS
createCaption Method
Creates an empty CAPTION element in the TABLE.
Syntax
oCaption = TABLE.createCaption()
Return Value
Example
myCaption = document.all.myTable.createCaption()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createCaption Method createElement Method
Web Workshop | DHTML, HTML & CSS
createControlRange Method
Creates a controlRange collection of nontext elements.
Syntax
oControlRange = document.body.createControlRange()
Return Value
Example
oControlRange = document.body.createControlRange();
Applies To
BODY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createControlRange Method createRange Metho
Web Workshop | DHTML, HTML & CSS
createElement Method
Creates an instance of the element object for the specified tag.
Syntax
oElement = document.createElement(sTag)
Parameters
Return Value
Remarks
In Microsoft® Internet Explorer 4.0, the only new elements you can create are IMG,
AREA, and OPTION. As of Internet Explorer 5, you can create all elements in script,
except for FRAME, IFRAME, and SELECT. In addition, the read-only properties of
independently created elements are read/write. Before you use new objects, you must
explicitly add them to their respective collections or to the document. To insert new
elements into the current document, use the insertBefore or appendChild methods.
You must perform a second step when using createElement to create the INPUT
element. The createElement method generates an input text box, because that is the
default INPUT type property. To insert any other kind of INPUT element, first invoke
createElement for INPUT, then set the type property to the appropriate value in the
next line of code.
Attributes can be included with the sTag as long as the entire string is valid HTML. This
is useful since you cannot set the NAME attribute at run time on anchor objects
created with the createElement method. For example, to create an anchor with a
NAME attribute, include the attribute and value when using the createElement
method. You can also use the innerHTML property.
Example
This example uses the createElement method to dynamically update the contents of
a Web page by adding an element selected from a drop-down list box.
<SCRIPT>
function fnCreate(){
oData.innerHTML="";
var oOption=oSel.options[oSel.selectedIndex];
if(oOption.text.length>0){
var aElement=document.createElement(oOption.text);
eval("aElement." + oOption.value + "='" + oText.value +
"'");
if(oOption.text=="A"){
aElement.href="javascript:alert('A link.')";
}
}
oData.appendChild(aElement);
}
</SCRIPT>
<SELECT ID="oSel" onchange="fnCreate()">
<OPTION VALUE="innerText">A
<OPTION VALUE="value"><INPUT TYPE="button">
<INPUT TYPE="text" ID="oText" VALUE="Sample Text">
<SPAN ID="oData" ></SPAN>
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
document
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createRange Method createTextNode Method
Web Workshop | DHTML, HTML & CSS
createStyleSheet Method
Creates a style sheet for the document.
Syntax
Parameters
sURL Optional. String that specifies how to add the style sheet to the document. If a file name is specified for the URL, the style information will
be added as a LINK object. If the URL contains style information, this information will be added to the STYLE object.
iIndex Optional. Integer that specifies the index that indicates where the new style sheet is inserted in the styleSheets collection. The default is to
insert the new style sheet at the end of the collection.
Return Value
Example
This example uses the createStyleSheet method to create a link to a style sheet.
document.createStyleSheet('styles.css');
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createTextRange Method createTHead Method
Web Workshop | DHTML, HTML & CSS
createTFoot Method
Creates an empty TFOOT element in the TABLE.
Syntax
oTFoot = TABLE.createTFoot()
Return Value
Remarks
If a TFOOT already exists for the TABLE, the createTFoot method returns the
existing element. Otherwise, it returns a pointer to the element created.
Example
myTFoot = document.all.myTable.createTFoot()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createTFoot Method deleteCaption Method DH
Web Workshop | DHTML, HTML & CSS
createTHead Method
Creates an empty THEAD element in the TABLE.
Syntax
oTHead = TABLE.createTHead()
Return Value
Remarks
Example
myTHead = document.all.myTable.createTHead()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createTHead Method deleteCell Method DHTM
Web Workshop | DHTML, HTML & CSS
deleteCaption Method
Deletes the CAPTION element and its contents from the TABLE.
Syntax
TABLE.deleteCaption()
Return Value
No return value.
Example
This example uses the deleteCaption method to delete the CAPTION element from
the table.
document.all.myTable.deleteCaption()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
deleteRow Method deleteTHead Method DHTM
Web Workshop | DHTML, HTML & CSS
deleteTFoot Method
Deletes the TFOOT element and its contents from the TABLE.
Syntax
TABLE.deleteTFoot()
Return Value
No return value.
Example
This example uses the deleteTFoot method to delete the TFOOT element from the
table.
document.all.myTable.deleteTFoot()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
deleteTFoot Method detachEvent Method DHT
Web Workshop | DHTML, HTML & CSS
deleteTHead Method
Deletes the THEAD element and its contents from the TABLE.
Syntax
TABLE.deleteTHead()
Return Value
No return value.
Example
This example uses the deleteTHead method to delete the THEAD element from the
table.
document.all.myTable.deleteTHead()
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
deleteTHead Method doReadRequest Method
Web Workshop | DHTML, HTML & CSS
detachEvent Method
Unbinds the specified function from the event, so that the function stops receiving
notifications when the event fires on the object.
Syntax
Parameters
sEvent Required. String that specifies any of the standard DHTML events.
fpNotify Required. Pointer that specifies the function previously set using the attachEvent method.
Return Value
No return value.
Remarks
Behaviors that attach to events using the attachEvent method must explicitly call the
detachEvent method to stop receiving notifications from the page when the ondetach
event fires. Behaviors that attach to events using the ATTACH element automatically
stop receiving notifications when the behavior detaches from the element, and thus do
not need to call the detachEvent method.
Example
This example calls the detachEvent method from an HTML Component (HTC) when
the highlighting effect is removed from the page, causing the ondetach event to fire.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD,
Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, window, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
detachEvent Method doScroll Method DHTML
Web Workshop | DHTML, HTML & CSS
doReadRequest Method
Performs all requests located in the read-requests queue.
Syntax
Parameters
vUsageCode Required. Variant that specifies the code that notifies the user of the type of access requested. This usage code should be one of the
following 13 codes defined by the Internet Privacy Working Group (IPWG).
0 Used for system administration.
1 Used for research and/or product development.
2 Used for completion and support of the current transaction.
3 Used to customize the content and design of a site.
4 Used to improve the content of a site that includes advertisements.
5 Used for notifying visitors about updates to the site.
6 Used for contacting visitors for marketing of services or products.
7 Used for linking other collected information.
8 Used by a site for other purposes.
9 Disclosed to others for customization or improvement of the content and design of the site.
10 Disclosed to others, who may contact the user, for marketing of services and/or products.
11 Disclosed to others, who may contact the user, for marketing of services and/or products. The user
can ask a site not to do this.
12 Disclosed to others for any other purpose.
vFriendlyName Optional. Variant that specifies the friendly name of the party requesting access to private information. For security reasons, it is
not sufficient for the user agent to display this friendly name to the user. In addition to displaying the friendly name, the user agent
must display the URL that originates the script requesting profile access. If this script originates from a secure connection (for
example, SSL), the Web author can use the SSL certificate to reliably identify the party requesting access.
vDomain Optional. Variant that specifies the pages that the user's choice applies to in the future, in addition to the current page. The
specification follows the cookie standard (see rfc-2109)Int.
vPath Optional. Variant that specifies the path to the domain server requesting access. When vExpiration is set, the path is saved with the
requested attributes.
vExpiration Optional. Variant that specifies the amount of time the site has requested access to these attributes. This is currently ignored by
Internet Explorer.
vReserved Optional. This parameter is reserved.
Return Value
Remarks
If the site does not have read access, the user is prompted with a list of requested
attributes and can choose to allow or deny access.
Applies To
userProfile
See Also
Syntax
object.doScroll([sScrollAction])
Parameters
sScrollAction Optional. String that specifies how the object scrolls, using one of the following values:
scrollbarDown Default. Down scroll arrow is at the specified location.
scrollbarHThumb Horizontal scroll thumb or box is at the specified location.
scrollbarLeft Left scroll arrow is at the specified location.
scrollbarPageDown Page-down scroll bar shaft is at the specified location.
scrollbarPageLeft Page-left scroll bar shaft is at the specified location.
scrollbarPageRight Page-right scroll bar shaft is at the specified location.
scrollbarPageUp Page-up scroll bar shaft is at the specified location.
scrollbarRight Right scroll arrow is at the specified location.
scrollbarUp Up scroll arrow is at the specified location.
scrollbarVThumb Vertical scroll thumb or box is at the specified location.
down Composite reference to scrollbarDown.
left Composite reference to scrollbarLeft.
pageDown Composite reference to scrollbarPageDown.
pageLeft Composite reference to scrollbarPageLeft.
pageRight Composite reference to scrollbarPageRight.
pageUp Composite reference to scrollbarPageUp.
right Composite reference to scrollbarRight.
up Composite reference to scrollbarUp.
Return Value
No return value.
Remarks
Cascading style sheets (CSS) allow you to scroll on all objects through the overflow
property.
When the content of an element changes and causes scroll bars to display, the
doScroll method might not work correctly immediately following the content update.
When this happens, you can use the setTimeout method to enable the browser to
recognize the dynamic changes that affect scrolling.
Example
This example uses the doScroll method to scroll through a text area when the user
clicks a button.
Applies To
BODY, custom, DIV, SPAN, TEXTAREA
See Also
componentFromPoint, onScroll
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
doScroll Method elementFromPoint Method D
Web Workshop | DHTML, HTML & CSS
duplicate Method
Returns a duplicate of the TextRange.
Syntax
oTextRange = object.duplicate()
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
duplicate Method empty Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
elementFromPoint Method
Returns the element for the specified iX and iY coordinates.
Syntax
Parameters
Return Value
Remarks
Coordinates are supplied in client coordinates. The top left corner of the client area is
(0,0). For elementFromPoint to exhibit expected behavior, the object or element
located at position (x, y) must support and respond to mouse events.
When using this method with the structured graphics or sprite objects, you must
I I
set mouseeventsenabled to 1.
I
Applies To
document
See Also
clientX, clientY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
execScript Method findText Method DHTML M
Web Workshop | DHTML, HTML & CSS
expand Method
Expands the range so that partial units are completely contained.
Syntax
bSuccess = TextRange.expand(sUnit)
Parameters
sUnit Required. String that specifies the units to move in the range, using one one of the following values:
character Expands a character.
word Expands a word. A word is a collection of characters terminated by a space or another white-space
character, such as a tab.
sentence Expands a sentence. A sentence is a collection of words terminated by an ending punctuation
character, such as a period.
textedit Expands to enclose the entire range.
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
This example creates a range from the current selection and uses the expand method
to ensure that any word partially enclosed in the range becomes entirely enclosed in
the range.
Applies To
TextRange
See Also
collapse
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
findText Method focus Method DHTML Method
Web Workshop | DHTML, HTML & CSS
firstPage Method
Moves to the first page of records in the data set, and scrolls it into view.
Syntax
TABLE.firstPage()
Return Value
No return value.
Remarks
Applies To
TABLE
See Also
lastPage
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
firstPage Method forward Method DHTML Met
Web Workshop | DHTML, HTML & CSS
focus Method
Causes a control to receive the focus, and executes the code specified by the onfocus
event.
Syntax
object.focus()
Return Value
No return value.
Remarks
As of Microsoft® Internet Explorer 5, elements that expose the focus method must
have the TABINDEX attribute set.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, custom, DD, DEL, DFN, DIR, DL,
DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file,
INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD,
LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, window, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
forward Method getAttribute Method DHTML M
Web Workshop | DHTML, HTML & CSS
getAdjacentText Method
Returns the adjacent text character.
Syntax
object.getAdjacentText(sWhere)
Parameters
sWhere Required. String that specifies where the text is located, using one of the following values:
beforeBegin Text is returned immediately before the element.
afterBegin Text is returned after the start of the element but before all other content in the element.
beforeEnd Text is returned immediately before the end of the element but after all other content in the
element.
afterEnd Text is returned immediately after the end of the element.
Return Value
Example
<SCRIPT>
function fnFind(){
var sWhere = oSel.options[oSel.selectedIndex].text;
alert(oPara.getAdjacentText(sWhere));
}
</SCRIPT>
This is the text before (beforeBegin).
<P ID=oPara>
This is the text after (afterBegin).
<B>A few extra words.</B>
This is the text before (beforeEnd).
</P>
This is the text after (afterEnd).
<SELECT ID=oSel>
<OPTION SELECTED>beforeBegin
<OPTION>afterBegin
<OPTION>beforeEnd
<OPTION>afterEnd
</SELECT>
<INPUT TYPE="button" VALUE="Find text" onclick="fnFind()">
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML,
I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE,
MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getAdjacentText Method getAttribute Method
Web Workshop | DHTML, HTML & CSS
getAttribute Method
Retrieves the value of the specified attribute.
Syntax
Parameters
Return Value
Variant. Returns a string, number, or Boolean value as defined by the attribute. If the
attribute is not present, this method returns null.
Remarks
If two or more attributes have the same name (differing only in uppercase and
lowercase letters) and iFlags is 0, the getAttribute method retrieves values only for
the last attribute created with this name, and ignores all other attributes with the
same name.
Applies To
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY,
TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getAttribute Method getBookmark Method DH
Web Workshop | DHTML, HTML & CSS
getAttribute Method
Returns the value of the named attribute.
Syntax
sValue = userProfile.getAttribute(sAttributeName)
Parameters
sAttributeName Required. String that specifies one of the standard vCard names listed in Remarks. If one of these names is not used, the request
is ignored.
Return Value
String. Returns a null value if read access for this attribute is not available.
Remarks
The following schema is used for the field names of the user data store. These names
are specified when you use the getAttribute method on the userProfile object. Note
that the format has changed from vCard_xxx to vCard.xxx, and that the older format
no longer is supported.
vCard Names
Note An asterisk (*) denotes extensions to the vCard schema. Extensions are
referenced as X- elements as defined in the vCard schema.
Applies To
userProfile
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getAttribute Method getBoundingClientRect Met
Web Workshop | DHTML, HTML & CSS
getBookmark Method
Retrieves a bookmark (opaque string) that can be used with moveToBookmark to return to
the same range.
Syntax
sBookmark = TextRange.getBookmark()
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getData Method getElementsByName Method
Web Workshop | DHTML, HTML & CSS
getElementById Method
Returns a reference to the first object with the specified value of the ID attribute.
Syntax
oElement = document.getElementById(sIDValue)
Parameters
Return Value
Returns the first object with the same ID attribute as the specified value.
Remarks
If the ID value belongs to a collection, the getElementById method returns the first
object in the collection.
Example
This example uses the getElementById method to return the first occurrence of the
ID attribute value, oDiv.
Applies To
document
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
getElementsByTagName Meth... go Method D
Web Workshop | DHTML, HTML & CSS
getExpression Method
Retrieves the expression for the given property.
Syntax
vExpression = object.getExpression(sPropertyName)
Parameters
sPropertyName Required. String that specifies the name of the property from which to retrieve the expression.
Return Value
Remarks
The following syntax sections show how to retrieve an expression from supported
cascading style sheets (CSS) attributes and Dynamic HTML (DHTML) properties.
Example
This example uses the getExpression method to set the width of a paragraph equal
to the sum of the width of two images. The getExpression method returns a variant
containing the expression.
<SCRIPT>
var s;
function getexp()
{
s=para1.style.getExpression("width");
alert("Expression for the width of the paragraph is \n\n"
+ s + "\n\nThe width property has a value of "
+ oBox3.style.width);
}
</SCRIPT>
Applies To
A, ACRONYM, ADDRESS, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file,
INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS,
KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE,
STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
go Method ImportExportFavorites Met... DHT
Web Workshop | DHTML, HTML & CSS
hasChildNodes Method
Returns whether the object has children.
Syntax
bChildNodes = object.hasChildNodes()
Return Value
Remarks
If the object contains HTML elements or TextNodes, they can be accessed from the
childNodes collection.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT
type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P,
PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD,
TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
hasChildNodes Method inRange Method DHTM
Web Workshop | DHTML, HTML & CSS
ImportExportFavorites Method
Imports or exports Favorites information.
Syntax
window.external.ImportExportFavorites(bImportExport [, sImportExportPath])
Parameters
Return Value
No return value.
Remarks
All favorites are uploaded to the server when exported, and it is recommended that the
server be configured to erase previously stored favorites before accepting the updates.
Favorites imported from the server merge with existing favorites on the client.
Deletions on the server do not propagate to the client.
Applies To
external
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ImportExportFavorites Met... insertAdjacentEle
Web Workshop | DHTML, HTML & CSS
inRange Method
Returns whether one range is contained within another.
Syntax
bFound = TextRange.inRange(oRange)
Parameters
Return Value
Boolean. Returns true if the range passed as the method parameter is contained
within or is equal to the range on which the method is called, or false otherwise.
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
Applies To
TextRange
See Also
isEqual
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
inRange Method insertAdjacentHTML Method
Web Workshop | DHTML, HTML & CSS
insertAdjacentElement Method
Inserts an element at the specified location.
Syntax
Parameters
sWhere Required. String that specifies where to insert the HTML text, using one of the following values:
beforeBegin Inserts oElement immediately before the object.
afterBegin Inserts oElement after the start of the object but before all other content in the object.
beforeEnd Inserts oElement immediately before the end of the object but after all other content in the
object.
afterEnd Inserts oElement immediately after the end of the object.
oElement Required. Object that specifies the element to be inserted adjacent to the object that invoked the insertAdjacentElement method.
Return Value
Remarks
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the insertAdjacentElement method to add a new list item to an
OL object.
<SCRIPT>
function fnAdd(){
var oNewItem = document.createElement("LI");
oList.children(0).insertAdjacentElement("AfterBegin",oNewItem);
oNewItem.innerText = "List Item 0";
}
</SCRIPT>
:
<BODY>
<OL ID = "oList">
<LI>List Item 1</LI>
<LI>List Item 2</LI>
<LI>List Item 3</LI>
</OL>
<INPUT TYPE = "button" VALUE = "Add Item" onclick="fnAdd()">
</BODY>
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertAdjacentElement Met... insertAdjacentTex
Web Workshop | DHTML, HTML & CSS
insertAdjacentHTML Method
Inserts the given HTML text into the element at the location.
Syntax
object.insertAdjacentHTML(sWhere, sText)
Parameters
sWhere Required. String that specifies where to insert the HTML text, using one of the following values:
beforeBegin Inserts sText immediately before the object.
afterBegin Inserts sText after the start of the object but before all other content in the object.
beforeEnd Inserts sText immediately before the end of the object but after all other content in the object.
afterEnd Inserts sText immediately after the end of the object.
sText Required. String that specifies the HTML text to insert. The string can be a combination of text and HTML tags. This must be well-formed,
valid HTML or this method will fail.
Return Value
No return value.
Remarks
If the text contains HTML tags, the method parses and formats the text as it is
inserted.
You cannot insert text while the document is loading. Wait for the onload event to fire
before attempting to call this method.
When using the insertAdjacentHTML method to insert script, you must include the
DEFER attribute in the SCRIPT element.
Example
This example uses the insertAdjacentHTML method to insert script into the page.
Applies To
A, ADDRESS, AREA, B, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COMMENT, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL,
LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB,
SUP, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertAdjacentHTML Method insertBefore Metho
Web Workshop | DHTML, HTML & CSS
insertAdjacentText Method
Inserts the given text into the element at the specified location.
Syntax
object.insertAdjacentText(sWhere, sText)
Parameters
sWhere Required. String that specifies where to insert the text, using one of the following values:
beforeBegin Inserts the text immediately before the element.
afterBegin Inserts the text after the start of the element but before all other content in the element.
beforeEnd Inserts the text immediately before the end of the element but after all other content in the
element.
afterEnd Inserts the text immediately after the end of the element.
sText Required. String that specifies the text to insert.
Return Value
No return value.
Remarks
You cannot insert text while the document loads. Wait for the onload event to fire
before attempting to call this method.
Applies To
A, ADDRESS, AREA, B, BASEFONT, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COMMENT, custom, DD, DFN, DIR, DIV,
DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT
type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL,
LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OL, OPTION, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TD,
TEXTAREA, TH, TT, U, UL, VAR
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
insertRow Method IsSubscribed Method DHTM
Web Workshop | DHTML, HTML & CSS
isEqual Method
Returns whether the specified range is equal to the current range.
Syntax
bEqual = TextRange.isEqual(oCompareRange)
Parameters
oCompareRange Required. Object that specifies the TextRange object to compare to the parent object.
Return Value
Applies To
TextRange
See Also
inRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
isEqual Method item Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
IsSubscribed Method
Returns whether the client subscribes to the given channel.
Syntax
bSubscribed = window.external.IsSubscribed(sURLToCDF)
Parameters
sURLToCDF Required. String that specifies the URL of a Channel Definition Format (CDF) file to be checked for a subscription.
Return Value
Boolean. Returns true if the channel is subscribed to, or false if no subscription exists
for that CDF file.
Remarks
For security purposes, if this method is used in an HTML page that is not in the same
secondary domain specified in sURLToCDF, the method returns a scripting error.
For more information about Microsoft® Active Channel™ technology, see the active
channel technology overview .
I
This method is not supported in html applications .
I
Applies To
external
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
IsSubscribed Method javaEnabled Method DH
Web Workshop | DHTML, HTML & CSS
item Method
Retrieves an object or a collection from the specified collection.
Syntax
Parameters
vIndex Required. Variant that specifies the number or string that indicates the object or collection to retrieve. If this parameter is a number, the
method returns the object in the collection at the given position, where the first object has value 0, the second has 1, and so on. If this
parameter is a string and there is more than one object with the name or id properties equal to the string, the method returns a
collection of matching objects.
iSubindex Optional. Integer that specifies the position of an object to retrieve. This parameter is used when vIndex is a string. The method uses the
string to construct a collection of all objects that have a name or id equal to the string, and then retrieves from this collection the object
at the position specified by iSubIndex.
Return Value
Remarks
The TextRectangle, attributes, and rules collections only accept an integer value for the
vIndex parameter.
Example
This example uses the item method to retrieve each object from the document. In this
case, the method parameter is a number, so the objects are retrieved in the order in
which they appear in the document.
Applies To
all, anchors, applets, areas, attributes, behaviorUrns, bookmarks, boundElements, cells, childNodes, children, controlRange, elements, embeds,
filters, forms, frames, images, imports, links, options, plugins, rows, rules, scripts, styleSheets, tbodies, TextRectangle
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
item Method lastPage Method DHTML Method
Web Workshop | DHTML, HTML & CSS
javaEnabled Method
Returns whether Java is enabled.
Syntax
bEnabled = navigator.javaEnabled()
Return Value
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
javaEnabled Method mergeAttributes Method
Web Workshop | DHTML, HTML & CSS
lastPage Method
Moves to the last page of records in the data set, and scrolls it into view.
Syntax
TABLE.lastPage()
Return Value
No return value.
Remarks
The dataPageSize property of the table determines the number of records displayed in
the table. You must set the DATAPAGESIZE attribute when designing the page, or set
the corresponding dataPageSize property at run time for this method to have any
effect.
Applies To
TABLE
See Also
firstPage
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
lastPage Method move Method DHTML Metho
Web Workshop | DHTML, HTML & CSS
mergeAttributes Method
Syntax
object.mergeAttributes(oSource)
Parameters
oSource Required. Object that specifies the attributes copied to the object that invokes mergeAttributes.
Return Value
No return value.
Remarks
The mergeAttributes method copies persistent HTML attributes, events, and styles.
Attributes that are read-only, such as ID, are not merged.
Example
This example uses the mergeAttributes method to copy attributes, events, and styles
from one object to another.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, document, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET,
HEAD, Hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
See Also
clearAttributes
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
move Method moveEnd Method DHTML Metho
Web Workshop | DHTML, HTML & CSS
moveBy Method
Moves the screen position of the window by the specified x- and y-offset values.
Syntax
window.moveBy(iX, iY)
Parameters
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveBy Method moveRow Method DHTML Me
Web Workshop | DHTML, HTML & CSS
moveEnd Method
Changes the end position of the range.
Syntax
Parameters
sUnit Required. String that specifies the units to move, using one of the following values:
character Moves one or more characters.
word Moves one or more words. A word is a collection of characters terminated by a space or some other
white-space character, such as a tab.
sentence Moves one or more sentences. A sentence is a collection of words terminated by a punctuation
character, such as a period.
textedit Moves to the start or end of the original range.
iCount Optional. Integer that specifies the number of units to move. This can be positive or negative. The default is 1.
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
See Also
move, moveStart
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveEnd Method moveStart Method DHTML M
Web Workshop | DHTML, HTML & CSS
moveRow Method
Syntax
Parameters
iSource Required. Integer that specifies the index in the rows collection of the table row that is moved.
iTarget Required. Integer that specifies where the row is moved within the rows collection.
Return Value
Remarks
Rows between the iSource and iTarget positions in the rows collection are shifted
based on the direction the row moves.
Example
This example uses the moveRow method to exchange the first and second rows in a
table when the user clicks a button.
<SCRIPT>
function fnMove(){
oTable.moveRow(0,1);
}
</SCRIPT>
<INPUT TYPE="button" VALUE="Change Rows" onclick="fnMove()">
<TABLE ID="oTable">
<TR><TD>Cell 1, Row 1</TD></TR>
<TR><TD>Cell 1, Row 2</TD></TR>
</TABLE>
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveRow Method moveTo Method DHTML Me
Web Workshop | DHTML, HTML & CSS
moveStart Method
Changes the start position of the range.
Syntax
Parameters
sUnit Required. String that specifies the units to move, using one of the following values:
character Moves one or more characters.
word Moves one or more words. A word is a collection of characters terminated by a space or other white-
space character, such as a tab.
sentence Moves one or more sentences. A sentence is a collection of words terminated by a punctuation
character, such as a period.
textedit Moves to the start or end of the original range.
iCount Optional. Integer that specifies the number of units to move. This can be positive or negative. The default is 1.
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, wee article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
See Also
move, moveEnd
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveStart Method moveToBookmark Method
Web Workshop | DHTML, HTML & CSS
moveTo Method
Moves the screen position of the upper-left corner of the window to the specified iX and iY
position.
Syntax
window.moveTo(iX, iY)
Parameters
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveTo Method moveToElementText Method D
Web Workshop | DHTML, HTML & CSS
moveToBookmark Method
Moves to a bookmark.
Syntax
bSuccess = TextRange.moveToBookmark(sBookmark)
Parameters
Return Value
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveToElementText Method namedRecordset M
Web Workshop | DHTML, HTML & CSS
moveToPoint Method
Moves the start and end positions of the text range to the given point.
Syntax
TextRange.moveToPoint(iX, iY)
Parameters
iX Required. Integer that specifies the horizontal offset relative to the upper-left corner of the window, in pixels.
iY Required. Integer that specifies the vertical offset relative to the upper-left corner of the window, in pixels.
Return Value
No return value.
Remarks
The coordinates of the point must be in pixels and be relative to the upper-left corner
of the window. The resulting text range is empty, but you can expand and move the
range using methods such as expand and moveEnd.
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
This example uses the moveToPoint method to move the text range to the point
where the user clicked the mouse, expands the range, and selects the text within the
new range.
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveToPoint Method navigate Method DHTML
Web Workshop | DHTML, HTML & CSS
namedRecordset Method
Retrieves the recordset object corresponding to the named data member from a data
source object (DSO).
Syntax
Parameters
sQualifier Required. String that specifies the name of the data member, or an empty string, which indicates the default data member.
sSubChapter Optional. String that specifies a path to a hierarchical data set.
Return Value
Remarks
Valid names for a data member are specific to the DSO implementation. Check the
DSO documentation to determine whether it supports named data members and to
determine the valid names for those data members.
If null values or empty strings are passed to the namedRecordset method, the
default recordset is returned. This is identical to referring to the recordset property
directly.
If the second parameter is omitted, the top-level recordset is returned. If the first
parameter is omitted but the second parameter is specified, the specified subchapter
of the default recordset is returned.
Example
Applies To
APPLET, OBJECT
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
namedRecordset Method NavigateAndFind Meth
Web Workshop | DHTML, HTML & CSS
navigate Method
Loads the specified URL to the current window.
Syntax
window.navigate(sURL)
Parameters
Return Value
No return value.
Applies To
window
See Also
href
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
navigate Method nextPage Method DHTML Me
Web Workshop | DHTML, HTML & CSS
NavigateAndFind Method
Opens a Web page, and highlights a specific string.
Syntax
Parameters
Return Value
No return value.
Remarks
The NavigateAndFind method requires a full qualified path, including a location prefix
(http://, c:\, and so on).
This example uses the NavigateAndFind method to search for a word or phrase on
another page.
Applies To
external
See Also
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
NavigateAndFind Method open Method DHTM
Web Workshop | DHTML, HTML & CSS
nextPage Method
Displays the next page of records in the data set to which the table is bound.
Syntax
TABLE.nextPage()
Return Value
No return value.
Remarks
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
open Method parentElement Method DHTML M
Web Workshop | DHTML, HTML & CSS
open Method
Opens a document to collect the output of write or writeln methods.
Syntax
Parameters
sMimeType Required. String that specifies the MIME type. Currently supports "text/html" only.
sReplace Optional. String that specifies whether the new document being written is to replace the current document in the History list.
Otherwise, by default, the document being created does not replace the current document in the History list.
Return Value
Example
This example uses the open method to replace the current document with a new
document and display the HTML markup contained in the variable sMarkup.
Applies To
document
See Also
onbeforeunload
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
open Method pasteHTML Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
parentElement Method
Retrieves the parent element for the given text range.
Syntax
oElement = TextRange.parentElement()
Return Value
Remarks
The parent element is the element that completely encloses the text in the range.
If the text range spans text in more than one element, this method returns the
smallest element that encloses all the elements. When you insert text into a range that
spans multiple elements, the text is placed in the parent element rather than in any of
the contained elements.
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
This example uses the parentElement method to retrieve the parent element for the
text range created from the current selection, and display the tag name of the
element.
<SCRIPT LANGUAGE="JScript">
var sel = document.selection;
var rng = sel.createRange();
var el = rng.parentElement();
alert(el.tagName);
</SCRIPT>
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
parentElement Method previousPage Method
Web Workshop | DHTML, HTML & CSS
pasteHTML Method
Pastes HTML text into the given text range, replacing any previous text and HTML
elements in the range.
Syntax
TextRange.pasteHTML(sHTMLText)
Parameters
sHTMLText Required. String that specifies the HTML text to paste. The string can contain text and any combination of the HTML tags described in
HTML Elements.
Return Value
No return value.
Remarks
Although this method never fails, it might alter the HTML text to make it fit the given
text range. For example, pasting a table cell into a text range that does not contain a
table might cause the method to insert a TABLE element. For predictable results, paste
only well-formed HTML text that fits within the given text range.
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
This example uses the pasteHTML method to replace the current selection with a new
paragraph.
<SCRIPT LANGUAGE="JScript">
var sel = document.selection;
if (sel!=null) {
var rng = sel.createRange();
if (rng!=null)
rng.pasteHTML("<P><B>Selection has been replaced.</B>
</P>");
}
</SCRIPT>
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
pasteHTML Method print Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
previousPage Method
Scrolls into view the previous page of records in the data set.
Syntax
table.previousPage()
Return Value
No return value.
Remarks
Applies To
TABLE
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
previousPage method prompt Method DHTML
Web Workshop | DHTML, HTML & CSS
print Method
Prints the document associated with the window.
Syntax
window.print()
Return Value
No return value.
Remarks
Calling the print method has the same effect as choosing Print from the Microsoft®
Internet Explorer File menu. The print method activates the Print dialog box,
prompting the user to change print settings. When the user clicks the OK button, the
following sequence of events occurs:
The onbeforeprint and onafterprint events are particularly useful when not all the
information on the page is visible at all times. Use the onbeforeprint to modify the
document to make all the information on the page visible for printing. To return the
document to its original state, use the onafterprint event.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
recalc Method releaseCapture Method DHTML
Web Workshop | DHTML, HTML & CSS
refresh Method
Refreshes the content of the table.
Syntax
table.refresh()
Return Value
No return value.
Applies To
TABLE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
refresh Method reload Method DHTML Method
Web Workshop | DHTML, HTML & CSS
releaseCapture Method
Removes mouse capture from the object in the current document.
Syntax
object.releaseCapture()
Return Value
No return value.
Remarks
For releaseCapture to have an effect, you must set mouse capture through the
setCapture method.
You can invoke the releaseCapture method on the document object. The
releaseCapture method makes it unnecessary to determine which element has
capture to programmatically release it. Other actions that release document capture
include displaying a modal dialog box and switching focus to another application or
browser window.
Example
<BODY onload="oOwnCapture.setCapture();"
onclick="document.releaseCapture();">
<DIV ID=oOwnCapture
onmousemove="oWriteLocation.value =
event.clientX + event.clientY";
onlosecapture="alert(event.srcElement.id +
' has lost mouse capture.')">
<TEXTAREA ID=oWriteLocation COLS=2></TEXTAREA>
</DIV>
<HR>
<DIV ID=oNoCapture>
<P>Click the document to invoke the releaseCapture method.</P>
</DIV>
</BODY>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL,
document, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=submit, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=text, KBD, LABEL,
LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
releaseCapture Method remove Method DHTM
Web Workshop | DHTML, HTML & CSS
reload Method
Reloads the current page.
Syntax
location.reload([bReloadSource])
Parameters
Return Value
No return value.
Applies To
location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
reload Method removeAttribute Method DHTM
Web Workshop | DHTML, HTML & CSS
remove Method
Removes an element from the collection.
Syntax
object.remove(iIndex)
Parameters
iIndex Required. Integer that specifies the zero-based index of the element to remove from the collection.
Return Value
No return value.
Applies To
See Also
add
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
remove Method removeBehavior Method DHT
Web Workshop | DHTML, HTML & CSS
removeAttribute Method
Removes the given attribute from the object.
Syntax
Parameters
Return Value
Remarks
If two or more attributes have the same name—differing only in uppercase and
lowercase letters—and iCaseSensitive is set to 0, this method removes only the last
attribute to be created with this name. All other attributes of the same name are
ignored.
Applies To
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY,
TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeAttribute Method removeChild Method
Web Workshop | DHTML, HTML & CSS
removeBehavior Method
Detaches a behavior from the element.
I
Syntax
bSuccess = object.removeBehavior(iID)
Parameters
iID Required. Integer that specifies the identifier returned from a previous addBehavior call.
Return Value
Boolean. Returns true if the behavior was removed successfully, or false otherwise.
Example
This example uses the removeBehavior method to show how a behavior that
implements a mouseover highlighting effect can be dynamically removed from all LI
elements on a page.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE,
COL, COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK,
LISTING, MAP, MARQUEE, MENU, NEXTID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR,
WBR, XML, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeBehavior Method removeExpresion Meth
Web Workshop | DHTML, HTML & CSS
removeChild Method
Removes a child node from an element.
Syntax
oRemove = object.removeChild(oNode)
Parameters
oNode Required. Object that specifies the element to be removed from the document.
Return Value
Remarks
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the removeChild method to remove a bold element from a DIV.
<HEAD>
<SCRIPT>
function removeElement()
{
try
{
//The first child of the div is the bold element.
var oChild=Div1.children(0);
Div1.removeChild(oChild);
}
catch(x)
{
alert("You have already removed the bold element.
Page will be refreshed when you click OK.")
document.location.reload();
}
}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID=Div1 onclick="removeElement()">
Click anywhere in this sentence to remove this <B>Bold</B> word.
</DIV>
</BODY>
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeChild Method removeNode Method DH
Web Workshop | DHTML, HTML & CSS
removeExpression Method
Removes the expression from the specified property.
Syntax
bSuccess = object.removeExpression(sPropertyName)
Parameters
sPropertyName Required. String that specifies the name of the property from which to remove an expression.
Return Value
Boolean. Returns true if the expression was successfully removed, or false otherwise.
Remarks
After the expression is removed from the specified property, the value of the property
equals the last computed value of the expression. To remove expressions set by the
setExpression method, use removeExpression.
The following syntax sections show how to remove an expression from supported
cascading style sheets (CSS) attributes and Dynamic HTML (DHTML) properties.
object.removeExpression(sPropertyName)
object.style.removeExpression(sPropertyName)
Example
This example uses the removeExpression method to remove an expression from the
width property of a blue box.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PARAM, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR
See Also
Syntax
oRemoved = object.removeNode(bRemoveChildren)
Parameters
Return Value
Remarks
This property is accessible at run time. If elements are removed at run time, before
the closing tag is parsed, areas of the document might not render.
Example
This example uses the removeNode method to remove a table from the document
hierarchy.
<SCRIPT>
function fnRemove(){
// 'true' possible value specifies removal of childNodes
also
oTable.removeNode(true);
}
</SCRIPT>
<TABLE ID = oTable>
<TR>
<TD>Cell 1</TD>
<TD>Cell 2</TD>
</TR>
</TABLE>
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN,
STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeNode Method replace Method DHTML
Web Workshop | DHTML, HTML & CSS
removeRule Method
Deletes an existing style rule for the styleSheet object, and adjusts the index of the rules
collection accordingly.
Syntax
styleSheet.removeRule[iIndex]
Parameters
iIndex Optional. Integer that specifies the index value of the rule to be deleted from the style sheet. If an index is not provided, the first rule in the
rules collection is removed.
Return Value
No return value.
Remarks
The page does not automatically reflow when the rule is removed. To see the change,
you must reflow the page. You can reflow the objects affected using a number of
methods. For example, you can reflow the style change only on affected text by setting
the text equal to itself (see Example). Alternately, you can reload the entire page using
the reload method. When you use the refresh method on a table, its content is
reflowed.
Example
This example uses the removeRule method to delete a rule from the rules collection,
which causes the text to reflow according to the new rules.
<STYLE>
P {color:green}
</STYLE>
:
<SCRIPT>
function removeTheRule() {
// Style sheets and rules are zero-based collections;
therefore,
// the first item is item 0 in the collection.
var iSheets = document.styleSheets.length;
var iRules = document.styleSheets[iSheets-1].rules.length;
// make sure there is a rule to delete
if (1 < iRules) {
document.styleSheets[iSheets-1].removeRule(1);
// Force the page to render the change.
oEffectRules.innerHTML=oEffectRules.innerHTML;
}
}
</SCRIPT>
:
<P ID=oEffectRules>This text has the new style applied to it.
</P>
:
<BUTTON onclick="removeTheRule()">Remove the new rule.</BUTTON>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
styleSheet
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
removeRule Method replaceAdjacentText Metho
Web Workshop | DHTML, HTML & CSS
replace Method
Replaces the current document by loading the document at the specified URL.
Syntax
location.replace(sURL)
Parameters
sURL Required. String that specifies the URL to insert into the session history.
Return Value
No return value.
Remarks
Replacing a document causes it to be inaccessible through the history object. Also, the
URL is no longer accessible through the user interface navigation methods, such as the
Back and Forward buttons.
Applies To
location
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
replace Method replaceChild Method DHTML M
Web Workshop | DHTML, HTML & CSS
replaceAdjacentText Method
Replaces the adjacent text character.
Syntax
object.replaceAdjacentText(sWhere, sReplaceText)
Parameters
sWhere Required. String that specifies where to locate the replacement text, using one of the following values:
beforeBegin Replaces text immediately before the element.
afterBegin Replaces text after the start of the element but before all other content in the element.
beforeEnd Replaces text immediately before the end of the element but after all other content in the
element.
afterEnd Replaces text immediately after the end of the element.
sReplaceText Required. String that specifies the replacement text.
Return Value
No return value.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML,
I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password,
INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE,
MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
replaceAdjacentText Metho... replaceNode Meth
Web Workshop | DHTML, HTML & CSS
replaceChild Method
Replaces an existing child element with a new child element.
Syntax
Parameters
oNewNode Required. Object that specifies the new element to be inserted into the document.
oChildNode Required. Object that specifies the existing element to be replaced.
Return Value
Remarks
The node to be replaced must be an immediate child of the parent object. The new
node must be created using the createElement method.
This property is accessible at run time. If elements are removed at run time, before
the closing tag is parsed, areas of the document might not render.
Example
This example uses the replaceChild method to replace a bold element from a DIV
with an italic element.
<HEAD>
<SCRIPT>
function replaceElement()
{
//The first child of the div is the bold element.
var oChild=Div1.children(0);
var sInnerHTML = oChild.innerHTML;
if (oChild.tagName=="B")
{
oNewChild=document.createElement("I");
Div1.replaceChild(oNewChild, oChild);
oNewChild.innerHTML=sInnerHTML
}
else
{
oNewChild=document.createElement("B");
Div1.replaceChild(oNewChild, oChild);
oNewChild.innerHTML=sInnerHTML
}
}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID=Div1 onclick="replaceElement()">
Click anywhere in this sentence to toggle this <B>word</B>
between bold and italic.</DIV>
</BODY>
Applies To
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN,
DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAMESET, HEAD, Hn, HTML, I, IFRAME, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NEXTID, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL,
SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
replaceNode Method resizeBy Method DHTML
Web Workshop | DHTML, HTML & CSS
reset Method
Simulates a mouse click on a reset button for the calling form.
Syntax
form.reset()
Return Value
No return value.
Applies To
form
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
reset Method resizeTo Method DHTML Method
Web Workshop | DHTML, HTML & CSS
resizeBy Method
Changes the current size of the window by the specified x- and y-offset.
Syntax
window.resizeBy(iX, iY)
Parameters
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
resizeBy Method scroll Method DHTML Method
Web Workshop | DHTML, HTML & CSS
resizeTo Method
Sets the size of the window to the specified width and length values.
Syntax
window.resizeTo(iWidth, iHeight)
Parameters
iWidth Required. Integer that specifies the width of the window, in pixels.
iHeight Required. Integer that specifies the height of the window, in pixels.
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
resizeTo Method scrollBy Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
scroll Method
Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the
window.
Syntax
window.scroll(iX, iY)
Parameters
Return Value
No return value.
Remarks
This method is provided for backward compatibility only. The recommended way to
scroll a window is to use the scrollTo method.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scroll Method scrollIntoView Method DHTML M
Web Workshop | DHTML, HTML & CSS
scrollBy Method
Causes the window to scroll relative to the current scrolled position by the specified x- and
y-pixel offset.
Syntax
window.scrollBy(iX, iY)
Parameters
iX Required. Integer that specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
iY Required. Integer that specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.
Return Value
No return value.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollBy Method scrollTo Method DHTML Meth
Web Workshop | DHTML, HTML & CSS
scrollIntoView Method
Causes the object to scroll into view, aligning it either at the top or bottom of the window.
Syntax
object.scrollIntoView([bAlignToTop])
Parameters
Return Value
No return value.
Remarks
The scrollIntoView method is useful for immediately showing the user the result of
some action without requiring the user to manually scroll through the document to find
the result.
Example
This example uses the scrollIntoView method to underline the content of the
document's fifth paragraph and scroll it into view at the top of the window.
Applies To
A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, controlRange,
custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox,
INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD,
LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG,
SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, WBR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
scrollIntoView Method select Method DHTML
Web Workshop | DHTML, HTML & CSS
scrollTo Method
Scrolls the window to the specified x- and y-offset.
Syntax
window.scrollTo(iX, iY)
Parameters
Return Value
No return value.
Remarks
The specified offsets are relative to the upper-left corner of the window.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
select Method setAttribute Method DHTML Me
Web Workshop | DHTML, HTML & CSS
select Method
Makes the active selection equal to the current object.
Syntax
object.select()
Return Value
No return value.
Remarks
This feature might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Applies To
TextRange, controlRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
select Method setCapture Method DHTML Met
Web Workshop | DHTML, HTML & CSS
setAttribute Method
Sets the value of the specified attribute.
Syntax
Parameters
Return Value
No return value.
Remarks
If the specified attribute is not already present, the setAttribute method adds the
attribute to the object and sets the value.
Be careful when spelling attribute names. If you set iFlags to 1 and the sName
parameter does not have the same uppercase and lowercase letters as the attribute, a
new attribute is created for the object.
Applies To
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL,
COLGROUP, COMMENT, custom, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR, HTML, I,
IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META,
NEXTID, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE,
TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setAttribute Method setData Method DHTML M
Web Workshop | DHTML, HTML & CSS
setCapture Method
Sets the mouse capture to the object belonging to the current document.
Syntax
object.setCapture([bContainerCapture])
Parameters
Return Value
No return value.
Remarks
Once mouse capture is set to an object, that object fires all mouse events for the
document. Supported mouse events include onmousedown, onmouseup,
onmousemove, onclick, ondblclick, onmouseover, and onmouseout. The srcElement
property of the window event object always returns the object that is positioned under
the mouse rather than the object that has mouse capture.
When a container object, such as a DIV, has mouse capture, events originating on
objects within that container are fired by the DIV, unless the bContainerCapture
parameter of the setCapture method is set to false. Passing the value false causes
the container to no longer capture all document events. Instead, objects within that
container still fire events, and those events also bubble as expected.
Drag-and-drop as well as text selection through the user interface are disabled when
mouse capture is set programmatically.
The following key events are unaffected by mouse capture and fire as usual:
onkeydown, onkeyup, and onkeypress.
Example
The following examples use the setCapture method to show different aspects of
mouse capture.
Applies To
A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, custom, DD, DFN, DIR, DIV, DL, DT, EM,
EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT
type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI,
LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setData Method setExpression Method DHTM
Web Workshop | DHTML, HTML & CSS
setEndPoint Method
Sets the end point of one range based on the end point of another range.
Syntax
textRange.setEndPoint(sType, oTextRange)
Parameters
sType Required. String that specifies the end point to transfer, using one of the following values:
StartToEnd Move the start of the TextRange object to the end of the specified oTextRange parameter.
StartToStart Move the start of the TextRange object to the start of the specified oTextRange parameter.
EndToStart Move the end of the TextRange object to the start of the specified oTextRange parameter.
EndToEnd Move the end of the TextRange object to the end of the specified oTextRange parameter.
oTextRange Required. TextRange object that specifies the range from which the source end point is to be taken.
Return Value
No return value.
Remarks
A text range has two end points: one at the beginning of the text range and one at the
end. An end point also can be the position between two characters in an HTML
document.
In Microsoft® Internet Explorer 4.0, an end point is relative to text only, not HTML
tags.
<BODY><P><B>abc
This method might not be available on non-Win32® platforms. For the latest
information about Internet Explorer cross-platform compatibility, see article q172976
I
in the Microsoft Knowledge Base.
Example
This example uses the setEndPoint method to set the start point of the current range
(r1) to the end point of the second range (r2).
<SCRIPT LANGUAGE="JScript">
r1.setEndPoint("StartToEnd", r2);
</SCRIPT>
Applies To
TextRange
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setEndPoint Method setInterval Method DHTM
Web Workshop | DHTML, HTML & CSS
setExpression Method
Sets an expression for the specified object.
Syntax
Parameters
sAttributeName Required. String that specifies the name of the attribute to which sExpression is added.
sPropertyName Required. String that specifies the name of the property to which sExpression is added.
sExpression Required. String that specifies any valid Microsoft JScript (compatible with ECMA 262 language specification) statement without
quotations or semicolons. This string can include references to other properties on the current page. Array references are not
allowed on object properties included in this script.
sExpression2 Required. String that specifies any valid script. This string can include references to other properties on the current page. Array
references are not allowed on object properties included in this script.
sLanguage Required. String that specifies one of the following values:
JScript Language is JScript.
VBScript Language is VBScript.
JavaScript Language is JavaScript.
Return Value
No return value.
Remarks
The following syntax sections show how to set an expression on DHTML properties and
CSS attributes.
object.style.setExpression(sPropertyName, sExpression,
sLanguage)
The data type of the evaluated expression in the sExpression parameter must match
one of the possible values allowed for the sProperty parameter. If the property or
attribute specified by the first parameter requires a string, the data type of the second
parameter must be a string. Otherwise, the second parameter is evaluated prior to
invoking setExpression, causing the expression to be set to the result of the
evaluation.
Use the uniqueID property of an object in an expression to refer back to the object.
Using uniqueID is an alternative to specifying an id for expressions that use an object
reference.
The cssText property is a unique property that is not compatible with the dynamic
properties implementation. Do not use cssText with any dynamic property methods.
Example
The following examples use the setExpression method to change the width of a blue
box. In each example, the width of the blue box is equal to the sum of the values of
the first two text boxes. When a value in one of the text boxes changes, the width of
the blue box recalculates.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BDO, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP,
custom, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT
type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT
type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OBJECT, OL, OPTION, P, PARAM, PRE, Q, RT,
RUBY, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setExpression Method setTimeout Method DH
Web Workshop | DHTML, HTML & CSS
setInterval Method
Evaluates an expression each time a specified number of milliseconds has elapsed.
Syntax
Parameters
vCode Required. Variant that specifies a function pointer or string that indicates the code to be executed when the specified interval has
elapsed.
iMilliSeconds Required. Integer that specifies the number of milliseconds.
sLanguage Optional. String that specifies any one of the possible values for the LANGUAGE attribute.
Return Value
Integer. Returns an identifier that cancels the timer with the clearInterval method.
Remarks
The setInterval method continuously evaluates the specified expression until the
timer is removed with the clearInterval method.
To pass a function as a string, be sure to suffix the function name with parentheses.
window.setInterval("someFunction()", 5000);
window.setInterval(someFunction, 5000);
To retrieve a function pointer, use the code shown in the following example:
function callback()
{
alert("callback");
}
function callback2()
{
alert("callback2");
}
function chooseCallback(iChoice)
{
switch (iChoice)
{
case 0:
return callback;
case 1:
return callback2;
default:
return "";
}
}
Example
This example uses the setInterval method to create a DHTML clock. A variable is
assigned to the interval, and can be used as a reference to stop the interval using the
clearInterval method.
function fnStartInterval(){
oInterval = window.setInterval("fnRecycle()",1000);
}
function fnRecycle(){
// Code to display hours, minutes, and seconds.
}
This feature requires Microsoft® Internet Explorer 4 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
Applies To
window
See Also
clearInterval, setTimeout
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setInterval Method ShowBrowserUI Method D
Web Workshop | DHTML, HTML & CSS
setTimeout Method
Evaluates an expression after a specified number of milliseconds has elapsed.
Syntax
Parameters
vCode Required. Variant that specifies the function pointer or string that indicates the code to be executed when the specified interval has
elapsed.
iMilliSeconds Required. Integer that specifies the number of milliseconds.
sLanguage Optional. String that specifies any one of the possible values for the LANGUAGE attribute.
Return Value
Integer. Returns an identifier that cancels the evaluation with the clearTimeout
method.
Remarks
The specified expression or function is evaluated once. For repeated evaluation, use
the setInterval method.
Example
The following examples use the setTimeout method to evaluate a simple expression
after 1 second has elapsed.
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
setTimeout Method showHelp Method DHTML
Web Workshop | DHTML, HTML & CSS
ShowBrowserUI Method
Opens the specified browser dialog box.
Syntax
Parameters
sUI Required. String that specifies a browser dialog box, using one of the following values:
LanguageDialog Opens the Language Preference dialog box.
OrganizeFavorites Opens the Organize Favorites dialog box.
null Required. Null value.
Return Value
Example
This example uses the ShowBrowserUI method to open a particular dialog box when
a button is clicked.
<BUTTON onclick="window.external.ShowBrowserUI('LanguageDialog'"
+ ", null)">Show Language Dialog</BUTTON>
<BUTTON
onclick="window.external.ShowBrowserUI('OrganizeFavorites'"
+ ", null)">Show Organize Favorites</BUTTON>
Applies To
external
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ShowBrowserUI Method showModalDialog Meth
Web Workshop | DHTML, HTML & CSS
showHelp Method
Displays a Help file. This method can be used with Microsoft HTML Help.
Syntax
window.showHelp(sURL [, vContextID])
Parameters
sURL Required. String that specifies the URL of the Help (.hlp) file to display.
vContextID Optional. Variant that specifies a string or integer that indicates a context identifier in a Help file.
Return Value
No return value.
Remarks
When implementing this method, a second Help dialog box appears when the user
presses F1 or clicks Help on the menu bar. You can prevent the default Help dialog box
from appearing by setting the following:
window.event.returnValue = false
Applies To
window
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
showModelessDialog Method start Method DH
Web Workshop | DHTML, HTML & CSS
splitText Method
Divides a text node at the specified index.
Syntax
oSplitNode = TextNode.splitText(iIndex)
Parameters
iIndex Optional. Integer that specifies the index of the string that indicates where the separation occurs. If a value is not provided, a new text node
with no value is created.
Return Value
Remarks
The text node that invokes the splitText method has a nodeValue equal to the
substring of the value, from 0 to iIndex. The new text node has a nodeValue of the
substring of the original value, from the specified index to the value length. Text node
integrity is not preserved when the document is saved or persisted.
Example
Applies To
TextNode
See Also
createElement
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
splitText Method stop Method DHTML Method
Web Workshop | DHTML, HTML & CSS
start Method
Starts scrolling the marquee.
Syntax
marquee.start()
Return Value
No return value.
Remarks
Invoking the start method does not fire the onstart event handler.
Applies To
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
start Method submit Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
stop Method
Stops the marquee from scrolling.
Syntax
marquee.stop()
Return Value
No return value.
Applies To
MARQUEE
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
stop Method swapNode Method DHTML Metho
Web Workshop | DHTML, HTML & CSS
submit Method
Submits the form, and fires the onsubmit event.
Syntax
form.submit()
Return Value
No return value.
Applies To
FORM
See Also
INPUT, reset
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
submit Method tags Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
swapNode Method
Exchanges the location of two objects in the document hierarchy.
Syntax
oSwapped = object.swapNode(oNode)
Parameters
Return Value
Remarks
This method is accessible at run time. If elements are removed at run time, before the
closing tag is parsed, areas of the document might not render.
Example
This example uses the swapNode method to exchange the location of two objects.
<SCRIPT>
function fnSwap(){
oList.children(0).swapNode(oList.children(1));
}
</SCRIPT>
<UL ID = oList>
<LI>List Item 1
<LI>List Item 2
<LI>List Item 3
<LI>List Item 4
</UL>
<INPUT TYPE = button VALUE = "Swap List" onclick = "fnSwap()">
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE,
CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, Hn, HR,
HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP,
MARQUEE, MENU, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP,
TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
tags Method urns Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
taintEnabled Method
Returns whether data tainting is enabled.
Syntax
bEnabled = navigator.taintEnabled()
Return Value
Remarks
Microsoft® Internet Explorer 5 and earlier does not support data tainting and
therefore always returns false.
Applies To
clientInformation, navigator
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
urns Method writeln Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
write Method
Writes one or more HTML expressions to a document in the specified window.
Syntax
document.write(sText)
Parameters
sText Required. String that specifies the text and/or HTML tags to write.
Return Value
No return value.
Applies To
document
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
write Method DHTML Methods
Web Workshop | DHTML, HTML & CSS
writeln Method
Writes one or more HTML expressions, followed by a carriage
return, to a document in the specified window.
Syntax
document.writeln(sText)
Parameters
sText Required. String that specifies the text and/or HTML tags to write.
Return Value
No return value.
Remarks
Applies To
document
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use
.
I
blendTrans Filter Visual Filters and Transi...
Web Workshop | DHTML, HTML & CSS
alpha Filter
Sets the level of opacity for the visual object.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
You can set the opacity as uniform or graded, in a linear or radial fashion.
Members
Example
This example uses the alpha filter and the opacity property to change the
appearance of a button.
<STYLE>
INPUT.aFilter {filter: alpha(opacity=50);}
</STYLE>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
alpha Filter blur Filter Visual Filters and Trans
Web Workshop | DHTML, HTML & CSS
blendTrans Filter
Fades the visual object into or out of view.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
Members
Example
This example uses the blendTrans filter to fade a DIV into and out of view.
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
blendTrans Filter chroma Filter Visual Filters a
Web Workshop | DHTML, HTML & CSS
blur Filter
Causes the object to appear to be in motion.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Members
Example
This example uses the blur filter to make the text appear out of focus, as if it were
moving.
<STYLE>
DIV.aFilter {filter: blur(Strength=5,Direction=90);}
</STYLE>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
blur Filter dropShadow Filter Visual Filters an
Web Workshop | DHTML, HTML & CSS
chroma Filter
Selectively renders a specific color as transparent for the selected visual object.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
This effect is not recommended for use with files that have been dithered from 24 bits
to 8 bits. In particular, JPEG files, which are dithered and compressed, do not produce
an entirely solid chromakey color, resulting in uneven effects.
Chromakey does not work well on antialiased sources, in which sharp lines are
smoothed by blending the colors of surrounding pixels.
Members
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
chroma Filter flipH Filter Visual Filters and Tra
Web Workshop | DHTML, HTML & CSS
dropShadow Filter
Paints a solid silhouette of the selected visual object, offset in the specified direction, thus
creating the illusion that the visual object is floating above the page and is casting a
shadow onto the page.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
To retain the usual shadow effect on a transparent object, set the positive property to
0. This causes the drop shadow to appear outside the transparent region, rather than
inside.
Members
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
dropShadow Filter flipV Filter Visual Filters an
Web Workshop | DHTML, HTML & CSS
flipH Filter
Renders the visual object as a mirror image of itself along the horizontal plane.
Syntax
Members
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
flipH Filter glow Filter Visual Filters and Trans
Web Workshop | DHTML, HTML & CSS
flipV Filter
Renders the visual object as a mirror image of itself along the vertical plane.
Syntax
Members
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
flipV Filter gray Filter Visual Filters and Transi
Web Workshop | DHTML, HTML & CSS
glow Filter
Adds radiance around the outside edges of the object, giving it the appearance of a glow.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Members
Example
This example uses the glow filter to add a blue-colored glow to text within a DIV
element.
<STYLE>
DIV.aFilter {filter: glow(Color=blue,Strength=5); width:
150;}
</STYLE>
<DIV CLASS="aFilter">
Glowing Text
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
glow Filter invert Filter Visual Filters and Tran
Web Workshop | DHTML, HTML & CSS
gray Filter
Drops the color information from the visual object's color palette, rendering the object in
grayscale.
Syntax
Members
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
gray Filter light Filter Visual Filters and Transi
Web Workshop | DHTML, HTML & CSS
invert Filter
Reverses the hue, saturation, and brightness values of the visual object.
Syntax
Members
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
invert Filter mask Filter Visual Filters and Tran
Web Workshop | DHTML, HTML & CSS
light Filter
Simulates the projection of a light source onto the selected visual object.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
By setting or changing the properties of the light filter, you can control the virtual
position of the light source. You also can control the x and y coordinates of the light's
focus, as well as the light's type (point or cone), color, and intensity. The maximum
number of lights available to each visual filter control is 10. To add more than 10 lights
to your page, you must use multiple visual filter controls.
When a light effect is created, it has a default ambient light associated with it. The first
light you add to the object replaces this default ambient light.
You can associate only one object per light effect. To light several different objects (for
example, a text phrase and a bitmap image), you must use a separate instance of the
light filter effect for each object. However, if you combine several objects into a single
object by using a DIV element, you can use one light object to light the combined
object.
Members
Example
This example uses the light filter and the addCone method to apply a red cone filter to
a DIV element.
<STYLE>
.aFilter {background-color: #FFFFFF; filter: light();
color: #000000;
width: 150;}
</STYLE>
<SCRIPT>
window.onload=fnInit;
function fnInit(){
var iX2=oDiv.offsetWidth/2;
var iY2=oDiv.offsetHeight;
oDiv.filters[0].addCone(0,0,1,iX2,iY2,255,0,0,20,60);
}
</SCRIPT>
<DIV CLASS="aFilter" ID="oDiv">
This text is highlighted by a red cone light.
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
light Filter redirect Filter Visual Filters and Tra
Web Workshop | DHTML, HTML & CSS
mask Filter
Takes the selected visual object, paints the transparent pixels a specific color, and makes a
transparent mask from its nontransparent pixels.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Members
Example
This example uses the mask filter and the color property to make a magenta mask of
the DIV—that is, all transparent pixels are colored magenta and all nontransparent
pixels are made transparent.
<STYLE>
DIV.aFilter {filter: mask(color=#FF00FF); width: 150;}
</STYLE>
<DIV CLASS="aFilter">
This text is masked.
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
mask Filter revealTrans Filter Visual Filters an
Web Workshop | DHTML, HTML & CSS
redirect Filter
Converts the object into a DAImage object—that is, an image that can be manipulated
using Microsoft® DirectAnimation®.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
Any changes made to the specified object are reflected in the DirectAnimation version
as well.
Members
Example
This example uses the redirect filter and a 2-D transformation to convert a DIV
object, which contains text and an image, into a DirectAnimation image that rotates
continuously.
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
redirect Filter shadow Filter Visual Filters and
Web Workshop | DHTML, HTML & CSS
revealTrans Filter
Shows or hides visual objects using one of 23 predefined transition effects.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Remarks
For a list of the 23 predefined transitions that can be used with the revealTrans filter,
see the transition property.
Members
Example
This example uses the revealTrans filter to reveal and conceal objects using two
different types of transitions.
<SCRIPT>
function go() {
C1.filters[0].Apply();
if (C1.style.visibility == "visible") {
C1.style.visibility = "hidden";
C1.filters.revealTrans.transition=2;
}
else {
C1.style.visibility = "visible";
C1.filters[0].transition=3;
}
C1.filters[0].Play();
}
</SCRIPT>
<INPUT TYPE=BUTTON VALUE="Play Transistion" onClick="go();">
</INPUT>
<SPAN ID=C1
Style="position:absolute;Visibility:visible;Filter:revealTrans
(duration=2, transition=3);width:300;height:300;
background-color: lightgreen">
<CENTER>
<DIV style="background-
color=red;height=100;width:100;position:relative;
top:100">
</DIV>
</CENTER>
</SPAN>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
revealTrans Filter wave Filter Visual Filters an
Web Workshop | DHTML, HTML & CSS
shadow Filter
Paints a solid silhouette of the selected visual object along one of its edges, in the specified
direction, creating the illusion of a shadow around the visual object.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Members
Example
This example uses the shadow filter to add a shadow effect to the text.
<STYLE>
DIV.aFilter {filter: shadow(color=#0000FF,direction=45);
width: 150; color: FF0000;}
</STYLE>
<DIV CLASS="aFilter">
This red text is displayed with a 45-degree blue shadow.
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
shadow Filter xray Filter Visual Filters and Tra
Web Workshop | DHTML, HTML & CSS
wave Filter
Performs a sine wave distortion of the visual display of the object along the vertical axis.
Syntax
Possible Values
sProperties String that specifies one or more properties exposed by the filter.
Members
Example
This example uses the wave filter to render text along a sine wave.
<STYLE>
DIV.aFilter {filter: wave(
strength=8,
freq=3,
lightstrength=20,
add=0,
phase=90);
width: 150; color: #FF0000;}
</STYLE>
<DIV CLASS="aFilter">
This red text is displayed along a sine wave.
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT
type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle, SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
wave Filter Visual Filters and Transi...
Web Workshop | DHTML, HTML & CSS
xray Filter
Changes the color depth of the visual object, and renders the object in black
and white, making the visual display look like a black-and-white x-ray.
Syntax
Members
Example
This example uses the xray filter to render colored text in grayscale.
<STYLE>
DIV.aFilter {filter: xray; width: 150; color:
#FF0000;}
</STYLE>
<DIV CLASS="aFilter">
This red text is displayed in grayscale.
</DIV>
Applies To
BODY, BUTTON, DIV, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT
type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, MARQUEE, runtimeStyle,
SPAN, style, TABLE, TD, TEXTAREA, TH
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
xray Filter COLOR Attribute | color P... Visual
Web Workshop | DHTML, HTML & CSS
ADD Attribute | add Property
Sets or retrieves a value indicating whether to add an image to the image to the image
applied with the filter.
Syntax
Possible Values
Applies To
blur, wave
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ADD Attribute | add Prope... DIRECTION Attribu
Web Workshop | DHTML, HTML & CSS
COLOR Attribute | color Property
Sets or retrieves the value of the color applied with the filter.
Syntax
Possible Values
Remarks
The following table describes the effect of the color property when applied to different
filters.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COLOR Attribute | color P... DURATION Attribut
Web Workshop | DHTML, HTML & CSS
DIRECTION Attribute | direction Property
Sets or retrieves the directional offset of the filter, expressed in 45-degree increments,
clockwise from the vertical orientation of the object.
Syntax
Possible Values
Remarks
Values less than 0 or greater than 360 automatically convert to values between 0 and
360. For example, a value of -45 degrees is equivalent to a value of 315 degrees.
Example
This example sets the direction and strength properties of a blur filter, with an initial
strength of 1, on an image. When the page loads, the onfilterchange event of the
image fires. The onfilterchange event fires each time the strength and direction
properties change, until strength reaches a value of 100.
<SCRIPT>
function HandleChange()
{
with (window.event.srcElement.filters[0])
{
if (strength < 100)
{
strength += 1;
direction += 45;
}
}
}</SCRIPT>
<IMG ID="img1" SRC="joker2.jpg" onfilterchange="HandleChange()"
STYLE="filter:blur (STRENGTH=1 DIRECTION=0)" />
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
blur, shadow
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DIRECTION Attribute | dir... ENABLED Attribute
Web Workshop | DHTML, HTML & CSS
DURATION Attribute | duration Property
Sets or retrieves the length of time the transition takes to complete.
Syntax
Possible Values
fDuration Floating-point value that specifies the length of time to complete the transition. The value is specified in seconds.milliseconds format
(0.0000).
The property is read/write with no default value. However, once the transition is
applied, or starts playing, the property becomes read-only.
Remarks
You can set a transition's playback duration as a parameter of the play method.
Example
This example uses the DURATION attribute and the revealTrans filter to cause two
colored shapes to fade in or out during a two-second interval.
Applies To
blendTrans, revealTrans
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
DURATION Attribute | dura... FINISHOPACITY A
Web Workshop | DHTML, HTML & CSS
enabled Property
Sets or retrieves whether the filter is currently enabled.
Syntax
Possible Values
Example
This example uses the enabled property to change the orientation of an image when
the user moves the mouse pointer across one of the image's borders.
Applies To
alpha, blur, blendTrans, chroma, dropShadow, flipH, flipV, glow, gray, invert, light, mask, redirect, revealTrans, shadow, wave, xray
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ENABLED Attribute | enabl... FINISHX Attribute
Web Workshop | DHTML, HTML & CSS
FINISHOPACITY Attribute | finishOpacity Property
Sets or retrieves the opacity level at the end of the gradient applied with the alpha filter.
Syntax
Possible Values
iOpacity Integer that specifies the opacity level, using values that range from 0 (fully transparent) to 100 (fully opaque).
Remarks
This property applies only to objects that have an opacity gradient specified—that is,
the style property is set to 1, 2, or 3.
Applies To
alpha
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FINISHOPACITY Attribute |... FINISHY Attribute
Web Workshop | DHTML, HTML & CSS
FINISHX Attribute | finishX Property
Sets or retrieves the horizontal position at which the opacity gradient ends.
Syntax
Possible Values
iPercent Integer that specifies the horizontal position as a percentage of the width of the object.
Remarks
This property applies only to objects that have an opacity gradient specified—that is,
the style property is set to 1, 2, or 3.
Applies To
alpha
See Also
finishY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FINISHX Attribute | finis... FREQ Attribute | fre
Web Workshop | DHTML, HTML & CSS
FINISHY Attribute | finishY Property
Sets or retrieves the vertical position at which the opacity gradient ends.
Syntax
Possible Values
iPercent Integer that specifies the vertical position as a percentage of the height of the object.
Remarks
This property applies only to objects that have an opacity gradient specified—that is,
the style property is set to 1, 2, or 3.
Applies To
alpha
See Also
finishX
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FINISHY Attribute | finis... LIGHTSTRENGTH At
Web Workshop | DHTML, HTML & CSS
FREQ Attribute | freq Property
Sets or retrieves the number of waves to appear in the visual distortion.
Syntax
Possible Values
Applies To
wave
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
FREQ Attribute | freq Pro... OFFX Attribute | off
Web Workshop | DHTML, HTML & CSS
LIGHTSTRENGTH Attribute | lightStrength Property
Sets or retrieves the intensity of light applied by the filter.
Syntax
Possible Values
iPercentage Integer that specifies the intensity of light as a percentage, ranging from 0 (lowest intensity) to 100 (highest intensity).
Applies To
wave
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
LIGHSTRENGTH Attribute | ... OFFY Attribute |
Web Workshop | DHTML, HTML & CSS
OFFX Attribute | offX Property
Sets or retrieves the offset of the drop shadow from the visual object, along the x-axis.
Syntax
Possible Values
iOffsetX Integer that specifies the offset value, in pixels. Positive values move the drop shadow to the right, and negative values move it to the left.
Applies To
dropShadow
See Also
offY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OFFX Attribute | offX Pro... OPACITY Attribute |
Web Workshop | DHTML, HTML & CSS
OFFY Attribute | offY Property
Sets or retrieves the offset of the drop shadow from the visual object, along the y-axis.
Syntax
Possible Values
iOffsetY Integer that specifies the offset value, in pixels. Positive values move the drop shadow down, and negative values move it up.
Applies To
dropShadow
See Also
offX
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OFFY Attribute | offY Pro... PHASE Attribute | p
Web Workshop | DHTML, HTML & CSS
OPACITY Attribute | opacity Property
Sets or retrieves the opacity level at the beginning of the gradient applied with the alpha
filter.
Syntax
Possible Values
iOpacity Integer that specifies the opacity level, using values that range from 0 (fully transparent) to 100 (fully opaque).
Applies To
alpha
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
OPACITY Attribute | opaci... POSITIVE Attribute
Web Workshop | DHTML, HTML & CSS
PHASE Attribute | phase Property
Sets or retrieves the phase offset at which the sine wave starts.
Syntax
Possible Values
iPercentage Integer that specifies the offset as a percentage, using values that range from 0 to 100. A value of 25 starts the sine wave effect at 90
degrees. A value of 360 is the equivalent of 0 degrees.
Applies To
wave
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PHASE Attribute | phase P... STARTX Attribute
Web Workshop | DHTML, HTML & CSS
POSITIVE Attribute | positive Property
Sets or retrieves whether the filter creates a drop shadow from the nontransparent pixels
of the object.
Syntax
Possible Values
Remarks
If you have a transparent object but still want the usual drop shadow effect, set the
positive property to false. This causes the transparent object to have a drop shadow
outside the transparent region, rather than a drop shadow inside the transparent
region.
Applies To
dropShadow
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
POSITIVE Attribute | posi... STARTY Attribute |
Web Workshop | DHTML, HTML & CSS
STARTX Attribute | startX Property
Sets or retrieves the horizontal position at which the opacity gradient starts.
Syntax
Possible Values
iPercent Integer that specifies the horizontal position as a percentage of the width of the object.
Remarks
This property applies only to objects that have an opacity gradient specified—that is,
the style property is set to 1, 2, or 3.
Applies To
alpha
See Also
startY
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STARTX Attribute | startX... status Property V
Web Workshop | DHTML, HTML & CSS
STARTY Attribute | startY Property
Sets or retrieves the vertical position at which the opacity gradient starts.
Syntax
Possible Values
iPercent Integer that specifies the vertical position as a percentage of the height of the object.
Remarks
This property applies only to objects that have an opacity gradient specified—that is,
the style property is set to 1, 2, or 3.
Applies To
alpha
See Also
startX
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STARTY Attribute | startY... STRENGTH Attribut
Web Workshop | DHTML, HTML & CSS
status Property
Retrieves the current state of the transition.
Syntax
HTML N/A
Scripting [ iStatus ] =object.filters.filterName.status
Possible Values
Applies To
blendTrans, revealTrans
See Also
play, stop
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
status Property STYLE Attribute | style P... Vi
Web Workshop | DHTML, HTML & CSS
STRENGTH Attribute | strength Property
Sets or retrieves the intensity of the filter.
Syntax
Possible Values
iIntensity Integer that specifies the intensity of the filter, using values that range from 1 (lowest intensity) to 100 (highest intensity).
Example
This example sets the strength and direction properties of a blur filter, with an initial
strength of 1, on an image. When the page loads, the onfilterchange event of the
image fires. The strength and direction properties cause the onfilterchange event
to fire repeatedly until the strength reaches 100.
<SCRIPT>
function HandleChange()
{
with (window.event.srcElement.filters[0])
{
if (strength < 100)
{
strength += 1;
direction += 45;
}
}
}</SCRIPT>
<IMG ID="img1" SRC="joker2.jpg" onfilterchange="HandleChange()"
STYLE="filter:blur (STRENGTH=1 DIRECTION=0)" />
This feature requires Internet Explorer 5 or later. Click the icon below to install the
latest version. Then reload this page to view the sample.
Applies To
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STRENGTH Attribute | stre... TRANSITION Attri
Web Workshop | DHTML, HTML & CSS
STYLE Attribute | style Property
Sets or retrieves the shape characteristics of the opacity gradient.
Syntax
Possible Values
Applies To
alpha
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
STYLE Attribute | style P... addAmbient Method
Web Workshop | DHTML, HTML & CSS
TRANSITION Attribute | transition Property
Sets or retrieves the type of transition.
Syntax
Possible Values
Remarks
Transitions appear properly only on systems that have the color palette set to display
256 colors or more.
Example
This example uses the transition property to specify "circle in" and "circle out"
transitions for the revealTrans filter.
Applies To
revealTrans
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
TRANSITION Attribute | tr... addCone Method
Web Workshop | DHTML, HTML & CSS
addAmbient Method
Adds an ambient light to the light filter effect object.
Syntax
Parameters
iRed Required. Integer that specifies the red value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integer that specifies the green value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integer that specifies the blue value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iStrength Required. Integer that specifies the intensity of the light filter, with values ranging from 0 (lowest intensity) to 100 (highest intensity).
The intensity specified pertains to the target coordinates.
Return Value
No return value.
Remarks
Ambient light is nondirectional and sheds parallel beams perpendicular to the surface
of the page. Ambient light has color and strength values that add more color to the
object; it is often used with other lights.
This example uses the addAmbient method to create a blue ambient light with a low
intensity.
<STYLE>
.aFilter {background-color: #FFFFFF; filter: light();
color: #000000;
width: 150;}
</STYLE>
<SCRIPT>
function init()
{
:
oDiv.filters.light.addAmbient(0,0,255,10);
:
}
</SCRIPT>
<DIV CLASS="aFilter" ID="oDiv" onload="init()">
This text is applied with a low-intensity light filter.
</DIV>
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addAmbient Method addPoint Method Visual F
Web Workshop | DHTML, HTML & CSS
addCone Method
Adds a cone light to the light filter effect object to cast a directional light on the page.
Syntax
Parameters
iX1 Required. Integer that specifies the left coordinate of the light source.
iY1 Required. Integer that specifies the top coordinate of the light source.
iZ1 Required. Integer that specifies the z-axis level of the light source.
iX2 Required. Integer that specifies the left coordinate of the target light focus.
iY2 Required. Integer that specifies the top coordinate of the target light focus.
iRed Required. Integer that specifies the red value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integer that specifies the green value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integer that specifies the blue value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iStrength Required. Integer that specifies the intensity of the light filter, with values ranging from 0 (lowest intensity) to 100 (highest intensity).
iSpread Required. Integer that specifies the angle, or spread, between the vertical position of the light source and the surface of the visual object.
The spread can be from 0 to 90 degrees. Smaller spread values produce a smaller-shaped cone of light; larger spread values produce an
oblique oval or circle of light.
Return Value
No return value.
Remarks
The cone light fades with distance from the target x,y position. The light displays a
hard edge at the near edge of its focus and fades gradually as it reaches its distance
threshold.
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addCone Method apply Method Visual Filters a
Web Workshop | DHTML, HTML & CSS
addPoint Method
Adds a light source that originates from a single point and radiates in all directions.
Syntax
Parameters
iX Required. Integer that specifies the left coordinate of the light source.
iY Required. Integer that specifies the top coordinate of the light source.
iZ Required. Integer that specifies the z-axis level of the light source.
iRed Required. Integer that specifies the red value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integer that specifies the green value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integer that specifies the blue value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iStrength Required. Integer that specifies the intensity of the light filter, with values ranging from 0 (lowest intensity) to 100 (highest intensity).
The intensity specified pertains to the target coordinates.
Return Value
No return value.
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
addPoint Method changeColor Method Visual
Web Workshop | DHTML, HTML & CSS
apply Method
Applies a transition to the designated object.
Syntax
object.filters.filterName.apply()
Return Value
No return value.
Applies To
blendTrans, revealTrans
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
apply Method changeStrength Method Visual
Web Workshop | DHTML, HTML & CSS
changeColor Method
Changes the light color for any light on the page.
Syntax
Parameters
iLightNumber Required. Integer that specifies the identifying number for the light, for use in scripting.
iRed Required. Integer that specifies the red value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iGreen Required. Integer that specifies the green value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iBlue Required. Integer that specifies the blue value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iAbsolute Required. Integer that specifies whether the color values for iRed, iGreen, and iBlue are absolute values that replace the current
values, or are relative values that are added to the current values. A nonzero value indicates the color values are absolute; a value of
0 indicates the color values are relative.
Return Value
No return value.
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
changeColor Method clear Method Visual Filte
Web Workshop | DHTML, HTML & CSS
changeStrength Method
Changes the intensity of the light applied with the light filter.
Syntax
Parameters
iLightNumber Required. Integer that specifies the identifying number for the light, for use in scripting.
iStrength Required. Integer that specifies the intensity of the light filter, with values ranging from 0 (lowest intensity) to 100 (highest
intensity).
iAbsolute Required. Integer that specifies whether the intensity value of iStrength is an absolute value that replaces the current value, or is a
relative value that is added to the current value. A nonzero value indicates the intensity value is absolute; a value of 0 indicates the
intensity value is relative. The intensity specified pertains to the target coordinates.
Return Value
No return value.
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
changeStrength Method elementImage Method
Web Workshop | DHTML, HTML & CSS
clear Method
Deletes all lights associated with the specified light filter.
Syntax
object.filters.light.clear()
Return Value
No return value.
Remarks
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
clear Method moveLight Method Visual Filters
Web Workshop | DHTML, HTML & CSS
elementImage Method
Returns a Microsoft® DirectAnimation® image (daimage ) object.
I
Syntax
oImage = object.filters.redirect.elementImage()
Return Value
Example
This example uses the elementImage method and a 2-D transformation to convert a
DIV object containing text and an image into a DirectAnimation image that rotates
continuously.
Applies To
redirect
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
elementImage Method play Method Visual Filt
Web Workshop | DHTML, HTML & CSS
moveLight Method
Moves the light effect on the page.
Syntax
Parameters
iLightNumber Required. Integer that specifies the identifying number for the light, for use in scripting.
iX Required. Integer that specifies the left coordinate of the light source.
iY Required. Integer that specifies the top coordinate of the light source.
iZ Required. Integer that specifies the z-axis level of the light source.
bAbsolute Required. Boolean that specifies whether the move is absolute or relative.
Return Value
No return value.
Remarks
For cone lights, this method changes the target x,y values to move the light's focus.
For point lights, this method changes the source x,y,z values to move the source
location. This method has no effect on ambient lights.
Applies To
light
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
moveLight Method stop Method Visual Filters
Web Workshop | DHTML, HTML & CSS
play Method
Plays the transition.
Syntax
object.filters.filterName.play([ iDuration ])
Parameters
iDuration Optional. Integer that specifies a floating point number that indicates the amount of time the filter should play. Valid values are 0.0-N.n
units.
Return Value
No return value.
Remarks
Applies To
blendTrans, revealTrans
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
play Method Visual Filters and Transi...
Web Workshop | DHTML, HTML & CSS
stop Method
Stops transition playback.
Syntax
object.filters.filterName.stop()
Return Value
No return value.
Remarks
Applies To
blendTrans, revealTrans
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | Component
Development
Dynamic HTML Scriptlets
November 4, 1998
Elements ATTACH
COMPONENT
EVENT
METHOD
PROPERTY
Objects element
Methods createEventObject
fire
Events oncontentready
ondetach
ondocumentready
Related Topics
The following list contains links to topics related to implementing HTML Components.
addBehavior Method
attachEvent Method
behavior Attribute
behaviorUrns Collection
detachEvent Method
removeBehavior Method
scopeName Property
srcUrn Property
tagUrn Property
uniqueID Property
urns Method
dhtml behaviorsI
implementing dhtml behaviors in scriptI
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | Component
Development
Downloading Code on the Web
Michael Edwards
Contents
Introduction
Creating Download Packages
The "No-Brainer" Download Package
Cabinet (CAB) Files
Where Do You Get the Cabinet Stuff?
What About OSD for Internet Explorer 4.x-only
Downloads?
Active Setup
File Transfer Protocol (FTP)
Other Packaging Tools
Security
Digital Code-Signing
Where Do You Get the Code-Signing Tools?
How Did the Code-Signing Tools Change for Internet
Explorer 4.x?
What About Netscape?
Marking ActiveX Controls as Safe
Internet Explorer Security Settings
Did Security Settings Change for Internet Explorer 4.x?
Tips and Troubleshooting
Summary
Introduction
Believe it or not, there's already a lot of online information
available to help you figure out how to have your code
downloaded over the Web. You just have to know where to
look. Fortunately for you, they pay me to surf the Web (go
figure), so I learned where to look, and where not to look. I
got pretty confused from time to time figuring out how it all
works together. So I wrote this article to help sort it all out.
I hope you find it helpful, too.
For the veterans who just want to get some things straight,
I've tried to use descriptive headings (none gratuitously
cute) so you can skim for the information you seek.
Back to top
Creating Download Packages
On the Internet, a download package is a collection of files
that can be copied from a Web server to an end-user's
machine. Web pages that offer services that need
functionality not already provided by built-in browser
objects must create (and make available for download) their
own objects. A download package can also contain the files
necessary to install an entire application. In the simplest
case, a Microsoft® Word document could be considered a
download package. Typically, however, download packages
contain executable program code.
Back to top
Back to top
You can download the Cabinet SDK from the MSDN Online
web workshop . You'll find these are the exact same tools
I
from the original Cabinet SDK (right down to the date and
time stamps), but they also include the code-signing tools
that were updated for Internet Explorer 4.0 that I talk about
in the Security section below. This download includes the
original Cabinet SDK docs (Cabarc.doc, Cabfmt.doc,
Lzxfmt.doc, Mszipfmt.doc and Makecab.doc). Additionally,
you should check out the internet component download
I
Workshop topic.
The Microsoft sdk for java , includes the original
Cabinet SDK and code-signing tools. (If you look closely,
though, you'll notice that the tools in the SDK for Java are
more recent than those in the Internet Client SDK; this will
make more sense when I discuss what changed with
Internet Explorer 4.0.) Unlike the Internet Client SDK, the
SDK for Java does not ship any of the original Cabinet SDK
docs. Instead, since there are important differences in the
way Java code is installed compared with ActiveX controls,
you'll find all new documentation for the Cabarc utility in
creating and using cabinet files for java applets and libraries
. As you would expect, it discusses using cabinets to
I
contain Java applets, and includes libraries to enable
downloading for users of Internet Explorer 3.x or Internet
Explorer 4.x. You can also get information about using
Cabarc in the SDK for Java's tools quick reference .
I
Note that the platform sdk , available from MSDN Online,
I
also contains the Microsoft SDK for Java, yet another way to
get the same stuff.
Back to top
The Internet Client SDK also ships the original Cabinet SDK.
Its files have the same dates and times, and even include
the original docs. The problem with the Internet Client SDK
(besides scattering topics all over the place) is that it mixed
Internet Explorer 4.x-only information in with general
cabinet information. This is aggravating, because many of
you would appreciate that article, but you might wonder if
the .INF information applies only to Internet Explorer 4.x (it
doesn't). One more thing: Don't get confused by the
references to Diamond.exe in the MICD article. They're
typos. Simply replace all references to Diamond.exe with
Cabarc.exe, and you'll be fine.
Back to top
Lots of people are running into the same wall trying to use
the new Java permissions (even though they are correctly
signing their CABs) because they are not asserting their
permissions to the security manager at runtime.
securityexceptionex exception running a java applet sheds
I
some light on this situation.
If you need to track down install problems that may be
related to what Java VM is running, you might check out
historical list of shipping vehicles for java vm .
I
howto: deploying java in internet explorer 4.x and netscape
4.0 has information about how to use the <APPLET> and
I
<OBJECT> tags for downloading Java packages.
Back to top
Back to top
Active Setup
Active Setup is an Internet Explorer 4.x-only vehicle for
downloading code on the Web. It is based on the CAB
format, and is useful for really large downloads that would
benefit from being broken up into multiple CABs. Active
Setup is also capable of restarting from where it left off
when an Internet connection gets toasted in the middle of a
download. Internet Explorer 4.x and the Internet Client SDK
both use Active Setup for their downloads. I found this
description of the active setup log.txt file in the
I
Knowledge Base.
Back to top
Back to top
Digital Code-Signing
On the Internet, you can't hold a shrink-wrapped box of
software in your hand to verify its legitimacy. Hacker pages
can exploit this by falsely representing a software download
package as having been published by a reputable publisher.
So even if a trustworthy publisher legitimately produced the
package, how can you determine whether it's been
tampered with?
The Microsoft sdk for java , like the Internet Client SDK,
includes code-signing tools (updated for Internet Explorer
4.0) that are installed in the C:\SDK-Java.20\Bin\PackSign
folder. You might notice the versions of these tools are
newer than those in the Internet Client SDK, but I have
been assured there are no significant differences between
them. The updated tools for Internet Explorer 4.x can come
from either source; just don't mix and match them. (I'd
decide which tool set to use based on whether I was
creating a Java or native-code download.)
Back to top
I don't know much more than that, but feel free to poke
around a bit on the netscape developer pages .
The Microsoft SDK for Java 2.01 has several articles about
securing your java code library .
I
Back to top
Internet Explorer Security Settings
So far we've talked about the part of making code
downloadable that affects developers. Now let's talk about
controlling whether components are allowed to download
and whether Web pages are allowed to script them. This is
the part of the security model that is in the hands of the
end-user.
Back to top
Some Stuff Related to Code Download
Pluggable Protocols
If you think associating your application with a Media type is
a cool idea, you might be interested in creating a new
protocol handler. In Internet Explorer, protocol handlers are
to URLs what MIME-type handlers are to HREFs. In other
words, you can register a URL protocol with an associated
application so that all attempts to navigate to a URL using
that protocol launch the application. That is how the mailto:
and news: URLs work. Or you may have noticed the mk:
protocol that MSDN and Visual Studio™ are now using.
Back to top
Summary
I went over a lot of stuff in this article. I talked about the
technologies available to build a download package, and
there are many. I discussed Microsoft's approach to
security, and how you can empower customers to verify
whether a download package was actually published by your
company (and therefore "trustworthy"). I talked about how
security works in different versions of Internet Explorer, so
users can protect themselves from rogue Web sites. I
explained how to find Microsoft documents and tools for
Internet Component Download, and what changed (and
didn't) when Internet Explorer 3.x became Internet Explorer
4.x.
<SCRIPT LANGUAGE="JavaScript">
var public_description = new
CreateScriplet();
Function CreateScriptlet(){
// statements here to define
properties and methods
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
// public_description object used to declare
scriplet
var public_description = new
ScriptletObject();
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Using Default Interface Descriptions
If there is no public_description object defined in the
scriptlet, the scriptlet container object exposes properties
and methods using variables and functions in the scriptlet
that follow certain naming conventions. To expose scriptlet
properties and methods, use these conventions:
Method
function SC1.look(param)
public_look(param)
Property (read)
function x = SC1.C
public_get_C()
Property
(write)
function SC1.C = "test"
public_put_C(param)
Not available
(no public_
function look() prefix)
Not available
(no public_
function get_C() prefix)
Not available
(no public_
var Color = red; prefix)
Not available
(no public_
var get_Color = red; prefix)
<SCRIPT LANGUAGE="JavaScript">
<!--
public_P1Text = P1.innerText
function public_SetText(newText){
P1.innerText = newText;
}
// -->
</SCRIPT>
See Also
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Handling Standard Events
The scriptlet can expose these standard DHTML events:
The following scriptlet script shows how you can pass a text
box's onkeyup event to the host application.
<SCRIPT LANGUAGE="JavaScript">
function passKeyUp() {
// script statements here if required
window.external.bubbleEvent();
// further script statements here if
required
}
</SCRIPT>
Sub ScriptContainer1_onkeyup()
MsgBox "The character typed was " &
ScriptContainer1.event.keyCode
MsgBox "The shift state was " &
ScriptContainer1.event.shiftKey
End Sub
See Also
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Welcome to Scriptlet Tech...
Web Workshop | Component
Development
Defining Custom Events
You can use custom events to:
<SCRIPT LANGUAGE="JavaScript">
function public_put_backgroundColor(value)
{
window.document.bgColor = value;
window.external.raiseEvent("event_onbgcolorc
hange",window.document);
}
</SCRIPT>
Sub ScriptletContainer1_onscriptletevent(
ByVal txtTitle As String, _
ByVal eventData As Variant)
objName = eventData.srcElement.ID
MsgBox "The event " & txtTitle & "
occurred in " & objName
End Sub
<SCRIPT LANGUAGE="JavaScript"
FOR=ScriptletControl1
EVENT= onscriptletevent (name,
eventData)>
alert("The event that occurred in the
scriptlet was " + name);
</SCRIPT>
See Also
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
readyState Property scrollbar Property Welco
Web Workshop | Component Development
scrollbar Property
Specifies whether the scriptlet container object displays a scrollbar.
Applies To
Syntax
ScriptContainer.scrollbar = boolean
Remarks
This property can be set at design time and at runtime. By default, the value of this
property is false. If you set this property to true:
A vertical scrollbar always appears in the scriptlet container object. If the scriptlet's
height is less than the height of the scriptlet container object's window, the vertical
scrollbar is disabled.
A horizontal scrollbar appears if the scriptlet's width is greater than the width of the
scriptlet container object's window
You can also set this property from within a scriptlet. For details, see the scrollbar
property. To set the size of the scriptlet container object window from within the scriptlet,
see Adding Scriptlets to Your Application.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
text-decoration Attribute... textDecorationLineT
Web Workshop | DHTML, HTML & CSS
textDecorationBlink Property
Property not implemented.
See Also
textDecoration
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
attributes Collection Members
Retrieves a collection of attributes of the object.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
children Collection Members
Retrieves a collection of elements that are direct
descendants of the object.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
elements Collection Members
Retrieves a collection, in source order, of all objects in a
given form.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
frames Collection Members
Retrieves a collection of all window objects defined by the
given document or defined by the document associated with
the given window.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
all Collection Members
Returns a reference to the collection of elements contained
by the object.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
options Collection Members
Retrieves a collection of the OPTION objects in a SELECT
object.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
rules Collection Members
Retrieves a collection of rules defined in the style sheet.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
styleSheets Collection Members
Retrieves a collection of styleSheet objects representing the
style sheets that correspond to each instance of a LINK or
STYLE object in the document.
Properties
length , styleSheet
Methods
item , urns
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
imports Collection Members
Retrieves a collection of all the imported style sheets
defined for the respective styleSheet object.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
TextRectangle Collection Members
Returns a collection of TextRectangle objects.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
rows Collection Members
Retrieves a collection of TR objects (rows) from a TABLE
object.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
cells Collection Members
Retrieves a collection of all cells in the table row or in the
entire table.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
BGCOLOR Attribute | bgCol... BGPROPERTIES A
Web Workshop | DHTML, HTML & CSS
BGCOLOR Attribute
Sets or retrieves the background color behind the element.
Syntax
Possible Values
sColor String that specifies one of the color names or red-green-blue (RGB) values in the Color Table.
JScript® (compatible with ECMA 262 language specification) supports the entire set of
colors as color names and as their corresponding RGB values. However, JScript always
returns the property as a string specifying the RGB color value, regardless of the
format the value was set to.
Some browsers do not recognize color names, but all browsers should recognize RGB
color values and display them correctly.
Applies To
COL, COLGROUP
See Also
background, bgColor
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
status Property systemLanguage Property DH
Web Workshop | DHTML, HTML & CSS
STYLE Attribute
Sets an inline style for the element.
Syntax
Possible Values
This attribute is not accessible through scripting. To access styles through scripting,
use the style object.
Applies To
A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, custom, DD,
DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, Hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT
type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT
type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP,
SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TR, TT, U, UL, VAR, XMP
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
controlRange Collection Members
Returns an array of elements specified in the
createControlRange method.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
DirLTR Command | IDM_DIRL... EditMode Com
Web Workshop | DHTML, HTML & CSS
DirRTL Command | IDM_DIRRTL Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PlayImage Command | IDM_D... Redo Comman
Web Workshop | DHTML, HTML & CSS
Print Command | IDM_PRINT Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
SizeToControl Command | I... SizeToControlWid
Web Workshop | DHTML, HTML & CSS
SizeToControlHeight Command | IDM_SIZETOCONTROLHEIGHT
Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
StrikeThrough Command | I... SuperScript Com
Web Workshop | DHTML, HTML & CSS
StrikeThrough Command | IDM_STRIKETHROUGH Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
anchor Behavior Members
Enables the browser to navigate to a folder view.
Properties
folder , target
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
anim:DA Element | anim Behavior
Members
Defines an instance of the Microsoft® DirectAnimation®
viewer in an HTML document to render DirectAnimation
objects and play DirectAnimation sounds.
Properties
Methods
addDABehavior , removeDABehavior
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
ANIMATION Element | animation Behavior
Members
Defines a timed animation element in an HTML document.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
AUDIO Element | audio Behavior Members
Defines a timed audio element in an HTML document.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
clientCaps Behavior Members
Provides information about features supported by
Microsoft® Internet Explorer, as well as a way for installing
browser components on demand.
Properties
Methods
addComponentRequest , clearComponentRequest ,
compareVersions , doComponentRequest ,
getComponentVersion , isComponentInstalled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
download Behavior Members
Downloads a file and notifies a specified callback function
when the download is complete.
Methods
startDownload
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
homePage Behavior Members
Contains information about a user's homepage.
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
httpFolder Behavior Members
Contains scripting features that enable browser navigation
to a folder view.
Methods
navigate , navigateFrame
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
IMG Element | img Behavior Members
Defines a timed image element in an HTML document.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
MEDIA Element | media Behavior
Members
Defines a generic, timed media element in an HTML
document.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
PAR Element | par Behavior Members
Defines a new timeline container in an HTML document for
independently timed elements.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
saveFavorite Behavior Members
Enables the object to persist data in a Favorite.
Properties
XMLDocument
Methods
Events
onload , onsave
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
saveHistory Behavior Members
Enables the object to persist data in the browser history.
Properties
XMLDocument
Methods
Events
onload , onsave
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
saveSnapshot Behavior Members
Enables the object to persist data when a Web page is
saved.
Events
onsave
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
SEQ Element | seq Behavior Members
Defines a new timeline container in an HTML document for
sequentially timed elements.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
time Behavior Members
Provides an active timeline for an HTML element.
Properties
Methods
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
userData Behavior Members
Enables the object to persist data in user data.
Properties
expires , XMLDocument
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
VIDEO Element | video Behavior Members
Defines a timed video element in an HTML document.
Properties
Methods
beginElement , endElement
Events
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Default Behaviors Referen...
Web Workshop | DHTML, HTML & CSS
Time Formats
The following table lists the possible formats for expressing
time values.
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Default Behaviors Referen...
Web Workshop | DHTML, HTML & CSS
Installable Components in Internet
Explorer
The following table lists the component identifiers that can
be installed with Microsoft® Internet Explorer 5. These
identifiers are used with the addComponentRequest
method.
Component Component ID
Address Book {7790769C-0471-11D2-AF11-00C04FA35D02}
AOL ART Image Format Support {47F67D00-9E55-11D1-BAEF-00C04FC2D130}
Arabic Text Display Support {76C19B38-F0C8-11CF-87CC-0020AFEECF20}
Chinese (Simplified) Text Display Support {76C19B34-F0C8-11CF-87CC-0020AFEECF20}
Chinese (Traditional) Text Display Support {76C19B33-F0C8-11CF-87CC-0020AFEECF20}
Dynamic HTML Data Binding {9381D8F2-0288-11D0-9501-00AA00B911A5}
DirectAnimation {283807B5-2C60-11D0-A31D-00AA00B92C03}
Hebrew Text Display Support {76C19B36-F0C8-11CF-87CC-0020AFEECF20}
Internet Connection Wizard {5A8D6EE0-3E18-11D0-821E-444553540000}
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Default Behaviors Referen...
Web Workshop | DHTML, HTML & CSS
Detectable Components in Internet
Explorer
The following table lists the component identifiers that can
be detected with Microsoft® Internet Explorer 5. These
identifiers are used with the following methods:
getComponentVersion
isComponentInstalled
Component Component ID
Address Book {7790769C-0471-11D2-AF11-00C04FA35D02}
Windows Desktop Update NT {89820200-ECBD-11CF-8B85-00AA005B4340}
DirectAnimation {283807B5-2C60-11D0-A31D-00AA00B92C03}
DirectAnimation Java Classes {4F216970-C90C-11D1-B5C7-0000F8051515}
DirectShow™ {44BBA848-CC51-11CF-AAFA-00AA00B6015C}
Dynamic HTML Data Binding {9381D8F2-0288-11D0-9501-00AA00B911A5}
Dynamic HTML Data Binding for Java {4F216970-C90C-11D1-B5C7-0000F8051515}
Internet Connection Wizard {5A8D6EE0-3E18-11D0-821E-444553540000}
Internet Explorer 5 Web Browser {89820200-ECBD-11CF-8B85-00AA005B4383}
Internet Explorer Classes for Java {08B0E5C0-4FCB-11CF-AAA5-00401C608555}
Internet Explorer Help {45EA75A0-A269-11D1-B5BF-0000F8051515}
Internet Explorer Help Engine {DE5AED00-A4BF-11D1-9948-00C04F98BBC9}
Windows Media Player {22D6F312-B0F6-11D0-94AB-0080C74C7E95}
NetMeeting NT {44BBA842-CC51-11CF-AAFA-00AA00B6015B}
Offline Browsing Pack {3AF36230-A269-11D1-B5BF-0000F8051515}
Outlook Express {44BBA840-CC51-11CF-AAFA-00AA00B6015C}
Task Scheduler {CC2A9BA0-3BDD-11D0-821E-444553540000}
Microsoft virtual machine {08B0E5C0-4FCB-11CF-AAA5-00401C608500}
VRML 2.0 Viewer {90A7533D-88FE-11D0-9DBE-0000C0411FC3}
Wallet {1CDEE860-E95B-11CF-B1B0-00AA00BBAD66}
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
anchors Collection Members
Retrieves a collection of all A objects that have a name
and/or id property. Objects in this collection are in HTML
source order.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
applets Collection Members
Retrieves a collection of all APPLET objects in the document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
areas Collection Members
Retrieves a collection of the AREA objects defined for the
given MAP object.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
behaviorUrns Collection Members
Returns a collection of Uniform Resource Name (URN)
strings identifying the behaviors attached to the element.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
bookmarks Collection Members
Returns a collection of ActiveX® Data Objects (ADO)
bookmarks tied to the rows affected by the current event.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
boundElements Collection Members
Returns a collection of all elements on the page bound to a
data set.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
childNodes Collection Members
Retrieves a collection of elements and TextNodes that are
direct descendants of the specified object.
Properties
length
Methods
item , urns
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
embeds Collection Members
Retrieves a collection of all EMBED objects in the document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
filters Collection Members
Retrieves the collection of filters that have been applied to
the object.
Properties
length
Methods
item
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
forms Collection Members
Retrieves a collection, in source order, of all FORM objects in
the document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
images Collection Members
Retrieves a collection, in source order, of IMG objects in the
document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
links Collection Members
Retrieves a collection of all A objects that specify the href
property and all AREA objects in the document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
plugins Collection Members
Retrieves a collection of all EMBED objects within the
document.
Properties
length
Methods
item , tags
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
scripts Collection Members
Retrieves a collection of all SCRIPT objects in the document.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
tBodies Collection Members
Retrieves a collection of all TBODY objects in the table.
Objects in this collection are in HTML source order.
Properties
length
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
oncontentready Event ondocumentready Event
Web Workshop | Component Development
ondetach Event
Fires before the behavior is detached from the element.
Syntax
<PUBLIC:ATTACH
EVENT = ondetach
ONEVENT = sEventHandler
FOR = element
ID = sID
/>
Attributes
EVENT
Required. String that specifies the name of a Dynamic HTML (DHTML) event, or
any of the events specific to the HTML Component (HTC) that are listed in the HTC
Reference.
FOR
Optional. String that specifies one of the following values to identify the source of
the event.
document Refers to the document object.
element Default. Refers to the element to which the behavior is attached.
window Refers to the window object.
ONEVENT
Required. String that specifies an inline script or a direct invocation of the event
handler function.
ID
Optional. String that uniquely identifies the ATTACH element within the
component. This attribute is analogous to the ID attribute in DHTML.
Remarks
The ondetach event allows the behavior to perform some cleanup just before it
completely detaches from the element.
Note In cases where a behavior attaches to events on the containing page using the
attachEvent method, this event gives the behavior the opportunity to call the
detachEvent method to stop receiving notifications from the page. A behavior that
attaches to events on the page using the ATTACH element automatically stops
receiving notifications when the behavior detaches from the element, and does not
need to call the detachEvent method when the ondetach event fires.
Example
This example uses the ondetach event to turn off the highlighting effect on a list of
items initially attached to a highlighting behavior.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COMPONENT Element HTC Reference
Web Workshop | Component Development
ATTACH Element
Binds a function to an event, so that the function is called whenever the
event fires on the specified object.
Syntax
<PUBLIC:ATTACH
EVENT = sEvent
FOR = document | element | window
ONEVENT = sEventHandler
ID = sID
/>
Attributes
EVENT
Required. String that specifies the name of a Dynamic HTML
(DHTML) event, or any of the events specific to the HTML
Component (HTC) that are listed in the HTC Reference.
FOR
Optional. String that specifies one of the following values to identify
the source of the event.
document Refers to the document object.
element Default. Refers to the element to which the behavior is attached.
window Refers to the window object.
ONEVENT
Required. String that specifies an inline script or a direct invocation
of the event handler function.
ID
Optional. String that uniquely identifies the ATTACH element within
the component. This attribute is analogous to the ID attribute in
DHTML.
Element Information
Remarks
The ATTACH element is a declarative form of the attachEvent method.
When the specified event fires on the element to which the behavior is
attached, the element's event handler is called first, before the
behavior's. If multiple behaviors are attached to an element and multiple
event handlers are defined for the same event on the same element, the
functions are called in random order, immediately after the element's
event handler is called.
Example
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | DHTML, HTML & CSS
alpha Filter Members
Sets the level of opacity for the visual object.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
blendTrans Filter Members
Fades the visual object into or out of view.
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
blur Filter Members
Causes the object to appear to be in motion.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
chroma Filter Members
Selectively renders a specific color as transparent for the
selected visual object.
Properties
color , enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
dropShadow Filter Members
Paints a solid silhouette of the selected visual object, offset
in the specified direction, thus creating the illusion that the
visual object is floating above the page and is casting a
shadow onto the page.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
flipH Filter Members
Renders the visual object as a mirror image of itself along
the horizontal plane.
Properties
enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
flipV Filter Members
Renders the visual object as a mirror image of itself along
the vertical plane.
Properties
enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
glow Filter Members
Adds radiance around the outside edges of the object,
giving it the appearance of a glow.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
gray Filter Members
Drops the color information from the visual object's color
palette, rendering the object in grayscale.
Properties
enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
invert Filter Members
Reverses the hue, saturation, and brightness values of the
visual object.
Properties
enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
light Filter Members
Simulates the projection of a light source onto the selected
visual object.
Properties
enabled
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
mask Filter Members
Takes the selected visual object, paints the transparent
pixels a specific color, and makes a transparent mask from
its nontransparent pixels.
Properties
color , enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
redirect Filter Members
Converts the object into a DAImage object?that is, an
image that can be manipulated using Microsoft®
DirectAnimation®.
Properties
enabled
Methods
elementImage
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
revealTrans Filter Members
Shows or hides visual objects using one of 23 predefined
transition effects.
Properties
Methods
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
shadow Filter Members
Paints a solid silhouette of the selected visual object along
one of its edges, in the specified direction, creating the
illusion of a shadow around the visual object.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
wave Filter Members
Performs a sine wave distortion of the visual display of the
object along the vertical axis.
Properties
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
Web Workshop | DHTML, HTML & CSS
xray Filter Members
Changes the color depth of the visual object, and renders
the object in black and white, making the visual display look
like a black-and-white x-ray.
Properties
enabled
Did you find this topic useful? Suggestions for other topics?
write us!
I
© 1999 microsoft corporation. all rights reserved. terms of
use .
I
ATTACH Element EVENT Element HTC Referen
Web Workshop | Component Development
COMPONENT Element
Identifies the content of the file as an HTML Component (HTC).
Syntax
<PUBLIC:COMPONENT
NAME = sName
URN = sURN
ID = sID
/>
Attributes
NAME
Optional. String that specifies the name by which the behavior is referred to in the
containing document. This is especially useful when multiple behaviors are
attached to an element, as it allows you to invoke the properties or methods of the
desired behavior from the containing document.
If multiple behaviors are attached to a <SPAN ID="mySpan"> element in a
document, you can use the following syntax to set the delay property of the
behavior named behaviorABC.
mySpan.behaviorABC.delay = 1000;
URN
Required. String, in Uniform Resource Name (URN) format, that uniquely identifies
the component. This allows events to be uniquely identified when multiple
behaviors may be firing events of the same name. When the event is fired, the
event object's srcURN property is set to the URN of the behavior that fired the
event.
ID
Optional. String that uniquely identifies the COMPONENT element within the
component. This attribute is analogous to the ID attribute in Dynamic HTML
(DHTML).
Element Information
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
COMPONENT Element METHOD Element HTC
Web Workshop | Component Development
EVENT Element
Defines an event of the HTML Component (HTC) to be exposed to the containing
document.
Syntax
<PUBLIC:EVENT
NAME = sName
ID = sEventID
/>
Attributes
NAME
Required. String that specifies the name of the event exposed to the containing
document.
ID
Optional. String that uniquely identifies the EVENT element within the component.
This attribute is analogous to the ID attribute in Dynamic HTML (DHTML).
Methods
eventID.fire([oEvent])
Fires the event to the containing document. This method has an optional oEvent
parameter that specifies the event object containing context information.
Element Information
Remarks
By specifying a NAME attribute similar to a standard event already defined for the
element, a behavior can override the element's default behavior.
Events defined for a behavior do not bubble; they only fire on the element to which the
behavior is attached.
Example
This example is derived from a calculator behavior sample. Whenever the result
changes, the HTC fires a custom onResultChange event back to the page, passing the
result as a custom property of the event object.
See Also
Syntax
<PUBLIC:METHOD
NAME = sName
INTERNALNAME = sInternalName
ID = sID
/>
Attributes
NAME
Required. String that specifies the name by which the method is referred to in the
containing document. By default, the NAME specified is also used to refer to the
method within the component, unless an INTERNALNAME attribute is specified.
INTERNALNAME
Optional. String that specifies the name by which the method is referred to within
the component. If no value is specified, the NAME attribute is used by default.
ID
Optional. String that uniquely identifies the METHOD element within the
component. This attribute is analogous to the ID attribute in Dynamic HTML
(DHTML).
Element Information
Remarks
By specifying a NAME attribute similar to a standard method name already defined for
the element, a behavior can override the element's default behavior.
Example
This example uses the METHOD tag to expose the startFlying() method from the HTC
to the containing document.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
METHOD Element element Object HTC Refere
Web Workshop | Component Development
PROPERTY Element
Defines a property of the HTML Component (HTC) to be exposed to the containing
document.
Syntax
<PUBLIC:PROPERTY
NAME = sName
ID = sPropertyID
INTERNALNAME = sInternalName
GET = sGetFunction
PUT = sPutFunction
PERSIST = bPersist
VALUE = vValue
/>
Attributes
NAME
Required. String that specifies the name of the property exposed to the containing
document. By default, the NAME specified is also used to refer to the property
within the component, unless an INTERNALNAME attribute is specified.
ID
Optional. String that uniquely identifies the PROPERTY element within the
component. This attribute is analogous to the ID attribute in Dynamic HTML
(DHTML).
INTERNALNAME
Optional. String that specifies the name by which the property is referred to within
the component. This internal name must be declared globally before it can be
referenced anywhere in the component; otherwise, a scripting error occurs,
indicating that the name is undefined. If no internal name is specified, the NAME
attribute is used by default.
GET
Optional. String that specifies the function to be called whenever the value of the
property is retrieved. A PROPERTY element that specifies a GET attribute without
specifying a PUT attribute is a read-only property.
PUT
Optional. String that specifies the function to be called when the value of the
property is set.
Note The function specified in this attribute must notify the element in the
containing document about the property change by calling the PROPERTY
element's fireChange method. Invoking this method causes the onpropertychange
event to fire on the element in the containing page, with the event object's
propertyName set to the name of the property. A PROPERTY element that
specifies the GET and PUT attributes is a read/write property. Failure to specify a
GET function, when a PUT function is specified, causes the property to be write-
only, which often might not be desired.
PERSIST
Optional. Boolean that specifies whether to persist the property as part of the
page.
VALUE
Optional. Variant that specifies the default value for the property.
Methods
propertyID.fireChange()
Notifies the containing document that the value of the property has changed by
firing the onpropertychange event on the element. If no PUT attribute is
specified on the property, the onpropertychange is automatically fired when the
property is set in the containing document.
Element Information
Remarks
By specifying a NAME attribute similar to a standard property already defined for the
element, a behavior can override the element's default behavior.
Example
This example uses an HTC to create a table of contents that expands and collapses
when the user clicks it. The HTC exposes a child property to the containing document
to indicate which element needs to toggle its display property to achieve the desired
expanding/collapsing effect.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
PROPERTY Element createEventObject Method
Web Workshop | Component Development
element Object
Returns the element to which the behavior is attached.
I
Remarks
All properties, methods, and events of the element are accessible to an HTML
Component (HTC) using this object, or by using the property, method, or event name
directly and not prefixing the name with the element keyword.
Example
This example uses a behavior to implement a table of contents that expands and
collapses when the user clicks it. The HTC attaches to the element's onmouseover
event and sets the color property of the element to red. The color of the element can
be toggled through the style property of the element directly, instead of referring to it
as element.style.
The HTC also sets the cursor property to "hand" to signal the user that the element
can be clicked to toggle visibility of its children.
<SCRIPT LANGUAGE="JScript">
var prevColor;
function Hilite()
{
prevColor = style.color;
element.style.color = "red";
element.style.cursor = "hand";
}
</SCRIPT>
This feature requires Microsoft® Internet Explorer 5 or later. Click the icon below to
install the latest version. Then reload this page to view the sample.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
element Object oncontentready Event HTC Re
Web Workshop | Component Development
createEventObject Method
Creates an event object that can be used when passing event context information to the
EVENT element's fire method.
Syntax
oEvent = createEventObject()
Return Value
Remarks
The same event object cannot be reused in multiple calls to the fire method.
Note All properties of the event object created using createEventObject are
read/write, including those that would be read-only in Dynamic HTML. This allows you
to set properties on the event object from the HTML Component (HTC), before firing
the event.
Example
This example is derived from a calculator behavior sample. When the result changes,
the behavior fires a custom onResultChange event back to the page, passing the result
as a custom property of the event object.
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
createEventObject Method ondetach Event HT
Web Workshop | Component Development
oncontentready Event
Fires when the content of the element, to which the behavior is attached, has been
completely parsed.
Syntax
<PUBLIC:ATTACH
EVENT = oncontentready
ONEVENT = sEventHandler
FOR = element
ID = sID
/>
Attributes
EVENT
Required. String that specifies the name of a Dynamic HTML (DHTML) event, or
any of the events specific to the HTML Component (HTC) that are listed in the HTC
Reference.
FOR
Optional. String that specifies one of the following values to identify the source of
the event.
document Refers to the document object.
element Default. Refers to the element to which the behavior is attached.
window Refers to the window object.
ONEVENT
Required. String that specifies an inline script or a direct invocation of the event
handler function.
ID
Optional. String that uniquely identifies the ATTACH element within the
component. This attribute is analogous to the ID attribute in DHTML.
Remarks
The innerHTML property of the element might not return the correct value until this
event fires.
Example
This example uses the oncontentready event on a page to display the value of the
element's innerHTML property.
<SCRIPT LANGUAGE="JScript">
function show_innerHTML()
{
window.alert ('innerHTML = ' + element.innerHTML);
}
</SCRIPT>
See Also
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
ondetach Event HTC Reference
Web Workshop | Component Development
ondocumentready Event
Fires when the behavior's containing document has been
completely parsed.
Syntax
<PUBLIC:ATTACH
EVENT = ondocumentready
ONEVENT = sEventHandler
FOR = element
ID = sID
/>
Attributes
EVENT
Required. String that specifies the name of a Dynamic
HTML (DHTML) event, or any of the events specific to the
HTML Component (HTC) that are listed in the HTC
Reference.
FOR
Optional. String that specifies one of the following values
to identify the source of the event.
document Refers to the document object.
element Default. Refers to the element to which the behavior is attached.
window Refers to the window object.
ONEVENT
Required. String that specifies an inline script or a direct
invocation of the event handler function.
ID
Optional. String that uniquely identifies the ATTACH
element within the component. This attribute is analogous
to the ID attribute in DHTML.
Remarks
The ondocumentready event fires after all scripts, images,
Microsoft® ActiveX® controls, and all other elements on the
page are completely downloaded.
See Also
Did you find this topic useful? Suggestions for other topics? write
us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
Web Workshop | Component
Development
A Short History of Code Download
Michael Edwards
Also at that time, Java was well on its way to fame and
fortune. Internet Explorer 3.0 was designed to address the
security issues Java raised, which mostly occurred if you
wanted your Java applets to be able to access local
resources.
And then Came Internet Explorer 4.0
The Internet is becoming increasingly important as a
software distribution channel, even though it is vulnerable
to hackers with malicious intent. To help with this, Internet
Explorer 4.0 added features to make it easier for users to
have a secure experience when a Web page wants to
download something. Internet Explorer 4.0 also expanded
on the features for packaging and conducting downloads
expanded. But it accomplished these things by adding new
options not supported by previous versions (which
Downloading Code on the Web discusses in great detail).
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I
StopImage Command | IDM_D... StrikeThrough
Web Workshop | DHTML, HTML & CSS
StrikeThrough Command | IDM_STRIKETHROUGH Command ID
Not supported.
Did you find this topic useful? Suggestions for other topics? write us!
I
© 1999 microsoft corporation. all rights reserved. terms of use .
I