please Help urgent | Sololearn: Learn to code for FREE!


please Help urgent

hello guys I have a video & I need to invoke this function with PHP or Js var myVar = document.getELementByID("myvideo"); //I need to built this function with PHP ||JS function myfunc() { if (myVar start playing at 0 secand and stille onplay at 20 sec ) document.write ("hello world"); }

9/17/2018 6:55:42 PM


1 Answer

New Answer


use date function, take two variables, one gets updated when the video starts and second gets updated +20 seconds when the video starts, and when the video reaches second variable, you output hello world.