Is it possible to restore a selection created with createRange()?

Giganews Newsgroups
Subject: Is it possible to restore a selection created with createRange()?
Posted by:  martin…@everyday.com (Martin Karlsson)
Date: 23 Jul 2003

Hi guys,

Does anyone know how I can restore a selection created with
createRange()?

The problem is that I have a function that opens a new window with
window.open() which of course makes the current window to lose focus
and drop the selection. The same happens if I display an alert
message.

What I want to do is to somehow restore the selection when the new
window is closed. I don't know if this is possible, but I would really
appreciate any tips or advices in this matter.

Thanks, Martin

Replies