View Full Version : Java script email code
webdesignee
03-09-2006, 10:14 PM
What is the code for creating an email adress in javascript?
thanks in advance,
web designee
jscheuer1
03-10-2006, 05:57 AM
Vague question. In the body of a page you can do this:
<script type="text/javascript">
document.write('someone@somedomain.com')
</script>
What exactly did you have in mind?
webdesignee
03-10-2006, 02:14 PM
I have a java script navigation menu and I was wanting to link my name in it to an email.
thanks,
web designee
jscheuer1
03-10-2006, 02:30 PM
That would depend upon the menu. In many cases, an ordinary mailto: href can be substituted for a navigational one. Find and read your menu's documentation and/or its configuration area's comments for specific clues.
webdesignee
03-10-2006, 07:53 PM
Turns out I had the code in the wrong place for it too work. Lol the joys of javascript.
web designee
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.