I'm use the brute force method to bang myself through learning Javascript. Could somebody PLEASE tell me how the heck I load a page in the SAME window, instead of a new window?
This is the part of the code:
if (pass1 == "password") {
alert('Thank You');
window.open('protectedpage.html');
break;
}
So what do I use instead of window.open?
This is the part of the code:
if (pass1 == "password") {
alert('Thank You');
window.open('protectedpage.html');
break;
}
So what do I use instead of window.open?