1 Reply Latest reply on Nov 6, 2017 2:51 PM by carko RSS
    rmasoud Explorer

    ReferenceError: "window" is not defined



    I am not fairly familar with javascript, but found that I could use the following code to get the current URL of the open webpage.


    var url = window.location.href;


    I am getting an error, "window" is not defined, which I do not understand why.

    Is it part of a library not in Thingworx and if so, how can I import that library into Thingworx?


    Thank you,