I'm writing a dynamic menu using an external js file.
The js function begins the script. I've then used "document.write" to display the html tags.
However, I cannot make an event coded within a html <div> tag exectute the js function.
document.write(<'dt class="style1" onclick="javascript:expand('smenu2');">RECRUITS & FAMILY</dt>');
I've considered getElementByID
Any other ideas?
The js function begins the script. I've then used "document.write" to display the html tags.
However, I cannot make an event coded within a html <div> tag exectute the js function.
document.write(<'dt class="style1" onclick="javascript:expand('smenu2');">RECRUITS & FAMILY</dt>');
I've considered getElementByID
Any other ideas?