SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- function eventlistener() {
- var bns = document.getElementsByTagName('button');
- for (var i = 0; i < bns.length; i++) {
- bns[i].addEventListener('click', function() {
- bns[i].value(bns[i].getAttribute("data-text").toString);
- },false);
- }
- }
- window.addEventListener("load",function() {
- eventlistener();
- });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.