can someone explain this bit of code?
<script type="text/javascript"><!--
$('#button-confirm').bind('click', function() {
$.ajax({
type: 'get',
url: 'index.php?route=hybrid_directory/confirm',
success: function() {
location = '<?php echo $continue; ?>';
}
});
});
function formSubmit()
{
document.getElementById("freecontactform").submit();
}
//--></script>
button-confirm, when clicks submits the information from a php contact form. how is url and function - location used?