backurl: heytapbrowser://main/iflow?sub_target=only_enter_iflow
1、HTML:
changeDiv {
background: #eee;
color: #093;
height: 200px;
}
JavaScript:
function selectAnchor(element) {
document.getElementById(element).className = ‘changeDiv’;
}
2、javascript:
①、window.location.href方式
// 以下方式定时跳转 setTimeout("javascript:location.href='hello.html'", 5000);
//backurl: heytapbrowser://main/iflow?sub_target=only_enter_iflow
②、window.navigate方式跳转
window.navigate("target.aspx");
③、window.loction.replace方式
//backurl: heytapbrowser://main/iflow?sub_target=only_enter_iflow
window.location.replace("target.aspx");
④、self.location方式
self.location='target.aspx';
⑤、top.location方式
top.location='target.aspx';
⑥、返回方式
alert("返回");
window.history.back(-1);