Inconsistent working of html code(Solved)
Posted: Fri Aug 12, 2005 9:24 am
I have got a html file which works fine when run on my local machine.
But when I upload the file to the hosting server and run it from there, it does not work the way it should.
Also try the file at:
http://raghavan20.allhyper.com/temp.html
But when I upload the file to the hosting server and run it from there, it does not work the way it should.
Code: Select all
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Chat Application - Retrieve messages</title>
<script language="javascript">
<!--
function alertDiv(){
//alert (content.innerHTML);
alert (document.getElementById("newDiv").innerHTML);
}
//-->
</script>
<link href="chat1.css" rel="stylesheet" type="text/css" />
</head>
<body onload = 'alertDiv()'>
<div id="newDiv" class="chatWindow" style="margin:200px;">
Hi, all!!!
</div>
</body>
</html>http://raghavan20.allhyper.com/temp.html