removeJS Method

Summary

Helper method to dynamically remove a JS file previously loaded from the script section of the current document.

Syntax
TypeScript
JavaScript
removeJS = function( 
   fileName 
) 
static removeJS( 
   fileName: string 
): void; 

Parameters

fileName

Path to the JS file to remove.

Remarks

This method works by enumerating the script tags in the current document for a matching fileName, if the item is found then it is removed from the document. If the item is found, then nothing is done.

Requirements

Target Platforms

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.