javascript - Interacting with Separate Frames -


i setting html page frameset has 2 frames. initiate action on 1 frame modify in other frame. example, clicking button on frame 1 change innerhtml of element id on frame 2.

how go doing this?

thanks

you can trigger following javascript upon event in frame 1:

window.parent.frame2.document.getelementbyid('element_id').innerhtml = 'new content'; 

assuming frame 2 element has name of "frame2" , element want modify has id of "element_id".


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -