How do I write on a document in my email?

Whats wrong? <script name="email" type="text/javascript"> var i = A.B.value function mail() {document.write(i);} </script> <form action="post"action="mailto:[email protected]?bo dy=(javscript:mail())"><input name="B" type="textarea"value=""> </input>

  • Answer:

    Except in rare circumstances, it's usually better to send mail from the server-side instead of relying on the client to have an email program set up. Additionally, textarea is not an input type; it's its own tag. It works like this: <textarea name="SomeName" rows="someInteger" cols="someInteger">Default Value</textarea> Next, you spell Javascript wrong in the action. Next, you should have the entire action be a Javascript call instead of injecting Javascript in the middle of it. Finally, there's no need to put a name attribute on the script element.

jkb3614 at Answerbag.com Visit the source

Was this solution helpful to you?

Other answers

It's sort of hard to tell with the way AB changes the formatting, but it looks like you are missing a semi-colon between "var i = A.B.value" and "function mail() ...". In other words, you need "var i = A.B.value;"

yeroco

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.