Very beginner question: How can I make my javascript :onClick event follow a link?
And also maybe display the destination in the status bar?
Okay, I got it. (set! js/window.location.href "http://whereyouwannago.net")
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...
@sova - (fn [e] (do-something) (.stopPropagation e))
as the on-click fn might help.
@kgxsz awesome! that did the trick.
thanks
Also @sova, if you want the destination in the status bar of the browser, use an a
element with href
.