[webkit-dev] How to add a attribute for "object" tag and can be modified by JavaScript

naixuan guan guannaixuan at gmail.com
Thu May 21 07:12:21 PDT 2009


when I open the HTML page like follow:

<OBJECT id="StormPlayer" width = 800 height = 400 src = "111"></OBJECT>
<script language="JavaScript">
alert(document.StormPlayer.src);
</Script>

the warning message will show "undefined". why?

can I add the "src" attribute to "object" tag and can be modified by
JavaScript?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090521/f52bf59d/attachment.html>


More information about the webkit-dev mailing list