在HTML中使用的话当然有区别的。用的脚本javascript。这样这个代码根本没有任何意义,因为HTML中这个用括起来的内容相当于注释。如果想包含文件,可以用
或者用
script language="javascript" src="news.asp">和实现的功能是不是一样?并且前者还可以这样使用.....
不一样,一个是调用JS,一个是声明。根本就是不同的两个东西。
可以那样用。。。
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
读取最后一行的行号,存放在txtTRLastIndex文本框中