You are here: Reference > JavaScript > client-side > HTML DOM > properties > start (img, input:image)

start property (img, input:image)

Browser support:
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:

object.start;
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:
fileopen
Default. Video begins when it has finished loading.
mouseover
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? yes no

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? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content