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
Post a Comment