javascript - 如何在按钮的帮助下重定向网页
问题描述
<div class="navbar">
<a>
<div class="grid__item theme-1">
<button class="action"></button>
<button class="particles-button">Home</button>
</div>
</a>
</div>
在此效果应用中,效果完成后如何重定向它?
解决方案
<button onclick="window.location.href='https://google.com'">Go to link</button>
推荐阅读
- coldfusion - 如何修复在cfspreadsheet中存储为文本的数字
- azure - 在泛化之前创建了 Azure VM 的映像,但无法启动该 VM
- netsuite - 如何将变量分配为其他变量的差异?
- c# - C# 连接到 LDAP(Windows 服务器)
- angular - Angular 7.1.3:发布不适用于授权持有者令牌
- node.js - MongoDB 只更新对象中更改的字段,而不是替换整个对象
- apache-nifi - Nifi ConvertAvroToJSON--数字类型错误
- azure - Azure iot sdk c 示例:CMakeLists.txt 有效,但 make (Autotools) 无效
- install4j - 如何允许多个卸载程序在同一目录中独立工作?
- python - 在梯度检查中,我们是否在 theta 和常数参数 b 中添加/减去 epsilon(一个很小的值)?