See: No more "Click to activate and use this control"
Actually, I have another approach to this problem.
First of all, create an external js file with the following code:
objects = document.getElementsByTagName("embed");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
OR
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
Depends on whether you use <OBJECT> tag or <EMBED> directly.
Then at the very bottom of your HTML page, add the script reference in:
<script type="text/javascript" src="objupdate.js"></script>
Remember you need open tag and close tag. Using <script /> sometimes would not work.
No comments:
Post a Comment