SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist Mr. Tech's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript in Email?

    Is it possible to use JavaScript in emails? Is it supported?

  2. #2
    SitePoint Evangelist gollux's Avatar
    Join Date
    Feb 2005
    Location
    Oregon, USA
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript is disabled in all e-mail clients in our company and the stuff I have at home defaults to not having javascript enabled.

    Sitepoint Article here on coding html e-mails that I've found really useful. Paragraph towards the bottom says:

    Avoid JavaScript. Period. Most email software today disables JavaScript, and you'll find that newsletters with JavaScript are much more likely to be treated as spam.
    So I've pretty much provided an inverted answer that says, yes, depending on the client, you can use javascript in e-mail, but don't depend on it...
    Released under the Fiasco Labs Digital Damnation Copywright,
    it's yours to make whatever the 7734 you want with it.

    (c) 2005 Fiasco Labs All Wrongs Reserved

  3. #3
    SitePoint Evangelist Mr. Tech's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that. My client was wanting a section in in his email so when someone mouses over a button, a drop down box or soemthing like that would apepar with his email... If he moused over another button ti would his address etc...

    Is there any other wya to do this?

    Quote Originally Posted by gollux
    Javascript is disabled in all e-mail clients in our company and the stuff I have at home defaults to not having javascript enabled.

    Sitepoint Article here on coding html e-mails that I've found really useful. Paragraph towards the bottom says:



    So I've pretty much provided an inverted answer that says, yes, depending on the client, you can use javascript in e-mail, but don't depend on it...

  4. #4
    Made with a Mac! philm's Avatar
    Join Date
    Sep 2001
    Location
    Portsmouth, UK
    Posts
    735
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript, a definate no no, would get marked as spam in a second. Along with adding a form, it's a surefire way of nobody getting to see your email
    Quote Originally Posted by Mr. Tech
    Is there any other wya to do this?
    Not really no... how about linking to a fully functional webpage from the email, tailor the content so it's more of a teaser??

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,837
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Some email programs provide an option for people to turn on support for Javascript. I don't know why they do because with that turned on emails with viruses and spyware attached can install themselves on the computer without having to ask first - a major security hazard.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •