Analyzing DOM Event via Firebug :hover
I have an issue I'm trying to debug, and normally I would use Firebug's awesome :hover status toggle (under the "style" dropdown tab on开发者_如何学Go the right). However, In this case I need to inspect the DOM an element Y that is being dynaimcally generated by javascript when element X is hovered. Toggling Firebug's ":hover" option under the style tab is not locking the DOM and I can't get element Y to be visible for inspection. Any help please?
Call the onmouseover event handler manually from the Firebug console. (Most javascript frameworks provide shortcuts for this, e.g. if you use jQuery for hover handling, you can just say $('#some-element').trigger('mouseover')
(or possibly mouseenter
, though probably both work).)
精彩评论