I have the following code and it's working but i want to use ( <a> ) tag instead of ( <input type='submit'> ). I am a beginner in php - I hope my question will be entertained. I have googled my problem but it didn't help me.
<html>
<head>
    <script type="text/javascript">
        function load(thediv, thefile)
        {
            //alert('works');
            if(window.XMLHttpRequest)
            {
                xmlhttp = new  XMLHttpRequest();
            }
            else
            {
                xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
            }
            xmlhttp.onreadystatechange = function(){
            if(!(xmlhttp.readystate == 4 && xmlhttp.status == 200))
            {
                    // alert('works');
                    document.getElementById(thediv).innerHTML = xmlhttp.responseText;
            }
            }
            xmlhttp.open('GET', thefile, false );
            xmlhttp.send();
        }
    </script>
</head>
<body>
    <input type='submit' value="submit" onclick='load('main','itc_result.php');'>
</body>
 
     
     
    