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...
How to Use the Void Function
Void in computer jargon means to not do something. When void is used in a function statement it tells the function to...