Click to See Complete Forum and Search --> : what does this code do?


SeanPaul72
08-06-2003, 08:33 PM
What does the href ="#" do in the following image map?

<map name="rightnav"><area alt="" coords="89,17,148,33" href="#" onClick="document.lion1003.submit();"><area alt="" coords="185,16,247,33" onClick="return logoff()" href="http://www.southerninvestmentmortgage.com">

It takes me to the next page but I don't understand how it knows what the next page is. And I need to control what the next page will be regarding previously entered user input.



I'm just a little confused.

Thanks

Exuro
08-06-2003, 08:47 PM
The href="#" just makes it so that the page doesn't go anywhere when you click the link. The onClick is what's actually changing the page there. It's bringing you to whatever the page is specified in the Action attribute of the form called lion1003 on your page.

Charles
08-07-2003, 05:42 AM
Originally posted by Exuro
The href="#" just makes it so that the page doesn't go anywhere when you click the link. The onClick is what's actually changing the page there. It's bringing you to whatever the page is specified in the Action attribute of the form called lion1003 on your page. That's true for most, but not all, browsers. On 13% of browsers the page will go back to the top and do nothing more. This is a fatal flaw in the page.

chris9902
08-07-2003, 05:51 AM
it's an image map:rolleyes:

mapname:: this is the ID of the map

area alt:: the message your browser will display when you hover over the area your coords are set

coords:: 4 points that make your button on an image

href:: link to button

onClick:: tells it what to do (i think)