1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 6<meta HTTP-EQUIV="Expires" CONTENT="-1"> 7<title></title> 8<script> 9function initial(){ 10 if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("Safari") == -1) //The appName of Safari is Netscape the same as Firefox and mozilla. 11 //setTimeout("window.home();", 1000); //but safari is not support this method 12 parent.parent.location = "http://www.asus.com"; 13 else if(navigator.appName.indexOf("Opera") >= 0) 14 //setTimeout("window.home();", 1000); 15 parent.parent.location = "http://www.asus.com"; 16 else if(navigator.appName.indexOf("Microsoft") >= 0){ 17 //window.open("about:home"); // Can't open a new window here. Must open it when pressing the link. 18 /*window.opener = null; 19 window.open("", "_self"); 20 window.close();//*/ 21 parent.parent.location = "http://www.asus.com"; 22 } 23 else //So the Safari will re-direct to ASUS. 24 parent.parent.location = "http://www.asus.com"; 25} 26</script> 27</head> 28 29<body onload="initial();"> 30</body> 31</html> 32