Link to home
Start Free TrialLog in
Avatar of LAMASE
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
Avatar of Badotz
Badotz
Flag of United States of America image

Wht don't you just add a DOCTYPE to the page?
Avatar of LAMASE
LAMASE

ASKER

obviously i can't control the page, only the js ;)
ASKER CERTIFIED SOLUTION
Avatar of Badotz
Badotz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial