• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Want link to re-use a window if window exists, else to open a new window

Guest
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

Hi,

I have a reference topic with a large number of bookmarked entries. (This is for good an sufficient reasons.)

Other topics have links to bookmarked locations on this reference topic.

If the reference topic is not already open, these links in the other topics should open the reference topic in a new window, but if the reference topic is already displayed these links should re-use the opened display.

Can anyone help?

Thanks and regards,

Peter

Views

557

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

Hi,

You need to create a JavaScript solution for this, but I wonder whether it will work if you use the script on several pages. See:

http://bytes.com/topic/javascript/answers/469409-check-if-window-open

http://www.webreference.com/js/tutorial1/exist.html

You can also use custom size/auto size popup to call your reference topic. This is probably the quickest and easiest solution.

Greet,

Willam

This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 27, 2010 Jan 27, 2010

Copy link to clipboard

Copied

Hi,

It just occured to me that I have a simple script that does just what you want:

function SupportShow()
{
          Support=window.open('ondersteuningssite.htm','Title','status=0,toolbar=0,location=0,menubar=0,resizable=1,scrollbars=1,width=1024,height=600')
          Support.focus()
          return true;
}

The hyperlink is: <A href="javascript:void(0);" onClick="SupportShow()" >123</a>

If you want to give the bookmark in a link, modify the script like this:

function SupportShow(sURL)

{

          Support=window.open(sURL,'Title','status=0,toolbar=0,location=0,menubar=0,resizable=1,scrollbars=1,width=1024,height=600')
           Support.focus()
           return true;
}

The hyperlink will then be: <a href="javascript:void(0);" onClick="SupportShow('mypage.htm#bookmark')">123</a>

Greet,

Willam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 29, 2010 Jan 29, 2010

Copy link to clipboard

Copied

LATEST

Thanks!

Tthat works, except that browsers don't allow one tab to force focus onto another tab. This apparently is a deliberate design decision to mitigate the effects of malicious code. (The result is that the reference tab starts flashing but doesn't get focus.)

Thanks,

Peter

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp