hi all,
i donno whether this is the right place to post me query.
i'm finding for a solution to my problem.
i'm using javascript to expand or collapse div tag as given below.
function switchMenu(obj)
{
var el = document.getEle mentById(obj);
if ( el.style.displa y != 'none' )
{
el.style.displa y = 'none';
}
else
{
el.style.displa y = 'block';
}
}
can any one tel me how to get the returned value from the script. for Eg: if i'm returning true or false where can i save these values from javascript so as to use them for further actions based on true or false?
thanks
i'm giving the DIV id to the function during call
<a href="javascrip t:switchMenu('d ivID);">
<img border="0" class="img_coll " src="Images.gif " style="z-index: 101; left: 961px;
position: absolute; top: 0px" />
</a>
thanks in advance
i donno whether this is the right place to post me query.
i'm finding for a solution to my problem.
i'm using javascript to expand or collapse div tag as given below.
function switchMenu(obj)
{
var el = document.getEle mentById(obj);
if ( el.style.displa y != 'none' )
{
el.style.displa y = 'none';
}
else
{
el.style.displa y = 'block';
}
}
can any one tel me how to get the returned value from the script. for Eg: if i'm returning true or false where can i save these values from javascript so as to use them for further actions based on true or false?
thanks
i'm giving the DIV id to the function during call
<a href="javascrip t:switchMenu('d ivID);">
<img border="0" class="img_coll " src="Images.gif " style="z-index: 101; left: 961px;
position: absolute; top: 0px" />
</a>
thanks in advance
Comment