This is an example from w3schools. I tried to execute this in my system, but it does not work.
My file is testajax.html
Code:
text
<html>
<body>
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
Leave a comment: