praveenmmoha...@gmail.com wrote:
Hi...,
I removed all the JavaScript code & put it in a file called abc.js from
a HTML page. Now I tried to refer it in the HTML page like this :
<script src="abc.js" type="text/javascript">
</script>
It gives me "Object Expected" error. Where should the abc.js reside in
the Web Project.
That depends on what your script does. Judging from your error
message, you're using IE. Using Firefox will give you better error
messages most of the time.
Was it working before you moved it to an external javascript file? If
so, then yes, it should be just a matter of placing it in the correct
location. Preferably in the same area where you removed your script.
If not, then you need to debug your script.