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
VB equation is slightly off
Default Printer Changes using Terminal Server
Sql Express 2008 Client connectivity tools
Script to email newly created computers. Need to add groups & users accounts also.
Remove exchange connection in Outlook
SQL query on a financial reporting table
How to add scriptaculous to Wordpress Site?
Using SpamAssassin's Command-line Spam Score Test
WMIC Get Hard drive serial number
SBS 2008 Small Business Server Internet Activity