/    Sign up×
Community /Pin to ProfileBookmark

pdf with java

In side the pdf document, i added a button and added a link to that button. so when the user click on the button, it will open a new page. I got that to work by going into action then edit url in adobe acrobat 5.0 but the focus of the window is still wrong. Does anyone know how or what do i need to do to make it work? basically i want to have the focus on the new window not the current pdf file. so in this case it would have focus on yahoo.com page
this is the code that i have in pdf document.

[code]
javascript:void(window.open(“http://www.yahoo.com”))
[/code]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinAug 29.2006 — why void it?
Copy linkTweet thisAlerts:
@dnn123authorAug 30.2006 — First in pdf document u add new field then click property on that field then add action then add javascript. Now if you do that and say window.open it is not going to work. Remember i'm using adobe acrobat 5.0

So what i did was add new field, add action then add url. and the line java....yahoo.com is the only one that work so far. and now i need to put focus on it.
×

Success!

Help @dnn123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...