Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Javascript not running with HTML code


birdbrain - 9:59 pm on Oct 31, 2012 (gmt 0)


Hi there alleria21,

try it like this...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>The American Eggplant Society</title>

<script type="text/javascript">
function init(){
document.getElementById('last-modified').firstChild.nodeValue=document.lastModified;
}
window.addEventListener?
window.addEventListener('load',init,false):
window.attachEvent('onload',init);
</script>

</head>
<body>

<h1>The American Eggplant Society</h1>
<p>
Welcome to our site. Unfortunately, it is still
under construction.
</p><p>
We last worked on it on this date:
<span id="last-modified">&nbsp;</span>
</p>

</body>
</html>


birdbrain


Thread source:: http://www.webmasterworld.com/javascript/4514383.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com