Hi,
I can't seem to get window.location to redirect to another page on a machine with ie5 and win98. the page works fine on a machine with xp and ie6.
here is my code:
<SCRIPT LANGUAGE="Javascript">
function chkDelete(xpara){
if (confirm("Are you sure you want to Delete this Item?") {
window.location.href = "deleteitem.asp?item=" + xpara;
}
else {
alert("Delete cancelled"
}
}
</SCRIPT>
in the body i use:
response.write "<a href='#' onclick='chkDelete(" & i & "'><img src='graphics/trash_transwh.gif' border=0></a>"
I tried using a complete URL and that didn't work.
I tried using window.location.href and that didn't work.
Has anyone seen this or know of a fix?
Thanks in advance.
JTDuckman
I can't seem to get window.location to redirect to another page on a machine with ie5 and win98. the page works fine on a machine with xp and ie6.
here is my code:
<SCRIPT LANGUAGE="Javascript">
function chkDelete(xpara){
if (confirm("Are you sure you want to Delete this Item?") {
window.location.href = "deleteitem.asp?item=" + xpara;
}
else {
alert("Delete cancelled"
}
}
</SCRIPT>
in the body i use:
response.write "<a href='#' onclick='chkDelete(" & i & "'><img src='graphics/trash_transwh.gif' border=0></a>"
I tried using a complete URL and that didn't work.
I tried using window.location.href and that didn't work.
Has anyone seen this or know of a fix?
Thanks in advance.
JTDuckman