|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
5 <script type="text/javascript"> |
|
6 function crash() { |
|
7 var plugin = document.getElementById("plugin"); |
|
8 var argStr = decodeURIComponent(window.location.search.substr(1)); |
|
9 if (argStr) { |
|
10 var args = JSON.parse(argStr); |
|
11 for (var key in args) |
|
12 plugin.setAttribute(key, args[key]); |
|
13 } |
|
14 try { |
|
15 plugin.crash(); |
|
16 } |
|
17 catch (err) {} |
|
18 } |
|
19 </script> |
|
20 </head> |
|
21 <body onload="crash();"> |
|
22 <embed id="plugin" type="application/x-test" |
|
23 width="400" height="400" |
|
24 drawmode="solid" color="FF00FFFF"> |
|
25 </embed> |
|
26 </body> |
|
27 </html> |