doucheng2053 2013-01-11 11:53
浏览 25

无法理解<A HREF>标记和javascript调用

I have a php application in which the web page displayed to the user. The page has some links "Edit", "Rename", etc.

When the user clicks on the link a dialogbox prompts. The dialogbox is nothing but a HTML <div> form that gets instantly displayed when the user clicks on the "Rename" or "Edit" link.

When I looked at the html source code (i.e. view -> source in Internet Explorer) I found the following Javascript and HTML code

<a class="update renameButton" href="javascript:void(0);">Rename</a>

I'm unable to understand how the dialogbox gets promted with the above code.

I expected the code to be something like the following:

<a class="update" onclick='rename();' href="javascript:void(0);">Rename</a>

Can someone help me understand this?

  • 写回答

4条回答 默认 最新

  • drgzmmy6379 2013-01-11 11:56
    关注

    Some JavaScript loaded from a <script> element probably binds an event handler function to the element.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题