// thanks to: http://www.howtocreate.co.uk/tutorials/javascript/eventinfo function bubbleUp(e) { if( !e ) { e = window.event; } if( !e || ( typeof( e.pageX ) != 'number' && typeof( e.clientX ) != 'number' ) ) { return window.alert('Your browser did not pass the required information about the event'); } if( typeof( e.pageX ) == 'number' ) { var xcoord = e.pageX; var ycoord = e.pageY; } else { var xcoord = e.clientX; var ycoord = e.clientY; if ( !( ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) ||( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 && !document.createElement ) || window.navigator.vendor == 'KDE' ) ) { if ( document.documentElement && ( document.documentElement.scrollTop || document.documentElement.scrollLeft ) ) { xcoord += document.documentElement.scrollLeft; ycoord += document.documentElement.scrollTop; } else if ( document.body && ( document.body.scrollTop || document.body.scrollLeft ) ) { xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop; } } } // take the currentTarget.id for example: TableWithBubbleOverflowTable:7:TableWithBubbleOverflowshowBubble // replace the showBubble piece with TableWithBubbleOverflowSelectOne ( the id of the selection element) // we need to trigger a click event on TableWithBubbleOverflowTable:7:TableWithBubbleOverflowSelectOne doClick(document.getElementById(e.currentTarget.id.replace("showBubble","SelectOne"))); // now locate the span element with title=bubble as that is the element that can bring up the popup links = document.getElementsByTagName('span'); for (var i=0; i