# Positioning document.write(... Help! please

**URL:** https://forum.kirupa.com/t/positioning-document-write-help-please/112729
**Category:** Uncategorized
**Created:** [June 10, 2004, 8:51pm UTC](https://forum.kirupa.com/t/positioning-document-write-help-please/112729 "2004-06-10T20:51:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)
#### Post date: [June 10, 2004, 8:51pm UTC](https://forum.kirupa.com/t/positioning-document-write-help-please/112729/1 "2004-06-10T20:51:48Z")

</div>

Hi!  
I don’t know much about javascripts but hope to get some help:  
I have this code:  
ActionScript:

```php

{document.write("<embed name='midi' src="+mide+" loop='1' autostart='true' hidden='false' width='300' height='100'>")}
 

```

I want to define a position for this object on the screen. How and where can I put a position? I have tried with document.left=400 or document.style.left=400, NO luck.

This is actually a part of a flash project.  
Thanks for your help.  
mx-guest2004 🙂
