Use Link Tag to Execute Javascript

While we are all familiar with the use of buttons (Submit, Join Now, Click Here) for all manner of executing a form, there is also the possibility of using text to accomplish the same thing. Try this:

<a href=”javascript: executeFunction();”>CLICK ME</a>

You can then have javascript in your <HEAD> section that will accomplish alomost anything.

About emilio

About yay heigh with black hair and brown eyes.
This entry was posted in Technology and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>