js.removeNS: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{Experimental}} {{MacroFunction |name=js.removeNS |version=1.10.0 |description= Removes a javascript namespace. If the targetd namespace is trusted, this must be run from a...")
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
js.removeNS(namespace)
js.removeNS(namespace)
</source>
</syntaxhighlight>


'''Parameters'''
'''Parameters'''
Line 20: Line 20:
|example=
|example=
Using {{code|js.eval}} on an {{code|expression}}.
Using {{code|js.eval}} on an {{code|expression}}.
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: removeNS("demo")]
[r: removeNS("demo")]
</source>
</syntaxhighlight>





Latest revision as of 23:59, 15 March 2023

 This article describes a feature or macro function that is experimental and may be subject to change.

js.removeNS() Function

Introduced in version 1.10.0
Removes a javascript namespace. If the targetd namespace is trusted, this must be run from a trusted context.

Usage

js.removeNS(namespace)

Parameters

  • namespace - The namespace to remove.

Example

Using js.eval on an expression.
[r: removeNS("demo")]

See Also