⬅︎ Back to setAttribute('style', ...) workaround for IE
Hi Quiquelie,Your code is cool thanks :) i was literally searching for onclick cross browser functionality
Hi, Try this: var closer = document.createElement('a'); a.style.float="left"; a.style.fontWeight="bold"; a.onclick = function() { ... It works on all browsers !! Enjoy it !!
Comment
Hi Quiquelie,
Your code is cool thanks :) i was literally searching for onclick cross browser functionality
Parent comment
Hi, Try this: var closer = document.createElement('a'); a.style.float="left"; a.style.fontWeight="bold"; a.onclick = function() { ... It works on all browsers !! Enjoy it !!