I have a javaScript function that is define in seperate file from asp file like somethingJavascript.js
I want to call that function to my asp file to load up in the cell of a table but somehow it couldn't. I am not quite sure about the syntax that I wrote:
In the top of asp file I have:
<script language="JavaScript" src="somethingJavascript.js">
</script>
Then in the body of asp file
<table>
<tr>
<td valign="top" width="245" height="627"
onload="display()">
</td></tr></table>
The display() function is in the somethingJavascript.js
Any suggestion for the syntax?
Thank you for the help in advance.
I want to call that function to my asp file to load up in the cell of a table but somehow it couldn't. I am not quite sure about the syntax that I wrote:
In the top of asp file I have:
<script language="JavaScript" src="somethingJavascript.js">
</script>
Then in the body of asp file
<table>
<tr>
<td valign="top" width="245" height="627"
onload="display()">
</td></tr></table>
The display() function is in the somethingJavascript.js
Any suggestion for the syntax?
Thank you for the help in advance.