I’m looking for a way to capture HTML of objects that are rendered on rollover. An example would be:
- Mouse over object to get popup
- Press button or key to pause js (to prevent mouse out trigger)
- Right click and inspect element to get HTML
Does anyone know of a way to do this?
yes,
<object onmouseover="functionPopup();" onmouseout="functionWrap();">then place your onkeyup-event to detect the button/key.
The trick is to leave the functionWrap on the object ALONE!!! and OVERWRITE this function functionWrap() (that is referenced by object’s onmouseout) with the updated instructions (this works pretty good crossbrowser -even older ones-, since this uses the traditional event model 😛 ).
Happy tweaking!!