[Javascript] HTML object's position

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Jan 22 06:45:39 CST 2002


>I work with IE5.5; I have an object somewhere in the page:
>
><IFRAME id="iframeObj" SRC="mytest.html"></IFRAME>
>
>How can I find out iframeObj's left and top position?
>
>(I tried with: document.all['iframeObj'].style.top but it doesn't work)

Try http://www.xs4all.nl/~ppk/js/index.html?findpos.html

I've never tried it on an IFRAME so I'm not sure if it works. If it does, 
please let me know.

ppk

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the Javascript mailing list