⬅︎ Back to setAttribute('style', ...) workaround for IE
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 !!
Hi Quiquelie,Your code is cool thanks :) i was literally searching for onclick cross browser functionality
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 !!
Replies
Hi Quiquelie,
Your code is cool thanks :) i was literally searching for onclick cross browser functionality