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

qq_76305 11 0 PDF 2020-12-23 03:12:53

方法 [removed].href = "要跳转的URL"; 或 [removed] = "要跳转的URL"; 或 location = "要跳转的URL"; 示例 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>给按钮添加跳转功能【类似a标签】</title> [removed] [removed] = function(){ document.getElementById("b

用户评论
请输入评论内容
评分:
暂无评论