/    Sign up×
Community /Pin to ProfileBookmark

Need help understanding what occurs when element is clicked

Dear All:

I would like to understand what code is execute when the following element is clicked on
[url]https://www.google.com/voice/#trash[/url]

[code]
<div id=”gc-inbox-delete-forever” class=”goog-inline-block goog-button goog-button goog-button-base goog-button-base-collapse-right” style=”-moz-user-select: none;” role=”button”>
<div class=”goog-inline-block goog-button-base-outer-box”>
<div class=”goog-inline-block goog-button-base-inner-box”>
<div class=”goog-button-base-pos”>
<div class=”goog-button-base-top-shadow”> </div>
<div class=”goog-button-base-content”>Delete Forever</div>
</div>
</div>
</div>
[/code]

I am quite a Javascript newb, and any help much appreciated!

Thank you
Misha

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@amsterdamharuMay 23.2010 — Nothing is executed, the code you posted does not show any events attached to any element.

<element onclick="dosomething()" id="myid"

or

document.getElementById("myid").onclick=dosomething;
×

Success!

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