/    Sign up×
Community /Pin to ProfileBookmark

Javascript help

I am building a site that uses paypal. On the home page, you can click on the shirt and a popup comes up with the design of the shirt. Under the shirt it says buy now. When you click on the buy now button, I want the popup to close and I want the original page to link to where you can purchase the shirt. Can anyone help?

Thanks,
FattMenton

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJan 22.2004 — Welcome to the forums.<input type="button" value="Buy now" onclick="opener.location='http://www.google.com/';self.close();" />
Copy linkTweet thisAlerts:
@FattMentonauthorJan 22.2004 — Thanks a lot for the help, I really appreciate it, but I was wondering one other thing. Is there anyway to use my own image rather than the input button?

Thanks again,

FattMenton
Copy linkTweet thisAlerts:
@fredmvJan 22.2004 — No problem. There sure is:<a href="#" onclick="opener.location='http://www.google.com/';self.close();"><img src="foo.png" alt="" style="border: 0 none;" /></a>
Copy linkTweet thisAlerts:
@FattMentonauthorJan 22.2004 — Thank you very very much! I have been surfing all day trying to figure this out. Thanks a lot!

FattMenton
Copy linkTweet thisAlerts:
@fredmvJan 22.2004 — You're quite welcome. ?
×

Success!

Help @FattMenton 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.18,
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,
)...