SAPO::Utility.Url->currentScriptElement

This method will return last loaded script tag element. This method should be used in widgets files to known, for example, the current script source.

This is static method.

Syntax

SAPO.Utility.Url.currentScriptElement()

Compatibility

All browsersYes

Depends

Input Parameters

Sample

 http://js.sapo.pt/SAPO/Utility/Url/sample/

Example

alert(SAPO.Utility.Url.currentScriptElement().src); 

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found