I have 2 windows opened. Window A and B. In Window B, I have a link to load pages but I don't want it to load in B. How can I pass the message to Window A such that it loads in Window A?
Thanks.
how would it recognize that it's Window A that should be loading and not Window C... Also, what if Window A is a frameset and that you want to load in the mainFrame.
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?
}
I didn't load anything to my windowA. Perhaps I don't know where to get the name from the WindowA. Do I need to assign a name for windowA? If so, is it in the Meta tag name="windowA" ?
When you create new windows, tag them on to a variable. Though the second argument in the open function is the name, I am thinking that is used purely for the target attribute in a link - so here where nitinkhanna said:
opener.WindowA...
this mplies you created that window like:
var windowA = open('','someName',attributes);
So the short answere is Yes, assign it to a variable. BB "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.