<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/
<TITLE>HTML to Text Test Page</TITLE>
<SCRIPT type="text/javascript" src="test.js"/>
<SCRIPT type="text/javascript">
function onload(){
alert("aaa");
}
</SCRIPT>
</HEAD>
<BODY>
<DIV id="case1">
<P>abc</P>
<P>def</P>
</DIV>
</BODY>
</HTML>
The test.js is located in the same directory as that of the html file.
The alert dialog doesn't appear.
If I remove the line that includes the test.js file, the html file
works, otherwise the alert dialog doesn't appear even if the test.js
is empty.
Thanks in advance.
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/
>
<SCRIPT type="text/javascript" src="test.js"/>
<SCRIPT type="text/javascript">
function onload(){
alert("aaa");
}
</SCRIPT>
</HEAD>
<BODY>
<DIV id="case1">
<P>abc</P>
<P>def</P>
</DIV>
</BODY>
</HTML>
The test.js is located in the same directory as that of the html file.
The alert dialog doesn't appear.
If I remove the line that includes the test.js file, the html file
works, otherwise the alert dialog doesn't appear even if the test.js
is empty.
Thanks in advance.
Comment