Ⅰ javaScript中的Document对象的方法都有哪些
document的方法如下:(摘自javascript宝典-16章对象和body元素对象)
attachEvent();
captureEvent();
clear();
clearAttributes();
close();
createAttribute();
createComment();
createDocumentFragment();
createElement();
createEvent();
createEventObject();
createRange();
createStyleSheet();
createTextNode();
createTreeWalker();
detachEvent();
elementFrommPoint();
execCommand();
focus();
getElementById();
getElementsByName();
getElementsByTagName();
getSelection();
handleEvent();
hasFocus();
mergeAttributes();
open();
queryCommandEnabled();
queryCommandIndterm();
queryCommandState();
queryCommandSupported();
queryCommandText();
queryCommandValue();
recalc();
releaseCapture();
releaseEvents();
routeEvent();
setActive();
write();
writeln();