Hello all
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?
Hello all
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?
I don't think it's possible to change the page mode from within the page. Sorry.