如何使 window.location 转到同一页面但使用另一个不同的 div 标签(或通过 div id 像这样:href="#id")。
if((mins == 0) && (secs == 0)) {
window.alert("Time is up.Your score is "+score); // change timeout message as required
window.location = "index.html" // redirects to specified page once timer ends and ok button is pressed
} else {
cd = setTimeout("redo()",1000);
}
任何帮助,将不胜感激。提前致谢。