2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Taywin
0

Do you want to insert the whole string starting from <script... or you want to insert a certain part? If it is the whole string, you could simply put it in the input tag value. I assume that your target input is 'Email'.

document.getElementById("Email").value = "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.ABC.com/members/display.php?token=email\"></script>"

Edited by Taywin: n/a

0

Maybe I did not do it right. Do I put the above code into the values field? If so it did not seem to work. Let me know.

0

Actually I am not really sure what element you want the output to be inside... Also, I am not really sure how you want the output to look like... Sometimes, you may need to escape '<' with '&lt;' and '>' with '&gt;' as well if you are displaying it (not inside an input or textarea box). Also, you may need to escape double quotes if you are not using them inside a single quote for a whole string. By the way, what I did about for assignment is what you want (assign to 'email' input element)?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.