Ok, it's a little bit tricky for me to post the code as both of the windows have individual frames. But I'll try to explain exactly what I need.
I have Browser opened. There's a button to open a window, that is Window A. In window A, it has a button to open window B. This is not the problem. Just letting you understand that there's 1 browser and 2 windows opened now.
In Window B, there is a link, say, Yahoo.com. But I don't want that page to load in window B but instead, it should load in window A.
What I did is,
<html>
<head>
<script>
function loadpage(){
something here... <---what should I put in here?
}
</head>
<body>
<a href="javascript:loadpage();">YAHOO</a>
</body>
</html>