Serendipiter
Programmer
Will this file name be interpreted properly by javascript?
'
It works when I enter it in an Internet Explorer URL box.
I'm using it as follows, but it doesn't play the sound file:
old.innerHTML="<embed src=' hidden=true autostart=true loop=false>";
The javascript code above does work with the same sound file in a different location. The following works:
old.innerHTML="<embed src='file:///C:\Users\Brian\Desktop\scream.wav' hidden=true autostart=true loop=false>";
Do I need to specify the file name differently to make it work with javascript?
'
It works when I enter it in an Internet Explorer URL box.
I'm using it as follows, but it doesn't play the sound file:
old.innerHTML="<embed src=' hidden=true autostart=true loop=false>";
The javascript code above does work with the same sound file in a different location. The following works:
old.innerHTML="<embed src='file:///C:\Users\Brian\Desktop\scream.wav' hidden=true autostart=true loop=false>";
Do I need to specify the file name differently to make it work with javascript?