Hi,
I want to reload page after deleting a row from table, and then display message, below is the javascript code,
if(action == 'delete'){
window.location.reload(true);
//tried to set timeout here, no luck :(
document.getElementById('messageSpan').innerHTML = "The value has been deleted.";
}
It seems that the reload function is executed after the 'messageSpan' content has been changed, so the reload function wipes out the 'messageSpan' content.
I need help
Thanks a lot,
Del