LAMASE
asked on
Correct invalid doctype with js
I have a script called in a page that generates a div with "position: fixed" (implemented in explorer even before IE7) but it doesn't work because the page doesn't have a doctype, it ignores the position:fixed.
There is a way to set the doctype with javascript?... even "rough" solutions are accepted ;)
(document.doctype is readonly!)
An example page without a doctype is this
http://support.microsoft.com/kb/214081
There is a way to set the doctype with javascript?... even "rough" solutions are accepted ;)
(document.doctype is readonly!)
An example page without a doctype is this
http://support.microsoft.com/kb/214081
Wht don't you just add a DOCTYPE to the page?
ASKER
obviously i can't control the page, only the js ;)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.