Explore the community Forums Lectora Inspire Tools Questions & Answers How to get Variables from external JS? Reply To: How to get Variables from external JS?

#371454 Score: 0
Profile photo of Darrel Somoza
Darrel Somoza
Member
contributor
friend finder
beginner
intermediate
junior moderator
advanced
wise owl
curious george
profile
209 pts
@Klaatu

Yes, there is. You have to initialize the variable before it can be accessed in Lectora using JavaScript. There are many ways of doing this. As a quick test, on load of the page modify the variable by setting it to equal itself. You should then be able to access it with JS as you did above.