Please could someone take a look at these two methods of calling "cookies.js" and tell me why the second is not working.
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Page Title</title> <script type="text/javascript" src="js/cookies.js" /> </head> <body onload="checkCookie()"></body> </html>I was under the impression that the <link> tag was the more appropriate. I recall reading something about it in an XHTML tutorial but can't seem to make it work.Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Page Title</title> <link type="text/javascript" href="js/cookies.js" /> </head> <body onload="checkCookie()"></body> </html>
Can anyone shed any light on this.
Thanks,
dog



Reply With Quote


Bookmarks