Microsoft
Software
Hardware
Network
Question : javascript redirect when onunload
I'd like my page to redirect a user to a specific page onunload. Like this:
<body onUnload="window.location = '
http://www.google.com/'
">
but this doesn't really seem to be working. Any ideas?
Thanks
Answer : javascript redirect when onunload
first try this:
<body onunload="alert('sad')">
if got alert then it should work.
<script>
function Redirect() {
var where=URL TO BE REDIRECTED TO;
window.location=where;
}
</script><body onUnLoad="Redirect()">
Random Solutions
ZyXel GS-1548 switch
WCF Nested complex types
Exchange Server mail delay.
Show All Records In Query if Nothing Selected in Listbox
Exporting from SQL Server 2005 Table to Flat file with UTF-8 Problem.
get 550 5.7.1. Unable to relay for specific domains....
Trying to reset Konica Minolta Bizhub C220 to factory defaults. How?
Exchange Server 2007 SP3 with Windows 2008 R2
VMWare ESX 4 Update Manager and failing Remediation for certain patches
Hosts file resolution does not work