Changing <EMBED> source throught java script
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
Hello I want to ask if there is a way to change the source of tag in html throught java script. I have added sound to a web page and after clicking on an image I need to change the playing track (wav or mp3) but I don't want to use tag because of compatibility with other browsers. I just need a sample function and I don't know how correctly define the object's 'name' or 'id' f.e.: or ? So how can I access this object in a function? thanx a lot