apparition
Technical User
Right now, I have a script that loops through the links array and searches the href attribute of each link for a specific value. If it finds it, the href attribute for that link is changed to a javascript function call. I would much rather use the onClick event handler to call the function but I can't set it without actually typing "onClick='function call'" in the A tag. Is there a way to set it without actually typing it out?