Response title
This is preview!
HughbertD wrote:I followed the rest of advice on there - creating an onDomLoad.js file in the /js folder and putting some code that jquery uses in there.
However, when I load my html page I don't see anything.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="../js/onDomLoad.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
$(document).ready(function() {
alert("Look Mum, I'm using jQuery!");
});
<script type="text/javascript">
$(document).ready(function() {
alert("Look Mum, I'm using jQuery!");
});
</script>
© 2013 jQuery Foundation
Sponsored by and others.