I'm trying to write entries to the console that would contain links to trigger javascript functions upon clicking on them:
console.log(javascript:alert('Hello World'););
console.log(<a href=javascript:alert('Hello World');/>test</a>);
console.log([DisplayObject 'Hello World' <a href=javascript:alert('Hello World');>reveal</a>]);
All these attempts fail.
Is there any way to print it similarly to an http://... link, like so...
... only, have the text linked to a javascript statement or function instead?
The reason I'm doing this is to be able to quickly reveal which items on the screen are tied to a specific log entry (example: Making a CreateJS sprite scale-up when the log entry is clicked on).