'codeType' Example : codeType : Javascript Properties : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
1. Event Handlers Reference
2. Javascript Collections
3. Javascript Methods
4. Javascript Objects
5. Javascript Properties
Java
Java Tutorial
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript Reference » Javascript Properties » codeType 
'codeType' Example

<!-- 
Example revised from 

The Web Programmer's Desk Reference
by Lazaro Issi Cohen and Joseph Issi Cohen 

ISBN: 1593270119
Publisher: No Starch Press 2004
-->    
<html>
<head>
<script language="javascript">
    function function1() {
        var m = document.getElementById("myO").codeType;
        alert("The value of codeType property is:\n"+m)
    }
</script>
</head>
<body>
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="250" height="230" >
   <param name="movie" value="yourshockwavefile.swf">
   <param name="quality" value="high">
   <embed id="myO" 
          src="yourshockwavefile.swf" 
          quality="high" 
          pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" 
          width="250" 
          height="230" 
          codeType="application/x-shockwave-flash">
   </embed>
</object>
</p>
<input type="button" value="Click here" onClick="function1();">
</body>
</html>

    
      
      
Related examples in the same category
1. 'codeType' Syntax and Note
2. 'codeType' is applied to
Home | Contact Us
Copyright 2003 - 07 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.