<html> <head> <script type="text/javascript"> var ajax=false; if(window.XMLHttpRequest) { ajax=new XMLHttpRequest(); }else{ ajax=new ActiveXObject("Microsoft.XMLHTTP"); } function grab_data(data_source,div_id) { var ob=document.getElementById(div_id); ajax.onreadystatechange=function() { if(ajax.readyState == 4&& ajax.status == 200) { ob.innerHTML=ajax.responseText; } } ajax.open("get",data_source); ajax.send(null); } </script> <title></title> </head> <body> <form> <input type="submit" value="Go ahead" önClick="grab_data('file.txt','div_left')"/> </form> <div align="center" id="div_left">When you click on the button this line will be change .</div> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)