您好,我在电话间隙的帮助下制作了一个android应用程序,但链接未重定向到其他网站,任何人都可以帮助我
答案 0 :(得分:0)
<script>
function myFunctionopenwindow() {
window.open("https://stackoverflow.com");
}
function myFunctionreplace() {
location.replace("https://stackoverflow.com")
}
</script>
<p>Click the button to open a new browser window.</p>
<button onclick="myFunctionopenwindow()">Try it</button>
<p>Click the button to open a new not browser window. web redirect</p>
<button onclick="myFunctionreplace()">Replace document</button>
<p>Ref.
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open</p>