Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How come return false prevent redirection of link ?Urgent Re: How come return false prevent redirection of link ?Urgent

#62931
Mr KiTT3N
Member

You cant have a link do both…. Either an Anchor link "<a href=…" will go to a location (ie index.html) or it will perform a javascript action…

If you want to show sub nav when the link is click you can pass information threw the hash ie (indext.html#show) then do

Code:
if(location.hash == “show”)
{
subNav(‘show);
}

ect….