/    Sign up×
Community /Pin to ProfileBookmark

evaluate attribute dynamically from database for anchor tag

evaluate pop window with runtime in href or onclink attribute
in anchor tag.

I get below data from my database column…

javascript:var kkk = window.open(‘http://www.infotechsw.com’,’_blank’,’resizable=yes,scrollbars=no,toolbar=no,personalbar=no,location=no,menu bar=no,status=no,maximize=yes,left=0,top=0,height=400,width=600′)

i set this data to a href attribute or onclick function in Anchor tag.

Finally i set below code for my my Java MAIL.
If i click hyper link name in my email new window should be opened.
Window name ,URL and other properties will come from database.

This is working as with below code for an HTML file,but not working from my email which has content type html…

Could any one help me..??


————————

<a href=”##” onclick=”javascript:var kkk = window.open(‘http://www.infotechsw.com’,’_blank’,’resizable=yes,scrollbars=no,toolbar=no,personalbar=no,location=no,menu bar=no,status=no,maximize=yes,left=0,top=0,height=400,width=600′);”>Hyper link name</a>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 30.2005 — If you are trying to run JavaScript from an email client, it won't work. JavaScript is normally not allowed in an email client for security reasons.
×

Success!

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