Home > front end >  Ordinary button to jump page
Ordinary button to jump page

Time:09-25

1. & lt; Button onClick="window. The open (" you want the jump page") "& gt;
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 page

CodePudding user response:

  • Related