This project is not covered by Drupal’s security advisory policy.

Adds an "onclick" attribute to link fields. The attribute is configurable on a per field basis (from the field widget settings form).


- Download and install the module as usual.
- Enable the onclick attribute by editing a link field from the "Manage Fields" page of your content type (or any entity bundle type for that matter).
- Visit the add/edit page for your content type and behold your onclick attribute field!


Giving users access to run any javascript they want from the onclick attribute may not be the most secure thing in some cases. Use sparingly and with caution!


- Link module (version 7.x-1.3 or higher).

Supporting organizations: 
Sponsored Development

Project information