Click to See Complete Forum and Search --> : What is a gap in JS?
tweetie37
11-05-2003, 01:23 PM
Hi everyone:
Is gap in JS the same as <br> in HTML? If not, what does it do? I tried to take out the gaps in a JS coding and it gave me an error, why?
Thanks
fredmv
11-05-2003, 01:26 PM
Could you please show us the code you're working with?
tweetie37
11-05-2003, 01:31 PM
Sure. I am treating them like <br>. Is this what gap does?
Here is a small part of the script that has gap in it:
ordval+="\nTotal Gift Cost: "+curr+(Math.round(gift_cost*100)/100).toFixed(2)+gap;
ordval+="Overall Total Cost: "+(Math.round((flyer_total*100)+(gift_cost*100))/100).toFixed(2);
Does gap gives space between these 2 lines of code?
Thanks