Things You'll Need
- Text editor
Open the document in any text editor.
Replace the links with the pound symbol (#) with the syntax "<a href="#"'>."
Add the "return false" declaration to the statement. The entire link reference would look like:
<a href="a" onClick="callFunction();return false;">Link</a>
Replace "callFunction()" with the name of your function.
Save and close the file.
The onClick event is triggered, or fired, whenever an HTML element on a page is clicked by the user. By defining an...