doujiepin5547 2012-03-23 17:58
浏览 43

网页上的死按钮(JavaScript / HTML)

Does anyone know why a button would stop working? There's an onclick javascript event attached to it, and when I click it, I don't see the alert saying that it has fired. For all intents and purposes, it's dead.

What I am asking is what are some of the causes of this?

I had this happen on a seperate section of the same page, and found I had a curly brace missing, and I have gone through the code where the broken button resides and there is not an issue with the curly braces. I'm not missing semicolons either. I know you all will want to see code, but all I am asking about is if someone has had this happen and what was the cause or what were the causes of it happening.

I've already used http://www.javascriptlint.com to comb through the code.

Thanks, Waddler.

  • 写回答

3条回答 默认 最新

  • douping5015 2012-03-23 18:01
    关注

    This happens in some browsers as they are unable to understand certain versions of javascript. This could be a browser workaround issue. Try testing in multiple browsers.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度