MediaWiki:Toggle.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
This might be a better solution to get the pointer back
m (Should clear up unnecessary display of URL bar.)
m (This might be a better solution to get the pointer back)
Line 73: Line 73:
     toggle.setAttribute('id', 'toggler' + id);
     toggle.setAttribute('id', 'toggler' + id);
     toggle.setAttribute('onclick', 'javascript:toggler("' + id + '");');
     toggle.setAttribute('onclick', 'javascript:toggler("' + id + '");');
    toggle.setAttribute('style', 'cursor: pointer');
     var child = toggler.firstChild;
     var child = toggler.firstChild;
     toggler.removeChild(child);
     toggler.removeChild(child);