I’m not sure if this is even possible.
I’ve got the following code;
<a href="javascript:foo();"><iframe src="http://www.domain.com/content.html" width="200" height="50"></iframe></a>
Now, I would have assumed that would’ve hyper-linked the entire iFrame area, however it only hyperlinks the border.
Is it possible to hyperlink the entire iframe area?
no, that’s not valid. you can’t even reliably get a click event off of the element containing the iframe.
e.g.,
notice that if you click the iframe, no alert fires – but if you click anywhere else (in red), it will. if this were otherwise, there’d be abuse…