om-next

sova-soars-the-sora 2017-02-13T21:00:24.001251Z

Very beginner question: How can I make my javascript :onClick event follow a link?

sova-soars-the-sora 2017-02-13T21:00:39.001252Z

And also maybe display the destination in the status bar?

sova-soars-the-sora 2017-02-13T21:39:15.001253Z

Okay, I got it. (set! js/window.location.href "http://whereyouwannago.net")

sova-soars-the-sora 2017-02-13T21:39:53.001254Z

But now I have a new question: how can I prevent event cascades? I have a big thing that links to something, a small thing on top of the big thing that links to something, if I click the small thing, I get two actions / changes...

kgxsz 2017-02-13T22:16:58.001256Z

@sova - (fn [e] (do-something) (.stopPropagation e)) as the on-click fn might help.

sova-soars-the-sora 2017-02-13T22:20:53.001257Z

@kgxsz awesome! that did the trick.

sova-soars-the-sora 2017-02-13T22:21:05.001258Z

thanks

kgxsz 2017-02-13T22:21:56.001259Z

Also @sova, if you want the destination in the status bar of the browser, use an a element with href.