noscript

< html‎ | elements
Jump to: navigation, search

noscript

This article is Almost Ready.


W3C Recommendation

Summary

The HTML NoScript Element (<noscript>) defines a section of html to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.


Overview Table

DOM Interface HTMLElement

The noscript element should not be visible if scripting is enabled in the browsers. It is used to present different contents and guide the user on what he should be seeing.


HTML information

Closing Tag required
CSS Display inline

Members

The noScript object has these types of members:


Events

The noScript object has these events.

Event Description
onabort Fires when the user aborts the download.
onafterupdate Fires on a databound object after successfully updating the associated data in the data source object.
onbeforecopy Fires on the source object before the selection is copied to the system clipboard.
onbeforeupdate Fires on a databound object before updating the associated data in the data source object.
oncellchange Fires when data changes in the data provider.
onchange Fires when the contents of the object or selection have changed.
ondataavailable Fires periodically as data arrives from data source objects that asynchronously transmit their data.
ondatasetchanged Fires when the data set exposed by a data source object changes.
ondatasetcomplete Fires to indicate that all data is available from the data source object.
onerror Fires when an error occurs during object loading.
onerrorupdate Fires on a databound object when an error occurs while updating the associated data in the data source object.
onfilterchange Fires when a visual filter changes state or completes a transition.
oninput Occurs when the text content of an element is changed through the user interface.
onlayoutcomplete Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document.
onload Fires immediately after the client loads the object.
onreadystatechange Fires when the state of the object has changed.
onreset Fires when the user resets a form.
onresize Fires when the size of the object is about to change.
onrowenter Fires to indicate that the current row has changed in the data source and new data values are available on the object.
onrowexit Fires just before the data source control changes the current row in the object.
onrowsdelete Fires when rows are about to be deleted from the recordset.
onrowsinserted Fires just after new rows are inserted in the current recordset.
onselect Fires when the current selection changes.

 

Methods

The noScript object has these methods.

Method Description
addBehavior Attaches a behavior to the element.

This method is not supported for Metro style apps using JavaScript.

applyElement Makes the element either a child or parent of another element.
clearAttributes Removes all attributes and values from the object.
componentFromPoint Returns the component located at the specified coordinates via certain events.
doScroll Simulates a click on a scroll bar component.
fireEvent Fires a specified event on the object.
getAttributeNode Retrieves an attribute object referenced by the attribute.name property.
getAttributeNodeNS Gets an attribute object that matches the specified namespace and name.
getAttributeNS Gets the value of the specified attribute within the specified namespace.
getElementsByClassName Gets a collection of objects that are based on the value of the CLASS attribute.
getElementsByTagNameNS Gets a collection of objects that are based on the specified element names within a specified namespace.
hasAttribute Determines whether an attribute with the specified name exists.
hasAttributeNS Determines whether an attribute that has the specified namespace and name exists.
hasAttributes Determines whether one or more attributes exist for the object.
msMatchesSelector Determines whether an object matches the specified selector.
normalize Merges adjacent DOM objects to produce a normalized document object model.
removeAttributeNode Removes an attribute object from the object.
removeAttributeNS Removes the specified attribute from the object.
removeBehavior Detaches a behavior from the element.
replaceAdjacentText Replaces the text adjacent to the element.
setActive Sets the object as active without setting focus to the object.
setAttributeNode Sets an attribute object node as part of the object.
setAttributeNodeNS Sets an attribute object as part of the object.
setAttributeNS Sets the value of the specified attribute within the specified namespace.
setCapture Sets the mouse capture to the object that belongs to the current document.

 

Properties

The noScript object has these properties.

Property Description
animation Gets or sets one or more shorthand values that specify all animation properties (except animation-play-state) for a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animation-name property.
animationDelay Gets or sets one or more values that specify the offset within an animation cycle (the amount of time from the start of a cycle) before the animation is displayed for a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animation-name property.
animationDirection Gets or sets one or more values that specify the direction of play for an animation cycle.
animationDuration Gets or sets one or more values that specify the length of time to complete one cycle of the animation.
animationFillMode Gets or sets one or more values that specify whether the effects of an animation are visible before or after it plays.
animationIterationCount Gets or sets one or more values that specify the number of times an animation cycle is played.
animationName Gets or sets a value that identifies one or more animation names. An animation name identifies (or selects) a CSS @keyframes at-rule.
animationPlayState Gets or sets one or more values that specify whether an animation is playing or paused.
animationTimingFunction Gets or sets one or more values that specify the intermediate property values to be used during a single cycle of an animation on a set of corresponding object properties identified in the CSS @keyframes at-rule specified by the animationName property.
attributes Retrieves a collection of attributes of the object.
backfaceVisibility Gets or sets a value that specifies whether the back face (reverse side) of an object is visible.
breakAfter Gets or sets the column-break behavior that follows a content block in a multi-column element.
breakBefore Gets or sets the column-break behavior that precedes a content block in a multi-column element.
breakInside Gets or sets the column-break behavior that occurs within a content block in a multi-column element.
canHaveChildren Gets a value indicating whether the object can contain child objects.
canHaveHTML Retrieves the value indicating whether the object can contain rich HTML markup.
columnCount Gets or sets the optimal number of columns in a multi-column element.
columnFill Gets or sets a value that indicates how the column lengths in a multi-column element are affected by the content flow.
columnGap Gets or sets the width of the gap between columns in a multi-column element.
columnRule Gets or sets a shorthand value that specifies values for the columnRuleWidth, columnRuleStyle, and the columnRuleColor of a multi-column element.
columnRuleColor Gets or sets the color for all column rules in a multi-column element.
columnRuleStyle Gets or sets the style for all column rules in a multi-column element.
columnRuleWidth Gets or sets the width of all column rules in a multi-column element.
columnSpan Gets or sets the number of columns that a content block spans in a multi-column element.
columnWidth Gets or sets the optimal width of the columns in a multi-column element.
constructor Returns a reference to the constructor of an object.
id Sets or retrieves the string identifying the object.
isContentEditable Gets the value that indicates whether the user can edit the contents of the object.
isDisabled Gets the value that indicates whether the user can interact with the object.
isMultiLine Retrieves the value indicating whether the content of the object contains one or more lines.
msGridColumn Gets or sets a value that specifies in which column of the grid to place the object.
msGridColumnAlign Gets or sets a value that specifies the horizontal alignment of the object within the grid column.
msGridColumns Gets or sets one or more values that specify the width of each grid column within the object.
msGridColumnSpan Gets or sets a value that specifies the number of columns of the grid that the object spans.
msGridRow Gets or sets a value that specifies in which row of the grid to place the object.
msGridRowAlign Gets or sets a value that specifies the vertical alignment of the object within the grid row.
msGridRows Gets or sets one or more values that specify the height of each grid row within the object.
msGridRowSpan Gets or sets a value that specifies the number of rows of the grid that the object spans.
perspective Gets or sets a value that represents the perspective from which all child elements of the object are viewed.
perspectiveOrigin Gets or sets one or two values that represent the origin (the vanishing point for the 3-D space) of an object with an perspective property declaration.
readyState Retrieves the current state of the object.
role Sets or retrieves the role for this element.
scopeName Gets the namespace defined for the element.

This property is not supported for Metro style apps using JavaScript.

tagUrn Sets or gets the URN specified in the namespace declaration.

This property is not supported for Metro style apps using JavaScript.

transformStyle Gets or sets a value that specifies how child elements of the object are rendered in 3-D space.
transition Gets or sets one or more shorthand values that specify the transition properties for a set of corresponding object properties identified in the transition-property property.
transitionDelay Gets or sets one or more values that specify the offset within a transition (the amount of time from the start of a transition) before the transition is displayed for a set of corresponding object properties identified in the transition-property property.
transitionDuration Gets or sets one or more values that specify the durations of transitions on a set of corresponding object properties identified in the transition-property property.
transitionProperty Gets or sets a value that identifies the CSS property name or names to which the transition effect (defined by transition-duration, transition-timing-function, and transition-delay) is applied when a new property value is specified.
transitionTimingFunction Gets or sets one or more values that specify the intermediate property values to be used during a transition on a set of corresponding object properties identified in the transition-property property.

 


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
?
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
?
Yes
1.0
Yes
?
Yes
?
Yes
?
Yes

Examples

View live exampleYou must disable javascript for this to work.

HTML

<script>
    /* Do stuff with JavaScript */
</script>
<noscript>
For full functionality of this site it is necessary to enable JavaScript. Here are the <a href="http://www.enable-javascript.com/" >instructions how to enable JavaScript in your web browser</a>.
</noscript>

Notes

Browsers that don't support the noscript tag will render the content regardless of whether the javascript is supported


Related specifications

Specification Status Related Changes
HTML 5, section 4.3.2 W3C Candidate Recommendation 31 July 2014
HTML 4.01, section 18.3.1 W3C Recommendation 24 December 1999

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]