Link: onclick attribute

Component ID

2637926

Component name

Link: onclick attribute

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

475

Component created

Component changed

Component body

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

Usage

- 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!

Warning

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!

Dependencies

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