Comment

ramesh

Hi Quiquelie,
Your code is cool thanks :) i was literally searching for onclick cross browser functionality

Parent comment

Quiquelie

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 !!