I'm not able to do it, i need to modify this script (thats works fine) and add a query string remove function at the end. In other words, when i click on a button link (.modal-close) i need to perform all the function (toggleClass, fadeOut...), wait 1 second and then remove query string from url.
the functions are:
$(function() {
$(".modal-close").click(function() {
$("html").toggleClass("lightbox-is-open");
$("html").toggleClass("lightbox-is-fixed");
$(".dialog-container, .glasspane").fadeOut(200).addClass("hidden");
return false;
});
});
now, i need to remove the query strings, this would be fine?
window.location.href = window.location.href.split('?')[0];
I'm not able to combine all together.. (i'm a very dummy user).
my goal would be a code that's remove query string (".modal-close").click without reload the page, it's possible?
thanks