JSFiddle - React, Tailwind, and code Playground
HTML
<a id="test" href="http://jsfiddle.net/5QLt7/1/">Test</a>
JavaScript
$(function () {
$("#test").click(function (e) {
var lnk = $(this);
if (lnk.data("checked") != true) {
var notice = $('<a href="#">Continue</a>');
$('body').append(notice);
notice.click(function (e) {
lnk.data("checked", true);
lnk[0].click();
return false;
});
return false;
}
// alert("should navigate now");
});
});