You are here: Reference > JavaScript > client-side > HTML DOM > properties > palette (embed)

palette property (embed)

Browser support:
Returns the palette used for the embedded document.


You can find the related objects in the Supported by objects section below.
This property is read-only.

Possible values:

String that gets the palette.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the palette property:
    <script type="text/javascript">
        function GetEmbedPalette () {
            var embed = document.getElementById ("myEmbed");
            alert ("The palette of the embed object:" + embed.palette);
    <embed id="myEmbed" type="application/x-shockwave-flash" pluginspage="" 
        width="300" height="200" src="flash.swf" quality="high" />

    <br />
    <button onclick="GetEmbedPalette ()">Get the palette of the embed object</button>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content