setAttribute
Description
Arguments
attributeName
attributeValue
Examples
<html lang="en"> <body> <button class="cq_click_setAttribute-lang-en_tag-html">Switch to English</button> <button class="cq_click_setAttribute-lang-de_tag-html">Switch to German</button> <button class="cq_click_setAttribute-lang-fr_tag-html">Switch to French</button> </body> </html><a name="link" href="#" target="_blank">This is a link</a> <button class="cq_click_setAttribute--_name-link" data-attributeName="href" data-attributeValue="https://google.com">Change link</button>
Last updated
Was this helpful?