CP8 Question: Can I get the current URL path in a variable?
Hello,
I want to get the current .HTM path and filename into a variable.
An an example would be http://mycompanyserver/training/health_and_safety/infection_prevention.htm
I created a User variable called myurl
On the slide 1 On Exit I used some javascript I found on the internet var myurl = window.location.pathname;
On slide 2 I put a text caption to display the myurl
I published and ran the project from my server.
The result was a blank caption box.
Please could someone suggest what I should be using.
(I do not want to use the Captivate system variable $$cpInfoProjectName$$ as that does not do what I want)
Thank you
Peter
Cardiff (Cold, overcast, windy and rain. A grim day)
Wales
UK.
