How would i go with triggering an alarm or parse it in the html file after writing a js cookie without reloading the page first?
I've tried $(window).bind("load", function ()
but with no success, the alarm still doesn't trigger without reloading the page, but the cookie is written
My JS
$(".addCookie").on("click", function() {
Cookies.set("cookie", "added"); //adds cookie
})
$('.cookie').html(Cookies.get("cookie")); //writes the cookie in the html file