04-29-2004, 02:28 PM
How can i create the folowing events for the iframe element:
I know i can use div to but I need to refresh the source.
i use allot of iframename.location.reload(true);
this is not possible with the div tag.
also the content of the iframe is editable.
04-29-2004, 08:55 PM
Maybe you can have the onClick within the iFrame call a function in the parent?
Just shooting that out there because I don't know what you're trying to do..
04-30-2004, 07:19 AM
I actualy need a good replacement for the not working function
<iframe id="textbox" onclick="testingfunction()"></iframe>
i use an iframe as a rich textbox.
so I use functions like
and also the reload funcion.
04-30-2004, 07:56 AM
I forgot to mention a few things.
I created a wysiwyg editor and it uses the iframe as editable window.
but why do I need the onclick event. Well if a user clicks on the iframe and it is over let say a bold word then my bold button will be pressed in automaticaly. I know now how to check if a certain execomand is used but the examples I saw are with <div>. Unfortunatly load an excisting html page in my editor and need to refresh it from time to time.
Still not clear what you intend to do... You want to change dynamically the content of a HTML tag from iframe to parent?