Pass Javascript Array Value to HTML
<p>My Javascript array Contents looks like below</p>

<pre><code>Order[0] = Order ID
Order[1] = Unused
Order[2] = Payment Amount
</code></pre>

<p>I want to Pass the following parameters oid=Order[0] &amp; amt=Order[2] to the following</p>

<pre><code>&lt;img src="https://gan.doubleclick.net/gan_conversion?advid=K123456&amp;oid=12345&amp;amt=123.45" width=1 height=1&gt;
</code></pre>

<p>I have written this code but it doesnt work</p>

<pre><code>&lt;script&gt;    document.write('&lt;img src="https://gan.doubleclick.net/gan_conversion?advid=K539002&amp;oid=+%Order[0]%+&amp;amt=+%Order[2]%" width=1 height=1&gt;')&lt;/script&gt;
</code></pre>

<p>Not sure what is the problem in it</p>
