I have written a oneline Javascript and I want to make sure that it matches
with best practice:
<DIV ID=isw><image></DIV>
<A HREF="#" OnClick="docume nt.getElementBy Id('isw').inner HTML = '<IMG
SRC=i/M/test.jpg CLASS=L'>" CLASS=Mi>click here to change image</A>
If you click the image in the DIV with ID=isw should change to i/M/test.jpg
TIA
- Nicolaas
with best practice:
<DIV ID=isw><image></DIV>
<A HREF="#" OnClick="docume nt.getElementBy Id('isw').inner HTML = '<IMG
SRC=i/M/test.jpg CLASS=L'>" CLASS=Mi>click here to change image</A>
If you click the image in the DIV with ID=isw should change to i/M/test.jpg
TIA
- Nicolaas
Comment