View Single Post
Old Nov 21st, 2005, 7:09 PM   #1
aznluvsmc
Hobbyist Programmer
 
Join Date: Aug 2005
Posts: 137
Rep Power: 4 aznluvsmc is on a distinguished road
HTML page not reading external Javascript file

Hi,

My HTML page is not reading my external javascript file. I don't see anything I did wrong in the declaration so I'm stumped. Can someone spot something I don't see?

<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
	<link rel='stylesheet' href='mystyle.css' type='text/css' media='screen' />
	<script type='text/javascript' src='myscript.js'></script>
	<title>Javascript Test</title>
</head>

<body onload='loaded()'>

The loaded function just has an alert box that pops up with some text which I was using to test the Javascript functionality. I've verified that the javascript file exists with the proper .js extension in the current directory. Javascript is enabled on my browser as I've tested local code to ensure it works. I'm having the problem on both IE and Firefox.
aznluvsmc is offline   Reply With Quote