This is another Javascript code tidbit, but I thought it might be interesting to show how it can be used in Wick specifically. To get a user’s current web address with Javascript, you just need some code like this:
myURL = window.location.href;
To demonstrate how this works, I made this simple Wick project:
detectURL.wick (1.8 KB)
Try opening this Wick project from different versions of Wick Editor:
Normal editor ( editor.wickeditor.com
)
Test editor ( test.wickeditor.com
)
Alpha editor ( alpha.wickeditor.com
)
Each time you run it in a different version, the project will tell you which web address you visited from.
Admittedly this is…only really useful if you’re planning on exporting HTML files and then hosting them on other sites. But even if you don’t end up having a use for it, it’s still kind of neat to know about.