/    Sign up×
Community /Pin to ProfileBookmark

Adding tooltip to link

I am currently using the following javascript to open a new window from a hyperlink on a page:

<a href=”javascript: window.open(‘http://www.website.com/index.asp?PageAction=VIEWCATS&Category=312&Page=1′,’figure’,’status=yes,resizable=yes,scroll bars=yes,width=800,height=600′).focus();”>

Is there a way I can add to the code or modify it so as to also add a tooltip to the link?

Thanks in advance for the help!

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@CharlesApr 15.2005 — &lt;a href="http://www.website.com/index.asp?PageAction=VIEWCATS&amp;Category=312&amp;Page=1" onclick="window.open (this.html, 'figure', 'status,resizable,scrollbars,width=800,height=600').focus(); return false" title="Tooltip text"&gt;
Copy linkTweet thisAlerts:
@David_HarrisonApr 15.2005 — Charles, only a small thing but I think you meant "this.href".

Evangogh, please don't [url=http://www.webdeveloper.com/forum/showthread.php?t=62832]cross-post[/url], it's considered impolite.
Copy linkTweet thisAlerts:
@Warren86Apr 15.2005 — ..
Copy linkTweet thisAlerts:
@EvangoghauthorApr 15.2005 — Thanks for the quick reply, Charles. That got the tooltips, but now a new window doesn't pop up, it just goes to the page...
Copy linkTweet thisAlerts:
@EvangoghauthorApr 15.2005 — Sorry about the cross-post - don't know my etiquette and wasn't sure which category it fell under. Won't happen again! ?
Copy linkTweet thisAlerts:
@BigMoosieApr 15.2005 — I'm working on an advanced tooltip, you can see some examples of what my code will mimmick at http://www.webdeveloper.com/forum/showthread.php?t=62473 and also offer any suggestions for this new code,
×

Success!

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

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

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