-
Step 1
Create a sub-folder of your main site root and name it "js." You'll store Javascript files in this sub-folder so you can easily find them later.
-
Step 2
Open WordPad, Notepad, an HTML editor or some other text editor and open a new blank document. Be sure you don't use Microsoft Word, it doesn't work too well with web programming languages.
-
Step 3
Add this block of code to your document:
-
Step 4
Delete "yourname" and replace it with the user name for your email address. If your email address were john@abc123.com, then you'd replace "yourname" with "john."
-
Step 5
Replace "yoursite" with the domain for your email address. Using our example, john@abc123.com, you would delete "yoursite" and replace it with "abc123.com."
-
Step 6
Save the file in your Javascript folder as "mailto.js."
-
Step 7
Open the HTML file where you want to place your email link and paste this line in an appropriate place:
Need to Contact Us?
You can amend "Need to Contact Us?" to read anything you desire.








