Execute JavaScript

You can run any Javascript before taking a screenshot of the page. Specify the URL of a javascript file to load during your screenshot request. The URL will be loaded just after the page load event. You need to ensure that your script will finish executing before the delay set during the request (current maximum: 10 seconds).

For example, take a screenshot of a full page after scrolling down to the bottom. The script to scroll down is located at http://browshot.com/static/js/custom/scrolldown.js. The script will be loaded and executed within the page after the page load event.


Hide elements on a page (Facebook sign up)

You can use custom JavaScript code to hide or show HTML elements on a page. For example, you can use https://browshot.com/static/js/custom/facebook-hide.js to hide the Facebook sign up page

Without the script:


With the script:

https://www.facebook.com/nike with script

Remember than you can host your JavaScript file anywhere. Alternatively, you can include Javascript content inside the script_inline API parameter.

Try it for free


sign up for free account

Already have an account?

no credit card required

About Us

Browshot is a web service to create real time web screenshots in a multitude of virtual devices, including mobile devices like the iPhone 3 & 4, iPad, Android Nexus, etc.

You can use the web dashboard, or our full-featured API.

  • Real time screenshots

  • 15+ mobile devices: iPhone, iPad, Android, etc.

  • 30+ desktop resolutions

  • Fast and reliable

  • Thumbnails of any size, any ratio

  • Full API, open-source libraries