views:

30

answers:

1

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?

+3  A: 

I don't think it's possible to change the page mode from within the page. Sorry.

Anthony Mills