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

Link to open new window

joony215
Registered: Mar 22 2007
Posts: 2

I am trying to create the link in PDF that will open the URL in NEW window.
I've tried app.launchURL("http://www.mycompany.com? true);
in Run Javascript. But it didn't work.
Is there other things I could try to make this work? Please help!

My Product Information:
Acrobat Pro 6.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The script has a couple of problems, an unterminated string and a mis-use of the "newFrame" parameter. It should look like this.

app.launchURL("http://www.mycompany.com", true);

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kbedward
Registered: Nov 9 2007
Posts: 29
OMG!!!! THANK YOU THANK YOU THANK YOU.... This worked for me.
rflores88
Registered: Feb 13 2008
Posts: 1
this works great for IE, but is there a script for "any" browser?
JessTheFactsPlease
Registered: Dec 23 2008
Posts: 1
This worked to open a PDF in a new window when the original document was opened, but is there a way to open a link inside the document in a new window only when that link is clicked on?
shellstar
Registered: Sep 22 2009
Posts: 3
This java tried to open the link from my documents instead of in the web browser... any reason why it would do that. It just gave me an error message.

What I really need to do is force it to open a new browser window for the weblink instead of downloading the link into the document. I want it to do that by default instead of having to right click. Any ideas?
mukesh2702
Registered: Sep 24 2009
Posts: 1
you can use A text link is to create a link.
Credit Repair Services
kimhuff
Registered: Nov 4 2009
Posts: 1
thomp wrote:
The script has a couple of problems, an unterminated string and a mis-use of the "newFrame" parameter. It should look like this.app.launchURL("http://www.mycompany.com", true);
I tried this but I get an error message saying...

Acrobat does not allow connection to:
app.launchURL("http://www.zimmernutrition.com/index.php/learning-center/health-articles/54-general-health/260-flu-shots-trick-or-treat", true);

Here is what I am trying to do. I have a website that links to PDF files. In those PDFs, I have links that point to our website (similar to the one above) but I want the link to open in a new window and not get rid of the article they are reading. I am starting to think this isnt possible.

Any suggestions?

Thank you in advance,

Kim