Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<style>
div {
width: 50px;
height: 50px;
position: absolute;
background: orange;
border: 1px solid black;
margin-top: 300px;
margin-left: 300px;
}
</style>
<script>
$(document).ready(function(){
var link = $("div");
var offset = link.offset();
var top = offset.top;
var left = offset.left;
var bottom = top + link.height();
var right = left + link.width();
alert("Top position: " + top + " Left position: " + left + " Bottom position: " + bottom + " Right position: " + right);
});
</script>
</head>
<body>
<div></div>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.9K 1.8K