<!DOCTYPE html>
<html>
<head>
<title>jQuery ajaxSend() event method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(event){
$("#msg").load('ajaxfile.html');
});
$(document).ajaxSend(function(event, jqXHR, options){
$("#send").text("Requesting file: " + options.url );
});
});
</script>
</head>
<body>
<p id="send"></p>
<button>Click here to call ajaxSend() method</button>
<br /><br />
<div id="msg" style="background-color:pink;">New content updates here</div>
</body>
</html>