Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

help with tree menu



8:42 am on May 22, 2008 (gmt 0)

5+ Year Member

Hi all.

This is a code of a tree menu.
I need to know what meens

onClick="javascript:{show(tr2,2); return false;}

why is needed "return false" and what is javascript:{........

Please reply me as soon as possible.Thanks a lot.

<body bgcolor="#F2F2F2">
<SCRIPT language=javascript>
function show(sec, n){
if (sec.style.display=="none")

<table cellpadding="0" cellspacing="0" border="0">
<td align="left">
<A onClick="javascript:{show(tr1,1); return false;}" href=""><STRONG>Image Configurations</STRONG></A>
<DIV id=tr1 style="DISPLAY: none; padding-left:50px;" align=justify>
Upload<br />
View Images<br />
<td align="left">
<A onClick="javascript:{show(tr2,2); return false;}" href=""><STRONG>Section</STRONG></A>
<DIV id=tr2 style="DISPLAY: none; padding-left:50px;" align=justify>
Add<br />
View All Section<br />


Featured Threads

Hot Threads This Week

Hot Threads This Month