Loading jQuery Library: Link and load the jQuery library and check it loads successfully.
This checking script isn't the sort of thing you would put in a real site. It's just here so we can scheck that the linked jQuery library in this example loaded successfully.
The alert box will have told you if jQuery succeeded or failed to load
Notes:
<-- Script to test if jQuery library loaded and alert success or failure -->
<script>
window.onload = function(){
if (window.jQuery) {
// Alert with success message if jQuery loads
alert("jQuery library loaded successfully!");
} else {
// Alert with failure message if jQuery doesn't load
alert("jQuery library did not load!");
}
}
</script>