<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Display the mouse position relative to the left and top edges of the document (within this iframe).</title>
</head>
<body>
<div id="position"></div>
</body>
</html>
CSS Code :
body {
background-color: #CCDD96;
}
div {
padding: 20px;
}
HTML Code :
CSS Code :
JavaScript Code :