Reputation: 17799
Is there a way to get the content-type of an iframe's content inside the load event handler function attached to it?
Upvotes: 1
Views: 2756
Reputation: 91
i assume this should do the work using jquery
$('iframe').contents().contentType
in the load event this should point to the iframe dom so
$(this).contentType
should work
Upvotes: 2