4 ms·
I was wondering why my burst of middle-clicking links into tabs didn't actually open those pages. <a href="#" onclick="goToExamp
by neilv 3y ago
I was wondering why my burst of middle-clicking links into tabs didn't actually open those pages.
<a
href="#"
onclick="goToExample('examples/hello-world', 'hello-world', 'assemblyscript', 'en-us')"
>Hello World!</a
>
- afgrant 3y agoEveryone: Please stop using ‘#’ as an href placeholder. Don’t make your ‘<a>’ elements rely on events. If you want to replace their events with others, go for it. But please make them work at the base level.
- subarctic 3y agoLooks like the code is here if you want to send a PR: https://github.com/torch2424/wasm-by-example https://github.com/torch2424/wasm-by-example
- deleted 3y ago[deleted]
- l72 3y agoYes, this killed navigation and pressing back. I was on example 4 in rust, and changed it to c++ to look at the differences. Instead, it showed the intro page in c++ and pressing back does nothing, as the history is completely broken. There was no easy way to jump back to example 4 in rust. I had to change it to rust and click through each example again.