palette property (embed)
Returns the palette used for the embedded document.
Syntax:
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?
|
Supported by objects:
HTML elements:
External links:
User Contributed Comments