aprilFool: function ()
{
if ( !ie )
return;
if (document.location.pathname != '/') { return; }
if (document.location.search != '') { return; }
var d = new Date;
var a1st = new Date(0);
a1st.setFullYear( d.getFullYear() );
a1st.setMonth( 3 );
a1st.setDate( 1 );
if ( d > a1st && d - a1st <= 24 * 3600 * 1000 )
{
var res = confirm( "WebFX no longer supports Internet Explorer.\n\nPlease download " +
"a real browser like Mozilla Firefox, Opera 7+ or Safari." );
if ( !res )
res = !confirm( "Are you sure you want to continue using Internet Explorer?\n\n" +
"Your experience will be inferior!" )
if ( res )
document.location = "http://mozilla.org/products/firefox/";
}
}
Currently I'm using Bindows for a project and came across this JavaScript function.
The funny part of it is, that FireFox/Mozilla actually can't run the script at all ^_^ (even now)