This is simple JavaScript code that I would like to implement but does not work.
I am trying to get a link to a file inside the file
tag, but I think that innerHTML
does not work in a similar situation, but I gave it a chance to try.
Could you guys help me with this? I know something is missing here.
[videoplayer id="one" file="/dir1/dir2/hi.mp4" width="333" height="333" /] <script type="text/javascript"> var str = document.getElementById('one').innerHTML; document.write(str.substr(0,str.length-1)); </script>
source share