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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly