杂项总结

document.formname.inputname //查找表单中的表单项

var img=new Image();//创建一个新的image对象

img.src="/i/eg_smile.gif";


forms[]//表单集合
images[]//图片集合
link[]//链接集合
anchors[]//a标签集合

var sel=document.getElementById('select'); 

sel.selectedIndex//下拉列表项中被选中项索引

sel.options[]//下拉列表项集合

sel.options[sel.selectedIndex];//下拉列表中被选中的项

原文地址:https://www.cnblogs.com/huangshikun/p/7028016.html