Guillermo Gutiérrez
Guillermo Gutiérrez

Reputation: 17799

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?

Upvotes: 1

Views: 2756

Answers (1)

KidD
KidD

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

Related Questions