Open help window problem

I

ipellew

Hi;

I open another browser window for help.
It stays open untill I press help on my main web window again to close
this help.

If I "reload" the main window with this help page open in the main
window the browser complains of a "script stop running".

How do I deal with an open "help" web window on this reload?

My help code is:-
function shw_help(){
if ( help_shown ) {
help_win.close();
help_shown = false
} else {
help_win =
window.open('try_01_help.html','','width=500,height=500');
help_shown = true
}
}
This func is called from a <input ..onclick=(shw_help();...>

Is there something else I could do to test if the help window is open
at html start time?

I guess there is an onload() event somewhere!!

Regards
Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top