HTML DOM Source ɗanar

Source object

Source object is a new object in HTML5.

Source object represents HTML <source> element.

Access Source object

You can access <source> element by using getElementById():

var x = document.getElementById("mySource");

Try it yourself

Create Source object

You can create <source> element by using document.createElement() method:

var x = document.createElement("SOURCE");

Try it yourself

Source object attributes

Properties ɗanar Ba'ani
media Ayar da kai ko'yu ko'yu <source> elementin media xasawin da ke.
src Ayar da kai ko'yu ko'yu <source> elementin src xasawin da ke.
type ɗanar Set or return the value of the type attribute of the <source> element. ɗanar

Standard properties and events ɗanar

Source object supports standards ɗanarProperties ɗanarand ɗanarEvents ɗanar. ɗanar

Related pages ɗanar

HTML reference manual: ɗanarHTML <source> tag ɗanar