Used to replace the output of a mcs:script element when no script variant is available, when a device does not support scripting, or when the user has disabled scripting.
mcs:noscript can appear anywhere on an XDIME 2 page, however, it must be placed after the mcs:script element to which it refers.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
idref | The identifier of the script element to be replaced. If the attribute is not specified, then the element provides alternative markup for use when a device does not support scripting, or when the user has disabled scripting. If the attribute is specified, then the element provides alternative markup for use when the selected script cannot be processed by the targeted device. | xs:string | none | optional |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs">
<head>
<title>mcs:noscript</title>
<mcs:script src="/script.mscr" srctype="application/vnd.volantis.mcs-script" id="my-script"/>
<mcs:script src="../script.js" srctype="text/javascript"/>
</head>
<body>
<p>Welcome</p>
<mcs:noscript idref="my-script">
<p>No script variant is available.</p>
</mcs:noscript>
<mcs:noscript>
<p>The device does not support scripting, or the user has disabled scripting.</p>
</mcs:noscript>
</body>
</html>