开发者

how can we add a doctype using javascript

开发者 https://www.devze.com 2023-01-12 05:24 出处:网络
i want to add doctype using开发者_如何学C javascript. when a doctype already exist i am able to modify it. but when it is null, not able to add new doctype.. how can i do it in JSIt is totally useless

i want to add doctype using开发者_如何学C javascript. when a doctype already exist i am able to modify it. but when it is null, not able to add new doctype.. how can i do it in JS


It is totally useless to add the doctype using JavaScript as the doctype will already have been decided before JavaScript gets a chance to add it to the page. Editing or adding a doctype using JavaScript will not cause the page to be rendered using the JavaScript-generated doctype.

0

精彩评论

暂无评论...
验证码 换一张
取 消