# Problems with Javascript & \<html\> \<object\> tags!

**URL:** <https://forum.kirupa.com/t/problems-with-javascript-html-object-tags/35029>\
**Category:** web dev\
**Created:** [November 9, 2003, 4:14pm UTC](https://forum.kirupa.com/t/problems-with-javascript-html-object-tags/35029 "2003-11-09T16:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BVision](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BVision](https://forum.kirupa.com/u/BVision)\
**Post date:** [November 9, 2003, 4:14pm UTC](https://forum.kirupa.com/t/problems-with-javascript-html-object-tags/35029/1 "2003-11-09T16:14:20Z")

</div>

Program: Dreamweaver MX 2004

Issue: Content in loader.js not showing up correctly.  
– loader.js has the code for my splash page.

Wanting to: Meet xhtml-strict w3c standards. All works except for loader.js code (not sure if it’s in the calling or in the actual .js file), which is why I am trying to use external javascript.  
Before I used document.write everything worked correctly, but once I put the document.write & the .js call in xhtml it’s not showing up.  
Please Help. Any help is much appreciated.

This is the xhtml code for my index.html page.  
I am having trouble with this area. For some reason it’s not showing up when I view it.

“index.html”[AS]\<html\>\<head\> … (code omitted here) …\</head\>  
\<body\>  
\<p\>\<script type=“text/javascript” src="/scripts/loader.js"\>\</script\>  
\<script type=“text/javascript” src="/scripts/ff.js"\>\</script\>\</p\>  
\</body\>  
\</html\>[/AS]

external javascript file, “loader.js”[AS]//\<![CDATA[  
document.write(’\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0)” width=“600” height=“440” id=“index123”\>’);  
document.write(’\<param name=“allowscriptaccess” value=“samedomain” /\>’);  
document.write(’\<param name=“movie” value=“index123.swf” /\>’);  
document.write(’\<param name=“menu” value=“false” /\>’);  
document.write(’\<param name=“quality” value=“best” /\>’);  
document.write(’\<param name=“scale” value=“noscale” /\>’);  
document.write(’\<param name=“devicefont” value=“true” /\>’);  
document.write(’\<param name=“bgcolor” value="#ffffff" /\>’);  
document.write(’\</object\>’);  
//]]\>[/AS]
