1 // Creates a frame and invokes f when the frame is ready.
2 window.withFrame = function (opt_url, f) {
3 var url = typeof opt_url == 'string' ? opt_url : 'about:blank';
6 var frame = document.createElement('iframe');
7 frame.onload = function () {
11 document.body.appendChild(frame);