Advanced Search

Results 1 to 5 of 5

Thread: Java script email code

  1. #1
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java script email code

    What is the code for creating an email adress in javascript?

    thanks in advance,
    web designee

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,684
    Thanks
    43
    Thanked 3,128 Times in 3,094 Posts
    Blog Entries
    12

    Default

    Vague question. In the body of a page you can do this:

    Code:
    <script type="text/javascript">
    document.write('someone@somedomain.com')
    </script>
    What exactly did you have in mind?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    I have a java script navigation menu and I was wanting to link my name in it to an email.

    thanks,
    web designee

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,684
    Thanks
    43
    Thanked 3,128 Times in 3,094 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Mar 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Turns out I had the code in the wrong place for it too work. Lol the joys of javascript.

    web designee

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •