Inserts a soft line break into a block of NOBR text.
Members Table
The following table lists the members exposed by the
wbr
object. Click a tab on the left to choose the type of member you want to view.
Attributes/Properties
| Attribute | Property | Description |
|---|
| canHaveHTML |
Sets or retrieves the value indicating whether the object can contain rich HTML markup. |
| ID | id |
Retrieves the string identifying the object. |
| isContentEditable |
Retrieves the value indicating whether the user can edit the contents of the object. |
| isDisabled |
Retrieves the value indicating whether the user can interact with the object. |
| isMultiLine |
Retrieves the value indicating whether the content of the object contains one or more lines. |
| outerHTML |
Sets or retrieves the object and its content in HTML. |
| outerText |
Sets or retrieves the text of the object. |
| parentElement |
Retrieves the parent object in the object hierarchy. |
| scopeName |
Retrieves the namespace defined for the element. |
| tagUrn |
Sets or retrieves the Uniform Resource Name (URN) specified in the namespace declaration. |
Behaviors
| Behavior | Description |
|---|
| clientCaps |
Provides information about features supported by Microsoft® Internet Explorer, as well as a way for installing browser components on demand. |
| download |
Downloads a file and notifies a specified callback function when the download is complete. |
| homePage |
Contains information about a user's homepage. |
Collections
| Collection | Description |
|---|
| behaviorUrns |
Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the element. |
Methods
| Method | Description |
|---|
| addBehavior |
Attaches a behavior to the element. |
| componentFromPoint |
Returns the component located at the specified coordinates via certain events. |
| fireEvent |
Fires a specified event on the object. |
| getAttribute |
Retrieves the value of the specified attribute. |
getAttributeNode |
Retrieves an attribute object referenced by the attribute.name property. |
normalize |
Merges adjacent TextNode objects to produce a normalized document object model. |
| removeAttribute |
Removes the given attribute from the object. |
removeAttributeNode |
Removes an attribute object from the object. |
| removeBehavior |
Detaches a behavior from the element. |
| scrollIntoView |
Causes the object to scroll into view, aligning it either at the top or bottom of the window. |
| setAttribute |
Sets the value of the specified attribute. |
setAttributeNode |
Sets an attribute object node as part of the object. |
Objects
| Object | Description |
|---|
| currentStyle |
Represents the cascaded format and style of the object as specified by global style sheets, inline styles, and HTML attributes. |
Styles
| Style attribute | Style property | Description |
|---|
| behavior | behavior |
Sets or retrieves the location of the Introduction to DHTML Behaviors. |
Remarks
A soft line break is a point inside a NOBR section at which a line break is permitted but not required.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is not rendered.
This element does not require a closing tag.
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>
Standards Information
object is an extension to
HTML
.
See Also
br