Javascript : addEventListener

fpedeboscq

New member
Hello,
I am implementing an html video player which needs to be controlled by html button.

I proceed as follow:

in the html code:
  • Play
in the javascript code:
var play = document.getElementById(‘play’);
play.addEventListener(‘click’,playControl,false);
function playControl() {
do stuff…
}

The problem is that exeoutput or htmlexe does not recognise the javascript function “addEventListener”.

Thanks for your advise if you have an idea.

Francois
 
Last edited:
I use version 4.0.2 of HtmlExe.

Finally I had the flv movie as follow in the html code:

What I would like to do is to stop the flv movie by clicking on a html button?

Your help would be very appreciated.

Francois
 
Last edited:
Maybe you should try to use JQuery to add actions to HTML buttons? JQuery takes care of different versions of IE and their possible problems…
 
Last edited:
Back
Top