github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/static/libs/sockjs-client-1.1.0/tests/html/sockjs-in-parent.html (about) 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="X-UA-Compatible" content="IE=edge" /> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <script> 7 document.domain = document.domain; 8 </script> 9 <script> 10 c = parent._sockjs_global; 11 window_id = window.location.hash.slice(1); 12 hook = c(window_id); 13 hook.callback = function(code) {eval(code);}; 14 hook.open(); 15 </script> 16 </head> 17 <body> 18 <h2>Don't panic!</h2> 19 </body>