2. & lt; BTN button onClick="()" & gt; Jump & lt;/button>
<script>
The function BTN () {
SetTimeout (" window. The location. Href='https://bbs.csdn.net/topics/jump page ");
}
</script>
3. & lt; BTN button onClick="()" & gt; Jump & lt;/button>
<script>
The function BTN () {
Window. The open (" jump page ")
}
</script>
CodePudding user response:
There is also a target attribute together to jump to the current page or a new pageCodePudding user response: