These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

specifying link target to be a new browser window

Rosemerry
Registered: Jan 27 2011
Posts: 3

Does anyone know how to make Acrobat set a URL link to open in a new browser window? I have Acrobat 9 and 8.

My Product Information:
Acrobat Pro, Macintosh
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1876
You can use the launchURL JavaScript method: app.launchURL documentationBut it turns out the it doesn't launch a new browser window with Reader 10 when protected mode is enabled, as discussed earlier today here: http://forums.adobe.com/thread/783588?tstart=0
Rosemerry
Registered: Jan 27 2011
Posts: 3
Unfortunately, the PDFs will be accessed within a Learning Management System that doesn't like javascript. Any other ideas?
George_Johnson
Online
Expert
Registered: Jul 6 2008
Posts: 1876
When you say it doesn't like JavaScript, what do you mean exactly? Does it mean that you cannot use JavaScript that's included within the PDF?
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Although Acrobat doesn't have a link code that will force a Weblink to open in a new window, here's how you can make it happen :

Rather than linking directly to the URL you want to open, create a link to an HTML document that contains no text. The HTML document immediately opens a new window itself, using HTML code rather than Acrobat's syntax, and opens the desired URL in that window.

The Acrobat Weblink will be a normal link to an HTML page that has nothing in its body and includes the following line in its head:

< META HTTP-EQUIV="Refresh" CONTENT="x; URL=zzz" >For x, substitute the number of seconds that should elapse before the new link opens (in this case, probably zero), and for zzz, substitute the URL that should open in the new window.

;-)
Rosemerry
Registered: Jan 27 2011
Posts: 3
Thanks, I'll investigate your suggestions.
hogwell
Registered: Apr 16 2011
Posts: 6
I have a similar problem when generating pdf's with /URI hyperlinks for use in Acrobat Reader 9 and 10 displaying the pdf in IE.

When the hyperlink is clicked, I want a new IE window to open up to the given url.
(This will display reference information for help in filling out the form.)

Would it work to insert

app.openInPlace=false;

in the document level javascript?

tomdale23
Registered: Jun 11 2011
Posts: 1
Interesting post. Running up with the same problem. Thanks for sharing!