Hi,
I have a problem with window.location.href in Safari browser.
I have a link:
This ask for a confirmation before deleting a file. It works well under Netscape, IE, Mozilla but not under Safari. When I click on OK to confirm, the confirm window disapears but I'm not redirected to the requested page.
Is there another function than window.location.href that would work under any browser or any hacks to it.
I'm really stuck, can you help me please!
I have a problem with window.location.href in Safari browser.
I have a link:
Code:
function ConfirmDelete(Url, Message)
{
if (confirm(Message))
{
window.location.href=Url
}
}
<a href="#" onClick="ConfirmDelete('DeleteSelection.asp?sType=All&rPage=Portfolio', 'message')" >
This ask for a confirmation before deleting a file. It works well under Netscape, IE, Mozilla but not under Safari. When I click on OK to confirm, the confirm window disapears but I'm not redirected to the requested page.
Is there another function than window.location.href that would work under any browser or any hacks to it.
I'm really stuck, can you help me please!