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

Y

yanivmad

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.
 
S

Stuart Palmer

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
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top