refresh audio player with javascript

I had an audio player embed tag in html which was calling servlet and playing voice on every page refresh.
 Now I am changing page from http to ajax, in this case page doesn't refresh and audio player doesn't play any audio .
So what i am looking for is somehow refresh embed tag with javascript on response from ajax.
brettacvhAsked:
Who is Participating?
 
Roman GhermanSenior Software EngineerCommented:
try to put your object inside a div element and then when you want to reseload the embed tag do this:

document.getElementById('yourDIV').innerHTML = document.getElementById('yourDIV').innerHTML;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.