function - javascript: how to use different parameters? -
i supposed make variable description of product using parameters. how make function tell parameters apart?
parameter example:
buildproduct('hp 4426', '4426','newest , best laptop hp computer') buildproduct('ibm 88123 thinkpad', '88123','ibm micro laptop computer') buildproduct('dell dimension 2400', '2400x','a fast 2.4 ghz computer, 80 gb hd, 256 meg, cdrw , dvd.') code:
function buildproduct(prodname, prodid, proddescription) { var data = makeheader() data +=" ..... ..... output simple 1 line description of product using parameters above ..... add footer, after 1 line description ..... use 1 document.writeln in function (see warning below) ..... close document (see warning below) } so have several different links, each opening description window. how make html tell parameter call?
i having bit of trouble understanding going wrong.
Comments
Post a Comment