In crossrider, I've a function in the background-codes as
function buttonClick() {
alert(2);
// simulates similar behavior as an HTTP redirect
var url = "http://12bubbles.com";
window.location.replace(url);
}
After installing the extension, when buttonClicked() is called, the alert()
did pop up but the redirect doesn't work. Is something wrong with my codes??