I made this game using SugarCane:
http://leondaydreamer.itch.io/ghost-are-good-hosts
I rely on links triggered with JavaScript like:
<a href="javascript:state.display('LINKNAME',this);"></a>
It works perfectly in Google Chrome, but it has just been brought to my attention that Firefox or Internet Explorer decides to self-destruct instead. It will display a blank page with the text "[object HTMLDivElement]" on it, rather than... I guess displaying the HTMLDivElement I wanted it to.
The answer might already be out there someplace and I'm looking through everything I can find, but please let me know if you know or can think of a possible solution for this issue.
Thanks a lot!
Comments
Super simple, but super frustrating too!
People familiar with JavaScript probably know this well, but Firefox will accept these kinds of links instead and the void(0) tells the browser to stay on the same page and not go to some weird plain-text alternate universe:
More info on internal links here: http://www.glorioustrainwrecks.com/blog/584?page=3
Wiki link: Anchor element with the data-passage attribute:
I'm not trying to badger you here, but you seem to be going out of your way to do something for which there's an existing standard mechanism.