You are here: Reference > JavaScript > client-side > HTML DOM > properties > start (img, input:image)
start property (img, input:image)
Specifies or returns the starting time of a video clip.
The img tag supports this property only if you assign the video clip via the dynsrc property. Try to use the object tag instead of the img tag if you want to embed a video clip.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: start |
Possible values:
String that sets or retrieves the starting time.
One of the following values:
Default. Video begins when it has finished loading. | |||||||
Video begins on mouse over event. |
Default: fileopen.
Example HTML code 1:
This example illustrates the use of the start attribute:
|
||||
<img dynsrc="testVideo.mpg" start="mouseover" /> <br /> Move the mouse pointer over the image! |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the start property:
|
||||
<head> <script type="text/javascript"> function GetStart () { var image = document.getElementById ("myImage"); if ('start' in image) { alert ("image start= " + image.start); } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> <img id="myImage" dynsrc="testVideo.mpg" start="mouseover" /> <br /> Move the mouse pointer over the image! <br /> <button onclick="GetStart ();">Get the image start!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
Related pages:
External links:
User Contributed Comments