I personally strongly believe in using JavaScript for extension , not replacement. With that being said, I leave anchors indicating a “safe” drop in the action that I actually perform using javascript. Simply put:
<a href="/users/create" class="user-create"></a>
Then add (and return false) if javascript was able to successfully load and bind to the element, otherwise provide the user with the opportunity to complete the task if they do not have javascript (either blocked through a plugin, or simply not loaded).
source share