<html>

<head>
<script src="npapi.js"></script>

<script>
function DeletePluginWithinScript() {
  var plugin_div = document.getElementById("PluginDiv");
  plugin_div.innerHTML = "Object Deleted";
  onSuccess("execute_script_delete_in_paint", 1); 
}
</script>
</head>

<body>
<div id="statusPanel" style="border: 1px solid red; width: 100%">
Test running....
</div>


NPObject Proxy Test<p>

Tests the case where a plugin instance is deleted in the context
of a synchronous paint. 

<DIV ID=PluginDiv>
<embed	type="application/vnd.npapi-test" 
	src="foo"
	name="execute_script_delete_in_paint"
	id="1"
	mode="np_embed"
>
</DIV>
<script> 
    var height = document.body.offsetHeight;
</script>

</body>
</html>