Is it possible to change the file path of the video using javascript?
Posted
by Manish
on Stack Overflow
See other posts from Stack Overflow
or by Manish
Published on 2010-05-18T12:53:58Z
Indexed on
2010/05/18
13:00 UTC
Read the original article
Hit count: 198
JavaScript
|object-tag
I have an object tag in a HTML file:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="../ABC/WildLife.wmv" id="mediaPlayerFile">
<param name="AutoStart" value="false" />
</object>
I want to change the filename using javascript.
What I have so far is this:
<script type="text/javascript">
function disp_current_directory() {
var val = document.getElementById('mediaPlayerFile');
val.attributes['value'].value = "D:\XYZ\WildLife.wmv";
}
</script>
But this doesn't work. :(
Is it possible? If yes, how?
© Stack Overflow or respective owner