Skip to content
Simple bookmarklet to display window/viewport size on any website, for examining CSS3 media queries
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.markdown
window-size-bookmarklet.0.2.3.js
window-size-bookmarklet.0.2.3.min.js

README.markdown

Window Size Bookmarklet

A handy bookmarklet that displays the dynamic viewport/screen size in pixels on any website - useful for inspecting and debugging CSS3 @media queries and responsive/adaptive layouts.

Check out the blog post at http://www.josscrowcroft.com/2011/code/window-size-bookmarklet/ for details and a demo.

NB: to use this as a bookmarklet, make sure to stick javascript: in front of the minified code, then use that as the href/address of the bookmark.

Changelog:

  • v0.2.3 Fixed for lte IE8... I think.
  • v0.2.2 Rewrote to wrap in anonymous function
  • v0.2.1 Fixed in Firefox
  • v0.2 No longer relies on jQuery
Something went wrong with that request. Please try again.