javascript within .ASP page

A

Al

Does any one know why the javascript does not work
when the page is an .ASP instead of an html.

I do not have the javascript in the code, what I do
I call it within the .ASP as follow.
<script language='Javascript' SRC='jscripts/jscriptname.js'></script>

The jscript work fine once I rename the page into .htm or html.

Any Idea
TIA
 
T

Tim Williams

asp or html should have no impact on your js code execution. Would
need to see more of the page to determine the actual problem.

Better syntax for including js files is:

<script type="text/javascript" src="jscript/jscriptname.js" />

the "language" attribute has been deprecated for a while now.

Regards,
Tim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,428
Latest member
RosalieQui

Latest Threads

Top