Return the URL of an embedded file:
The result of x will be:
The src property sets or returns the value of the src attribute in an embed element.
The src attribute specifies the address (URL) of the external file to embed.
The src property is supported in all major browsers.
Return the src property:
Set the src property:
Value | Description |
---|---|
URL |
Specifies the address (URL) of the external file to embed. Possible values:
|
Return Value: | A String, representing the URL of the embedded file. Returns the entire URL, including the protocol (like http://) |
---|
HTML reference: HTML <embed> src attribute