How to get instance URL in UI Action client script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2019 08:26 PM
Hi experts:
I am writing script in UI Action client script.
I want the URL domain in my script.
I have tried "window.location.host", but browser displayed "Cannot read property 'location' of null".
However, if I enter "window.location.host" in browser console, this command works.
Anyone could help?
Labels:
- Labels:
-
Scripting and Coding
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2023 07:29 PM
Well, I sure wish I knew what * this * referred to, so I could best utilize all it's magical properties...