nagarjuna
01-04-2006, 11:16 PM
I have DIV layer in my web page which suppose to be closed when I click some link or button in it. Please advise on this.
thanks
Naga
konithomimo
01-04-2006, 11:37 PM
give the div an ID. For example:
<div id="mydiv">
mydiv is the assigned ID. Then just set its display to none from the onClick event of the link/button.
onClick="document.getElementById('mydiv').style.display = 'none';"
nagarjuna
01-05-2006, 01:58 PM
Hi,
Thanks for the prompt reply
I tried it and its working
give the div an ID. For example:
<div id="mydiv">
mydiv is the assigned ID. Then just set its display to none from the onClick event of the link/button.
onClick="document.getElementById('mydiv').style.display = 'none';"