CODE
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>-->
<title>Download</title>
</head>
<body>
<a href="download.zip" id="download" target="_blank">Download file and redirect to google.com</a>
<script type="text/javascript">
$('#download').click(function() {
window.location = 'http://www.google.com';
});
</script>
</body>
</html>
If i disable the jquery in the head, there will be no redirection to google.
I do not understand that.
It should still work even without the jquery?
Can someone explain me this?
What is the function of jquery?