OK, I’m really confused here. I know how to use Javascript to display text in the browser or manipulate layers and images. But I’m being told that I need to use Javascript to dynamically fill some information in the source code of the page. I didn’t think Javascript could manipulate the source code – am I wrong?
Here’s the deal. I have an affiliate program that tracks purchases via an image tag on the check-out page. One of the variables the image needs is the amount field:
<img src=”
I need to fill the amount. It can’t be done via the cart because the cart doesn’t have a tag that can fill this in properly (it includes a $ sign, which I need to strip away). Since it’s within the cart’s functionality, I can’t reprogram it on the server-side either. Hence, I’m told I need to do it via Javascript.
But how? I have found no examples where Javascript was writing an actual tag into the source code. Is this possible? Thanks!