Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Woohoo!! Found out how to display a message when the attribute changes via <a href="http://help.dottoro.com/ljdchxcl.php" rel="nofollow">http://help.dottoro.com/ljdchxcl.php</a></p> <pre><code>&lt;body onload="InitListener ();"&gt; .... &lt;script type="text/javascript"&gt; function InitListener () { var elemToCheck = document.getElementById ("objectelementid"); if (elemToCheck.addEventListener) { // all browsers except IE before version 9 elemToCheck.addEventListener ('DOMAttrModified', OnAttrModified, false); // Firefox, Opera, IE } if (elemToCheck.attachEvent) { // Internet Explorer and Opera elemToCheck.attachEvent ('onpropertychange', OnAttrModified); // Internet Explorer } console.log("events attached"); // Test the event works elemToCheck.setAttribute("width","333"); console.log("something happened"); } function OnAttrModified (event) { var message = ""; if ('attrChange' in event) { // Firefox, Opera, Internet Explorer from version 9 message += "Something has happened to an attribute of the " + event.target.tagName + " element.\n"; message += "The value of the " + event.attrName + " attribute has been changed from " + event.prevValue + " to " + event.newValue + "."; } if ('propertyName' in event) { // Internet Explorer message = "The " + event.propertyName + " property of the " + event.srcElement.tagName + " element has been changed."; } console.log(message); } &lt;/script&gt; </code></pre> <p>Unfortunately, the test provide futile, it seems that IE9 automatically resizes the video if there is no width or height... must be a feature... deep joy...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload