Q: How can I use Javascript to play media on clicking an object? I apologize for the basic question but I am new to programming and I cannot find the answer to my question in the tutorials I have. I have developed a HTML/CSS page for a project due in two days. I would like users to click an object on the page to access a presentation (which will play full screen). At the end of the presentation the user should be returned to my HTML page.
Can this be done using Javascript with HTML? If so, how?
Will I need to convert the presentations into mp4s?
Thanks, Amit.

A: You can do 2 things, 
1.- you can convert the pptx to a mp4 an playit in fullscreen or 
2.- you can use a presentation js framework to help you with that (you will not use a fullscreen)
http://lab.hakim.se/reveal-js/#/13 here is the link to a presentation js framework =)
(this is the first one i click in google results but i guess you can get anothers, there are few of it)

A: I can not gess your code, but I think, what you are looking for is here:
http://jplayer.org/latest/developer-guide/#jPlayer-event-type
http://jplayer.org/
