i want to create an applet which will call javascript function which is -
Code:
function printreceipt(tax,subtotal,total)
{
 
subtotalElem=document.getElementById("total");


var taxElem=document.getElementById("tax");

productElem=document.getElementById("product-name");

alert("here are my products" + taxElem.innerHTML + subtotalElem.innerHTML);
...