Name: plitwa Date: August 12, 2005 at 14:35:42 Pacific Subject: javascript run code in anotherframe OS: xp CPU/Ram: 128
Comment:
I want to have a page with 2 frames. I want the one frame to have a javascript code in it and the other to have a website in it but have my code run in the other frame even if it's google.com for example. Example- If i want to write a line in the second frame which is google.com Oviously if the second frame is google.com I cannot put my code in that frame so is it possible to have a code carry my code over?
thank you in advance I have tried this on my own with no luck
It's not clear what exactly you want to do here. Do you want to have a navagation system using JavaScript in one frame and the links show up in the second frame? You say you want to write a line in the webpage which is google. What do you mean "write a line"? Please give us another example or two so we know what you need. Is there any websites that you have visited that do what you are trying to do?
I have never seen what I am trying to do on any site. This is why it is so hard to explain. I am not even sure if it is possible.
Lets say for example, I want to use a style code and change google's fonts to be red. I cannot put that style code in Google itself being that Google is not my site. So is there a way to have one frame load google in the other frame and run the style code for that frame, thus making google's fonts red?
I am not sure if this is possible. However, If you know a way, I would be more than thankful.