Mailto Alert

By timendum Last update Dec 17, 2005 — Installed 989 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Jeong-hoon Kang User

I got it.
Great.

 
Jeong-hoon Kang User

You mean the below.

<html><head><title>Untitled Page</title>
function test(){
var links = document.links;
for (var i=0; i<links>
if ( (links[i].href.substring(0, 7).toLowerCase() ==

"mailto:") && (links[i].text) )
links[i].setAttribute("onclick", 'javascript:return

confirm("Are you sure you want to send an e-mail?")');
}
}
</head><body>someone</body></html>

 
Yokhannan 2 User

Very Nice! I use to have to use the "TargetAlert" Extension ( http://www.bolinfest.com/targetalert/ ) just to fight against mailto links... now I can uninstall it!!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel