I have a php application in which the web page displayed to the user. The page has some links "Edit", "Rename", etc.無法理解元素的<A HREF> tag and javascript call
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?
如果這是你自己的代碼,你可能會知道它 –