javascript tworzy iframe ze ścisłym typem doctype

Buduję widget, który można osadzić w innych witrynach. Widget jest ramką iframe, która jest tworzona za pomocądocument.write() jednak nie wiem, jak zastosować doctype iframe za pomocą javascript.

Oto mój kod:

document.write("<iframe scrolling=\"no\" frameborder=\"0\">");
document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"   \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
document.write("<html>");
document.write("<head></head><body></body>");
document.write("</html>");
document.write("</iframe>");
document.write("</div>");

Zostanie utworzona ramka iframe, ale nie zastosuję doctype. czy istnieje sposób, aby to zrobić?

Dzięki

questionAnswers(2)

yourAnswerToTheQuestion