3
function goHome() {
if (window.home) { // NS
window.home();
}
else { // IE and Google Chrome
if (navigator.appVersion.split("MSIE")[1] <= 7) { // IE 4-7
window.location = "about:home";
}
else if (window.location.href) { // Google Chrome
window.location.href = "??????????"; // <<-- what is the built-in
} // link for the home button
else { // IE 8, 9
// ...
}
}
}
但是,我不知道谷歌浏览器中的主页按钮的内置链接。有人有想法吗?如何转发到浏览器的家(谷歌浏览器)
PS。 JavaScript代码不完整,只是一个片段!
太糟糕了。但是,感谢您的快速响应! – 2011-01-28 12:45:08