Title: obfuscate email &#8211; javascript?
Last modified: August 19, 2016

---

# obfuscate email – javascript?

 *  [joecat](https://wordpress.org/support/users/joecat/)
 * (@joecat)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/obfuscate-email-javascript/)
 * I looked at a number of email obfuscation plugins and none of them are what I
   want.
 * I used to use a simple bit of javascript like this:
    <script language=”JavaScript”
   type=”text/javascript”>document.write(MailTo(‘username’,’domain.com’,”,1,”,”,”))
   </script><noscript>_username_ at _domain_ (dot) **com**<div class=”text_sm”>*
   Replace "at" with "@", & "(dot)" with "."</div></noscript>
 * The beauty of this was that simple bots didn’t pick up on the email address, 
   but it looked fine (copy and pasteable, etc) once rendered by the browser.
 * Is there any way I can duplicate this in a WordPress page?

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/obfuscate-email-javascript/#post-1787236)
 * Review [Using_Javascript](http://codex.wordpress.org/Using_Javascript).

Viewing 1 replies (of 1 total)

The topic ‘obfuscate email – javascript?’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/obfuscate-email-javascript/#post-1787236)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
