Thanx for the reply.
But the code gives a error. Are you suggesting i have to pass a parameter like
'parent.main.document.location'. If yes, this causes the page in the frame 'main' to be bookmarked and when recalled would bring that page alone (without the outer index.html).

Let me explain a little in detail. Index.html is a frameset with two frames 'top' and 'main'. 'Top' has top.html which contains all the links. 'Main' frame has different pages which can be obtained by clicking links in top.html. Suppose at a particular point (cause of users actions) 'main' has XYZ.html, and the user decides to bookmark (the link to bookmark is in top.html). The user should be able to recall index.html with top.html in 'top' and XYZ.html in 'main'.

The browser (when clicked 'Favourites -> Add to Favourites' menu ) does this. So i wanted something simillar using javascript.

Thanx again for your time.