tags:

views:

43

answers:

1

hi, i am getting the value "msg" from the the page:

http://www.kimi007.freeiz.com/frame.html

with the following code(this has to be entered in the address bar and then you hit enter, and then you get the alert message "success!":

javascript:(function(){var%20s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src","http://www.kimi007.freeiz.com/java.js");document.getElementsByTagName("head")[0].appendChild(s);})()

the above has this two line in the .js file:

var capForm = document.getElementById('form').elements[0].value;
alert('' + capForm + '');

i have no problem to this stage, however i want to put the "frame.html" in an iframe like this:

http://www.kimi007.freeiz.com/test.html

and make my java code to work so i can get the "success!" message within the iframe, this shouldn't be that hard, but it is for me :( thanks

A: 

try the following code, might do the trick:

top.frames[name_of_the_frame].some_function()
Şafak Gezer