cbreemer
Bronze Coder
I have a page with an <embed> element that is displaying PDF files:
It works great but for some arcane reason I cannot put an
To overcome this I had overlayed the
Bit of a conundrum. Why can't I have it both ways ?
Anybody know why
<embed id="Preview" type="application/pdf">
It works great but for some arcane reason I cannot put an
onClick
handler on this element. Well I can, but the function is never called.To overcome this I had overlayed the
<embed>
with an <a>
element and put the click handler on that anchor. This works beautifully, only I just noticed that now the mouse wheel no longer works to scroll the PDF. Bit of a conundrum. Why can't I have it both ways ?
Anybody know why
<embed>
does not execute its mouse handler ? I would assume it's doing its own handling, but nothing at all happens when I click the mouse in it, so they might as well have let the event bubble up. Hmmm 🤔