javaccript code

by Banned 3 replies
4
Hello everybody

This is lucy smith, new to this forum as well as javascript, i am trying to write code to send an email using javascript but was enable to do it and also a vertical scroll bar moving up code i need urgently, kindly help me either providing code or provide me source from source from where i can get it
#programming #code #javaccript
  • JavaScript is a client side scripting language. Sending email from a Website requires a server side language such as PHP.

    Hope this helps,

    T
    • [1] reply
    • You do not need Javascript to do that you want.

      Simply include a mailto link in your page and when the user clicks on it their email client is automatically opened with the 'to' field automatically prefilled.

      Example:
      Code:
      <a href="mailto:you@somedomain.com">contact us</a>
      You must make sure to encode the email address so that bots and webpage scrapers do not harvest your email address for spamming. This is VERY important.

      Try this:
      Encrypt mailto-email links

      Sean
      • [1] reply

Next Topics on Trending Feed

  • 4

    Hello everybody This is lucy smith, new to this forum as well as javascript, i am trying to write code to send an email using javascript but was enable to do it and also a vertical scroll bar moving up code i need urgently, kindly help me either providing code or provide me source from source from where i can get it