ok, how do you name a webpage window on opening?

Wednesday, October 27, 2004 by joetheblow | Discussion: WinCustomize Talk

I am trying to find a way, simply, to have a window name itself when it loads. For example, the home page, I want the home page to name itself, say "homepage" so that when the user opens a second window, the user can control the original window the pop-up window came from.

Is that an on load function? Is that a javascript or just regular html code.

anybody got a solution?
Thanks!
BX
Reply #1 Wednesday, October 27, 2004 6:49 AM
Phillip I don't think that there is any software to do this.
paxx
Reply #2 Wednesday, October 27, 2004 7:22 AM

Joe, in javascript you can refer the window that opened the popup as "opener".

Ex: window.opener.close() would close the original window.

CerebroJD
Reply #3 Wednesday, October 27, 2004 8:28 AM
I'm sure theres a way to do this, since I think I've done it, but I cant remember how!
paxx
Reply #4 Wednesday, October 27, 2004 10:09 AM
But you don't need to name it, just use "opener" for a name and it will work.
joetheblow
Reply #5 Wednesday, October 27, 2004 3:00 PM
oh no, not the pop-up window being named, I mean the name of the home page.

For example, Wincustomize has it set such that if you click on a nickname, a new window appears... but THIS IS what I want:

When you click on "Click to View Author's Skins", the main window goes to the skinners uploads.

Its like the window itself has a name to refer back to.

When I refer to the main window, I mean it is th window you are already in and been browsing through before you got to WinCustomize. But once you get to Wincustomize, now the window gets a name somehow.



Its like the pop-up window controls the window the user clicked from (main window).
Any ideas?
MikeB314
Reply #6 Wednesday, October 27, 2004 3:02 PM
That is what paxx is saying. The pop-up window refers to the main window that opened it as "opener".
joetheblow
Reply #7 Wednesday, October 27, 2004 3:05 PM
wait, I thought of a better way to explain this.

{Original Window}

[pop-up window] from {Original Window}

[clicks in the pop-up window] control what is viewed in {the original window}



I know I saw it done somewhere... base target maybe? "window name" using javascript? Name self something???
joetheblow
Reply #8 Wednesday, October 27, 2004 3:05 PM
oh ok. thanks!!!
craeonics
Reply #9 Thursday, October 28, 2004 4:51 AM
As paxxmaster says (but expanded): window.opener.title="bla"
joetheblow
Reply #10 Thursday, October 28, 2004 5:55 PM
Ok, I will give it a shot. sof far so bad. I don't know javascript to well. self taught

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01