I have a frameset where I would like to have someone be able to click a button in one frame that does something with the text selected in the other frame. The button in frame[0] invokes the following javascript to get the selected text from frame[1]:
self.parent.frames[1].getSelection()
The problem, I believe, is that the very act of clicking on the button in frame[0] unselects the text in frame[1], so getSelection returns an empty string. What can I do about this?