rem: var link = document.createElement( "input" ); link.setAttribute( 'type', 'button' ); link.setAttribute( 'onclick', action ); link.setAttribute( 'value', caption ); 
add: /*    var link = document.createElement( "input" ); link.setAttribute( 'type', 'button' );*/ /* link.setAttribute( 'onclick', action ); */ /* Above doesn't work on ie. You need to use something like * link.onclick = function() { alert( 'pouet' ); }; * instead ... conclusion: IE is crap */ /* link.setAttribute( 'value', caption );*/  var d = document.createElement( 'div' ); d.innerHTML = "<input type='button' onclick='"+action+"' value='"+caption+"' />"; /* other IE work around  ... still crap. Use double quotes only in action */ var link = d.firstChild; 
context: function create_button( caption, action ){    var link = document.createElement( "input" );    link.setAttribute( 'type', 'button' );    link.setAttribute( 'onclick', action );    link.setAttribute( 'value', caption );    return link;}
meta: 2294	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2294/610ac485f763ba73af5065423814cbd1fa9131b2/vlm.js/clean/share/http/js/vlm.js