write script into another frame with innerHTML/insertAdjacentHTML 
Author Message
 write script into another frame with innerHTML/insertAdjacentHTML

Hi,
I would like to write a script like that ...

<script language=javascript>
titi = "";
parent.main.document.innerHTML =
"<script>alert('coucou');</s"+titi+"cript>";
</script>

This script does not have compiling error but does work.
The same script works with write function.

Frdric



Tue, 12 Aug 2003 15:34:16 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. innerHTML or layer (document.write ) ?????

2. innerhtml and written JS problems

3. innerHTML or write() for a DIV object

4. innerHTML & document.write

5. Accessing A Frames Innerhtml Contents?

6. Write Script Tag using Document.Write

7. Problem with scripts inside an HTML written with write()on IE5

8. innerHTML doesn't process style or script?

9. Newbie script question : reload a frame from another frame

10. Calling a script in one frame from another frame

11. write value to 2nd frame

12. write into specified frame

 

 
Powered by phpBB® Forum Software