JavaScript Tutorial

.jQuery.cssHooks

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<script src="http://cdn.static.w3big.com/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<script>
$(function ($) { 
    if (!$.cssHooks){
        throw(new Error("This feature requires a jQuery version greater than or equal to 1.4.3"));
    }
    $(function(){
        $.cssHooks.height = {
            get: function( elem, computed, extra ) {
                },set: function( elem, value ) {
                    alert('Execution processing');
            }
        };
        $('body').css('height','100%');
    });
})(jQuery)
</script>
</body>
</html>