This code will give the width of dvWidth element using JQuery in below given code. You can download the Jquery from
http://docs.jquery.com/Downloading_jQuery.
<script type="text/javascript" src="Script/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert($("#dvWidth").width());
});
</script>
<div id="dvWidth" style="width:300px">
<h1>Virendra Dugar</h1>
</div>
Enjoy.