You are here: Reference > HTML > attributes > dynsrc (img, input:image)

dynsrc attribute (img, input:image)

Browser support:
Sets the location of a movie file or VRML.
If the dynsrc attribute is defined, the src attribute will be ignored. Do not use this attribute, use the object element instead.
JavaScript page for this attribute: dynsrc. You can find other example(s) there.

Possible values:

String that sets the URL of the file. It can be an absolute or relative path as well. Relative paths are relative to the base URL. The base URL is the location of the current document, but it can be overridden by the base tag.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the dynsrc attribute:
<img id="myImage" src="dynTest.gif" dynsrc="dynTest.mpg" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content