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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yanivmad

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

    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.
  • Stuart Palmer

    #2
    Re: window.open(.. How can I control the instances.

    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" <yanivardit@hot mail.com> wrote in message
    news:30b0c7e2.0 310200705.21726 20b@posting.goo gle.com...[color=blue]
    > 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.[/color]


    Comment

    Working...