By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

window.open(.. How can I control the instances.

P: n/a
hi
I like to ask if there any option to control the html files?!?

I have some HTML files at my web site that use
one "Help.htm" file for all the pages {I use the
"window.open(.... " option at JS },
and I like to open only one file every time for all the files.

I use "myFunc.js" javascript file for all the files that try to open the
"Help.htm" file so I hava an 'Object' that hold the
open HTML help window,
but when I try open the file from other
HTM file from the same project I got new "Help.htm" instance,
and from every htm file I got new instance... etc.

Any suggestion,
how can open only one the file from all the html, files?

thanks in advance,
Yaniv.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I think I understand your question.
Make sure you set your target name for the popup window name as being the
same for all.INstead of using blank or "" otherwise it will open a new
instance every time, if you choose the same traget it will hen just target
that window that's already open/refresh or open the new instance of it. Look
at the window.open call in yahoo.

Hope that helps

Stu
"yanivmad" <ya********@hotmail.com> wrote in message
news:30**************************@posting.google.c om...
hi
I like to ask if there any option to control the html files?!?

I have some HTML files at my web site that use
one "Help.htm" file for all the pages {I use the
"window.open(.... " option at JS },
and I like to open only one file every time for all the files.

I use "myFunc.js" javascript file for all the files that try to open the
"Help.htm" file so I hava an 'Object' that hold the
open HTML help window,
but when I try open the file from other
HTM file from the same project I got new "Help.htm" instance,
and from every htm file I got new instance... etc.

Any suggestion,
how can open only one the file from all the html, files?

thanks in advance,
Yaniv.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.