Ismail This user has been deleted
|
I am making a javascript form to make the codes for my
javascript function but when I put the forward slash "\" in
the form processor function, the slash does not appear in
the result form.
it is supposed to appear like this:
document.write(\'write\',\'the\',\'code\',\'beautifully\',\'and\',\'nicely\');
but instead the result is this:
document.write('write','the','code','beautifully','and','nicely');
Can anything be done to make the slash appear?
below is the javascript form and function
- <script>
- function makeCode(){
- kod="document.write(\'"+codemaker.taitel.value+"\',\'"+codemaker.imej.value+"\',\'"+codemaker.komen.value+"\',\'"+codemaker.sitename.value
- +"\',\'"+codemaker.link.value+"\',\'"+codemaker.taget.value+"\');";
- codemaker.suggestions.value=kod;
- }
- </script>
- <div>
- <form name="codemaker"></div><div>
- title <INPUT TYPE="TEXT" NAME="taitel" value="write" SIZE="50"> </div><div>
- image <INPUT TYPE="TEXT" NAME="imej" value="the" SIZE="50"> </div><div>
- comment <INPUT TYPE="TEXT" NAME="komen" value="code" SIZE="50"> </div><div>
- site name <INPUT TYPE="TEXT" NAME="sitename" value="beautifully" SIZE="50"></div><div>
- site link <INPUT TYPE="TEXT" NAME="link" value="and" SIZE="50"> </div><div>
- window name <INPUT TYPE="TEXT" NAME="taget" value="nicely" SIZE="50"> </div><div>
- <INPUT TYPE="SUBMIT" NAME="name" VALUE="get your code" onclick="makeCode();return false"></div><div>
- <TEXTAREA NAME="suggestions" ROWS="5" COLS="70"></TEXTAREA>
- </form></div>
Copy the Code
this topic has been posted here too
http://webmastercool.com/forum/i ... &st=0#entry2789
[ Last edited by Sarah_Radzi on 17-6-2004 at 11:25 PM ] |
|