Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to realize reload and first open window??

Status
Not open for further replies.

pichi

Programmer
Nov 12, 2000
156
EC
hi is there a way that i could know what am i doing??, i mean i want to open a window (window.open), and then do a reloads with the window open, now i want to know when is that i open the window and when is the window refreshing.
Can i do that??
thanks

Pichi
 
And you want to know when the pop-up is refreshing and when the popup is opening?

Im not understanding your goal. Maybe this will help you:

/************************/
PARENT PAGE
<body onLoad=&quot;window.open(....arguments...)&quot;>
/************************/

/************************/
POPUP
<body onLoad=&quot;window.reload()&quot;> //Im not sure of the syntax, its easy to find
/************************/

Can you give me some more info?
 
hie pichi
u can pass some variable that wuld say that u're reloading ur page, usin get method (location.search, faq216-343)
& then check for it, if it IS, then u didit, if NOT - u r'nt regards, vic
 
you can check if the window is open
something like

function check() {
if (myWindow)
if (myWindow.opened)
myWindow.reload()
else
var myWindow = new window.open()
else
var myWindow = new window.open()
}

<body onLoad=&quot;check()&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top