(There was a bug for a while where you had to insert an alert before opening the web page to make it work, but it seems to have been fixed recently so I've taken this out).