removeJS Method (LTHelper)

Summary

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

Syntax

JavaScript Syntax
removeJS = function(fileName)
TypeScript Syntax
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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools Assembly
Click or drag to resize