Take screenshots triggered by browser-side JavaScript.