/    Sign up×
Community /Pin to ProfileBookmark

I have an image, and I want to have the image – so that when someone clicks the image a pop-up appears.

I know how to make it so that when someone clicks a link that is text a pop-up window appears, but I dont know how to have an image instead of text and have it clickable so that a pop up window appears, here is my code below – any tips would be great! Thanks,

[code]
<a href=”http://webaddress.com” onclick=”window.open(‘http://webaddress.com’,’popup’,’width=1000,height=1200,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0′); return false”>General Information</a> [/code]

Thanks!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 24.2008 — Replace the text with an image&lt;a href="http://webaddress.com" onclick="window.open('http://webaddress.com','popup','width=1000,height=1200,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"&gt;[COLOR="SeaGreen"]&lt;img src="anImage.gif" width="100" height="20" alt="General Information"&gt;[/COLOR]&lt;/a&gt;
×

Success!

Help @ChompGator 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...