I used JS in a html document to change inner html of a table cell but when i click link, only one moment it changes and then the page returns to its previous state like it was loded first!!! i uploded files on internet but problem not solved.
this happens at Opera and Firefox but IE7 works well and changes are stable.
JS code i used:
[CODE]
<html>
<head>
<title>آزمون آنلاين</title>
<script type=”text/javascript” language=”javascript”>
function LoadQs(CourseParam)
{
var Title = document.getElementById(‘TitleCell’);
if (CourseParam == 0)
Title.innerHTML = “ويژوال بيسيك”;
else if (CourseParam == 1)
Title.innerHTML = “ويژوال بيسيك”;
return;
}
</script>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8;charset=utf-8″/>
<meta name=”keywords” content=”مجازی ، آموزش ، علمی, آزمون” />
<meta name=”keywords” content=”portal , Virtual Learning , Virtual , Education “/>
<link href=”Style.css” type=”text/css” rel=”stylesheet” />
</head>
Event that changes inner html or text:
[CODE]
<li><a href=”” onClick=”LoadQs(0)”>مباني شبكه</a></li>
You can test it online at this address:
click on links located at middle of page:
مباني شبكه
ويژوال بيسيك
Any help appreciated!