<!DOCTYPE html>
<html>
<head>
<title>jQuery offset() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
$("p.param").offset({left: 20, top: 170});
});
});
</script>
</head>
<body>
<p>First paragraph star here</p>
<p class="param">Second paragraph star here</p>
<button>Click here to call offset() method</button>
</body>
</html>