mailto links to GMail Popup

By peteb Last update Sep 4, 2009 — Installed 573 times.

Right click possible?

in
Subscribe to Right click possible? 2 posts, 2 voices



AFriend User
ChromeWindows

Any way to enable right click -> copy link address? Right now a right click and copy link address copies "javascript:..."

 
peteb Script's Author
FirefoxWindows

that's because the script removes the href and transfers it to the "onclick" action so we can get the mailto in a popup. If you would like to change this do these two things:

comment out line 27 like so:

//link.setAttribute("href", "");

then change line 26 to this:

link.setAttribute("onclick","win=window.open('','_blank','toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, height="+ height +", width="+ width +", top="+ top +", left="+ left +"');win.location.href='"+ link.href +"';return false;");

what this does is suppress the click on the link (by adding "return false")

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