Hi, I'm getting nowhere trying to do this, so I need some help.
I have an empty div:And I want to add some code to it (in this case a call to a javascript function that develops the div content) when a onclick event occurs. I can test it with the code imbedded and it works perfectly.Code:<div id="imageArray" name="imageArray" align="center"> </div>
So I figure there should be so way to usebut that sure doesn't work, only pastes code text at the top of the page with div unchanged. I've tried other variants using appendChild without success. How can I do this. Oh BTW, I need to remove it as well.Code:document.getElementById('imageArray').innerHTML="<script type='text/javascript'> displayMyPage(dimensionOfArray, gallerylinks);</script>";
Your advice is appreciated. Thanks in advance



Reply With Quote



Bookmarks