homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Transporting javascript variables between windows

WebmasterWorld Senior Member 10+ Year Member

Msg#: 6 posted 2:50 pm on Oct 12, 2001 (gmt 0)

Hi everyone! I'm hoping someone out there can help me out a bit -

The problem is that I have a variable that I want to transport between 3 different windows. The variable is the window location. So in the first window I have:
var ref = self.location.href;
Now shortly after that statement, there's a bit more JS and then the window closes and opens a different window. In the new window there's a bit more scripting (detects screen size), and then another window opens with a frameset(to a window based on user screen size) and the previous window closes. I want one of the frames in the last window to be the original URL. So how can I transport the variable all the way to that point?

I mananaged to get it to work in IE5.5 - But in IE6,IE5, and NS6 it just opens up the frameset to the default page. In NS4, as usual, nothing works.

Basically, I'm doing this so that if someone bookmarks a page and then opens it outside of the frameset, the page will redirect and open itself again within the frameset (appropriate to the users screensize) so that everything is displayed properly.

I know a lot of us aren't big frame fans (for reasons like the problems I'm having now) but unfortunately scrapping the frames on this page is not an option. :(

Thanks for ANY help or suggestions...this is the best forum around!




WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 6 posted 4:26 pm on Oct 12, 2001 (gmt 0)

For a shot at a pure javascript solution, check out these ideas:


As the man there says, it might be easier to set a cookie.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved