javascript - How can I send parameter to main page in frame? -


i want send parameter in frame main page.i use javascript. thanks.

assuming on same domain:

you use javascript parent. body, instance, can this:

parent.document.body 

if want call function foo defined in main namespace in parent document, this:

parent.foo("bar"); 

(if it's on seperate domains, can't accessed security problems--you can reading on xss if you're interested)


Comments