Is is possible to set the MIME type for an iFrame dyanamically with JavaScript? Same question for DIV?
No.
The MIME type is determined by what you load into it.
For a frame that will be whatever the src
specifies.
Divs don't load external content so don't have MIME types.