Reputation: 21641
I want to detect whether a doctype exists for the current document and add one if nothing exists.
I'm able to check whether a doctype exists using document.doctype
. But how can i add one?
Upvotes: 1
Views: 940
Reputation: 8784
I don't think it's possible to change the page mode from within the page. Sorry.
Upvotes: 3