Safari, unlike chrome and firefox, does not have real support for this function, and the only option is to access the window object from the console. Since you correctly indicate that this will cause problems with cross-domain policies, however, provided that you are working on a Mac (for some reason this does not work on Windows), you can use
open -a '/Applications/Safari.app' --args --disable-web-security
to get around this. And then on your jsbin you can use something in the lines
window.frames[0]
to access the page window. As far as I can see, there is no similar solution for windows, since
Safari.exe --disable-web-security
apparantly not working.
David mulder
source share