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.

Syntax:

object.palette;
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:
<head>
    <script type="text/javascript">
        function GetEmbedPalette () {
            var embed = document.getElementById ("myEmbed");
            alert ("The palette of the embed object:" + embed.palette);
        }
    </script>
</head>
<body>
    <embed id="myEmbed" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" 
        width="300" height="200" src="flash.swf" quality="high" />

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

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content