JQuery Example: Dimensions - Set Outerwidth And Outerheight
In this example, the left side provides the code used to render the output in the right side.
Feel free to copy and paste the code into your own project and modify as you wish.
Using the jQuery Library
The above example relies on the jQuery library. This is loaded in the part that reads <!-- Load jQuery -->
. Removing that part will prevent the example from working properly.
jQuery is an open source and cross-platform JavaScript library that can help web developers perform document traversal and manipulation, event handling, animation, Ajax, applying styles, and more. It provides an easy way for us to mainipulate the document object model (DOM).
To use the jQuery library in your own projects, you can use a CDN (like the above example uses), or you can download your own library. See the jQuery website for more information.