Skip to content Skip to sidebar Skip to footer

How To Get Content-type From An Iframe?

Is there a way to get the content-type of an iframe's content inside the load event handler function attached to it?

Solution 1:

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


Post a Comment for "How To Get Content-type From An Iframe?"