1 <html> 2 <head><title>src property test</title> 3 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> 4 </script> 5 <script type="text/javascript"> 6 function OnNavigationFailed() { 7 onFailure("ChromeFrame_SrcTest", 1, "ChromeFrame Navigation failed"); 8 } 9 10 function OnChromeFrameLoaded(url) { 11 try { 12 url = url.data; 13 var chromeFrame = GetChromeFrame(); 14 var frame_url = chromeFrame.src; 15 appendStatus("Loaded URL: " + url + " Frame url: " + frame_url); 16 } 17 catch (err) { 18 onFailure("ChromeFrame_SrcTest", 2, "OnChromeFrameLoaded failed."); 19 } 20 } 21 22 function GetChromeFrame() { 23 return window.document.ChromeFrame; 24 } 25 26 </script> 27 </head> 28 <body> 29 <div id="statusPanel" style="border: 1px solid red; width: 100%"> 30 Test running.... 31 </div> 32 <span id="ChromeFrameSpan"></span> 33 <script type="text/javascript"> 34 insertControl( 35 "ChromeFrameSpan", 36 { "src": "src_property_frame1.html", 37 "eventHandlers": { 38 "onload": "return OnChromeFrameLoaded(arguments[0]);", 39 "onloaderror": "return OnNavigationFailed(arguments[0]);" 40 } 41 }); 42 </script> 43 <p>Tests ChromeFrame Navigation</p> 44 </body> 45 </html> 46