<body> <div onclick="fetch_data()">click me</div> <h1 class="result"></h1> </body> <script type="text/javascript"> function fetch_data() { $.post('sometext.txt', function(data) { $('.result').html(data); }); } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)