init.htm (415B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>support init file</title> 5 </head> 6 <body> 7 <script> 8 onload = function() { 9 // Run async, because navigations from inside onload can be a bit weird. 10 setTimeout(function() { 11 if (parent != window) { 12 parent.init() 13 } else { 14 opener.init(); 15 } 16 }, 0); 17 } 18 </script> 19 </body> 20 </html>