I have a web page that when it loads a confirm box opens likes this:
The problem is, that on one person's computer, when the page loads the confirm box does not pop up and it automatically goes to the location.href redirection.
Could the browser be remember this person'a answer and just going to the "Else" line? I'm not sure how it is possible that this only happens on one user's computer.
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.
Code:
var agree = confirm("This is the confirm text.");
if (agree)
{
return true;
} else {
window.location.href = "[URL unfurl="true"]http://www.google.com";[/URL]
}
The problem is, that on one person's computer, when the page loads the confirm box does not pop up and it automatically goes to the location.href redirection.
Could the browser be remember this person'a answer and just going to the "Else" line? I'm not sure how it is possible that this only happens on one user's computer.
Information is not Knowledge, Knowledge is not Wisdom, Wisdom is not Truth, Truth is not Beauty, Beauty is not Love, Love is not Music, Music is the best.