Reply To: html code with embedded script

PennController for IBEX Forums Support html code with embedded script Reply To: html code with embedded script

#5865
abraver
Participant

Hi—

I’m trying to implement the code in the above comment, but I’d like to send the result to the log, rather than have the page serve as a gate for people not using headphones.

I’ve tried everything I can think of—for example, setting a newVar inside the function and trying to get that with .log at the end of the trial—but no luck.

How can I get a JavaScript variable from inside a function to be saved to the log?

Thanks in advance.