Skip to content

Instantly share code, notes, and snippets.

@lushone
Created October 24, 2012 02:35
Show Gist options
  • Save lushone/3943379 to your computer and use it in GitHub Desktop.
Save lushone/3943379 to your computer and use it in GitHub Desktop.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready( function(){
if ($.browser.webkit) {
window.location = 'http://www.webkit.org/';
}
else if ($.browser.msie) {
window.location = 'http://intrenet.net/explorer-survey-new/';
}
else if ($.browser.opera) {
window.location = 'http://www.opera.com/';
}
else if ($.browser.mozilla) {
window.location = 'http://www.firefox.com/';
}
else {
window.location = 'http://www.otherbrowsers.com/';
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment