field3d
August 20th, 2009, 10:09 AM
I making an html to send an email with mailto: command. The procedure is i made a function:
raceracerace=""
raceracerace=raceracerace + "any string"
raceracerace=raceracerace + "any string2"
function emailrace(){
location.href = 'mailto:test@test.com?subject=' + 'subect' + '&body=' + raceracerace;
}
but in the middle of:
raceracerace=raceracerace + "any string"
raceracerace=raceracerace + "any string2"
I need to put a carriage return to put that result on my body of mailto command like is on my funtcion i tried this and not work:
raceracerace=raceracerace + "any string" + "'"
raceracerace=raceracerace + "any string2"
I tried this too and nothing:
raceracerace=raceracerace + "any string" + "<br>"
raceracerace=raceracerace + "any string2"
Anyone know how to put a carriage return where i need? All of the rest is working perfect my function and all only is the carriage return on the string.
Thank you
raceracerace=""
raceracerace=raceracerace + "any string"
raceracerace=raceracerace + "any string2"
function emailrace(){
location.href = 'mailto:test@test.com?subject=' + 'subect' + '&body=' + raceracerace;
}
but in the middle of:
raceracerace=raceracerace + "any string"
raceracerace=raceracerace + "any string2"
I need to put a carriage return to put that result on my body of mailto command like is on my funtcion i tried this and not work:
raceracerace=raceracerace + "any string" + "'"
raceracerace=raceracerace + "any string2"
I tried this too and nothing:
raceracerace=raceracerace + "any string" + "<br>"
raceracerace=raceracerace + "any string2"
Anyone know how to put a carriage return where i need? All of the rest is working perfect my function and all only is the carriage return on the string.
Thank you