Applet should have a button, which open modal window, after click runs test javascript function. Open new window, and change location which has no effect.