Forum Moderators: phranque

Message Too Old, No Replies

javascript:void(0)

appears in bottom status bar when button clicked

         

corporate

7:37 pm on Jun 3, 2003 (gmt 0)

10+ Year Member



Help! I have a home page with navigation buttons that are supposed to present a drop down box with links to .asp pages that connect to small databases and items therein. Well for some reason all I get when I click on the button is javascript:void(0) in the bottom status bar. I do not have a clue where to go to try to figure this out. The one button that I have redirected the hyperlink to an html page works just fine but the other buttons do nothing, not even giving me the drop down box. Here is a sample line
</a><map name="2"><a name="top">
<!--alt="Mayor and Council" --></a>
<area shape="rect" coords="31,28,191,41" href="javascript:void(0)" onMouseOver="popUp('elMenu2',event);document.blackball01.src='images/3m.gif'" onMouseOut="popDown('elMenu2');document.blackball01.src='images/3.gif'" onClick="return false">
<area shape="default" nohref>
Any help on where to go would be appreciated.

universalis

8:16 pm on Jun 3, 2003 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld corporate!

Are you expecting a pop-up to appear when you click on the link? Looking at the code sample you gave, you will see (in among the rest):

href="javascript:void(0)"

and

[b]onClick[/b]="return false"

This tells the browser to do nothing when the link is clicked. The other instructions in there are:

[b]onMouseOver[/b]="popUp('elMenu2',event);"

and

[b]onMouseOut[/b]="popDown('elMenu2');"

Which give instructions for what to do (opening or closing a pop-up, I assume) when you mouse over the area.

Does the menu appear when your cursor hovers over the link? If you want it to open when you click on the link, it should read something like:

[b]onClick[/b]="popUp('elMenu2',event);"

corporate

5:38 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



First may I thank you for your reply. It is very understandable.
The menu does not appear on either a click or when the mouse passes over. It was appearing on the click before and I have gone back and looked at the code from prior and it appears to read the same.
I would like to know where to look to find these menus which had a list of choices in them. Does this code give any clue on where these might be?
Is there another area that could be affecting this button issue that I should maybe look at?
Thanks again for all the help