1. 首页
  2. 数据库
  3. 其它
  4. JS给按钮添加跳转功能类似a标签

JS给按钮添加跳转功能类似a标签

上传者: 2020-12-23 03:12:54上传 PDF文件 24.29KB 热度 14次
方法 [removed].href = "要跳转的URL"; 或 [removed] = "要跳转的URL"; 或 location = "要跳转的URL"; 示例 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>给按钮添加跳转功能【类似a标签】</title> [removed] [removed] = function(){ document.getElementById("b
下载地址
用户评论