location.replace
HeyHvordan sætter jeg en location.replace på dette script, så mine brugere ikke kan gå tilbage i history hvis where == "gemkladde". Altså hvis where == "gemkladde" skal target være en location.replace på en eller anden måde.
function setAction(which,where) {
if ( where == "preview.php" ) {
which.target = "_self";
} else if ( where == "gemkladde.php" ) {
which.target = "_self";
} else {
which.target = "_self";
}
which.action = where;
which.submit();
}
