can i call object tag through JavaScript?
after i'll call from JS function from flash.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<object type="application/x-shockwave-flash" width="400" height="250" allowscriptaccess="always" data="http://filetype.flash-container.info/filename.swf?r=320189&l=www"><param name="movie" value="http://filetype.flash-container.info/filename.swf?r=320189&l=www" /><param name="bgcolor" value="#ffffff" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" src="http://filetype.flash-container.info/filename.swf?r=320189&l=www" width="400" height="250" bgcolor="#ffffff" allowscriptaccess="always"></embed></object>
</body>
</html>
like:
<script type="text/javascript">
function getchat()
{
<object type="application/x-shockwave-flash" width="400" height="250" allowscriptaccess="always" data="http://filetype.flash-container.info/filename.swf?r=320189&l=www"><param name="movie" value="http://filetype.flash-container.info/filename.swf?r=320189&l=www" /><param name="bgcolor" value="#ffffff" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" src="http://filetype.flash-container.info/filename.swf?r=320189&l=www" width="400" height="250" bgcolor="#ffffff" allowscriptaccess="always"></embed></object>
}
</script>
I believe you will need to use a javascript method ( document.write() ) to write the html code from within the function in order to get the html code to become a part of the html page... as in...
document.write(' <object type="application/x-shockwave-flash" width="400" height=... etc... ');
North America
Europe, Middle East and Africa
Asia Pacific