clear (NamespaceContextImpl - JavaScript)
Removes all namespaces.
Defined in
NamespaceContextImplSyntax
clear() : void
Examples
This buttononclick
event
removes all namespaces. The namespace context and display area are
global objects.if(sessionScope.ns != null) {
sessionScope.ns.clear();
requestScope.msg = "Namespaces cleared";
} else {
requestScope.msg = "No namespaces";
}