i'm passing the asp parameters using the url
current page is files.asp
and I'm using window.location .href=files.asp ?action=deletef ile to pass the
action to the serverside
My code never got executed (like the page was cached) unless i put
document.write( "") before the window.location directive.
Can anyone explain?
Here's the code:
function confirmDelete(x ){
var potvrda=confirm ("Kliknite OK za brisanje. Cancel za povratak.");
if (potvrda==true) {
trans="files.as p?action="+x;
document.write( "")
window.location .href=trans;
}
else {}
}
current page is files.asp
and I'm using window.location .href=files.asp ?action=deletef ile to pass the
action to the serverside
My code never got executed (like the page was cached) unless i put
document.write( "") before the window.location directive.
Can anyone explain?
Here's the code:
function confirmDelete(x ){
var potvrda=confirm ("Kliknite OK za brisanje. Cancel za povratak.");
if (potvrda==true) {
trans="files.as p?action="+x;
document.write( "")
window.location .href=trans;
}
else {}
}
Comment