This is some simple JavaScript code I would like to implement, butit does not work.
I'm trying to get the file link inside the tag file but I think innerHTML does not work in this kind of situation, but I've given it a shot to try.
Could you guys help me with this? I know I'm missing something 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>
[videoplayer]tag? What language are you using?