How to pass entire URL as a variable
October 6, 2008 12:00 AM
I'm not sure if this is what you're after but you can load the full URL of the current page using the following line of javascript in an External HTML object:var queryString = document.location.href;Var_url.set(queryString);The first line loads the current URL string into a javascript variable called queryString. The second line loads the URL string into Lectora variable _url which you can then use to display the URL on another screen.I use this basic approach to pass multiple variable values between courses by breaking down the queryString. You may be able to abbreviate the code to the following but I haven't tried it so I can't guarantee it will work:Var_url.set(document.location.href);regardsGrant
Discussions have been disabled for this post