Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Why window.location.hostname, window.location.host codes and showing errors inside Thing services??
Solved! Go to Solution.
In your Things (Server side JScript) window and location do not exist.
if you are doing this in an Expression widget, client side, Window is not allowed.
In your Things (Server side JScript) window and location do not exist.
if you are doing this in an Expression widget, client side, Window is not allowed.
What you mean when you telling 'client side'?
You need the code to run in a Mashup/web page on the user's machine (How you normally expect JS to be used)