Click to See Complete Forum and Search --> : link with button


aquarelita
12-15-2003, 04:14 PM
I know how to put images ( <img src="name"> )
and I know how to put links ( <li><a href="link"></a></li>
But How do I put a button....
I have the image, but I don't know how to put the link.
:confused: :(

PeOfEo
12-15-2003, 04:47 PM
<a href="page"><img src="image" alt="alternate text" border="0"></a>

AxMan936
12-16-2003, 07:14 PM
speaking of links...
i was wondering how you create a "back" link
i'm sure to some of you that's incredibly easy,
so if you could help me i'd be very grateful

Paul Jr
12-16-2003, 07:25 PM
Originally posted by AxMan936
speaking of links...
i was wondering how you create a "back" link
i'm sure to some of you that's incredibly easy,
so if you could help me i'd be very grateful


<a href="#" onclick="history.go(-1); return false;">Go back</a>

If you want to go back more than 1 page, just change the 1 to whatever the number of pages you want to go back is.

AxMan936
12-16-2003, 07:31 PM
is the "#" supposed to be replaced?
is that liek making it a computer decided value?
thanx a lot tho!

Paul Jr
12-16-2003, 07:43 PM
No, the "#" is there just to fill space. It doesn't do anything except, since the link doesn't lead to any URL, fill the space where the URL would usually be. You can actually fill it with anything, but the "return false;" in the onclick part of the link makes it dead, so even if there was a URL where the "#" is, the link wouldn't go there.


In other words, you can leave the quotes blank, or you can put whatever you want inbetween, just as long as you have "return false;" in the onclick.

AxMan936
12-16-2003, 07:48 PM
o i get it
thanx again for your help!

Paul Jr
12-16-2003, 07:52 PM
You're welcome. :)

AxMan936
12-16-2003, 08:21 PM
yes i kno, i'm a stupid new webdesigner (not liek there aren't enough of them)
but i have another question
is there a way to make a link to close a window?

fredmv
12-16-2003, 08:29 PM
Originally posted by AxMan936
is there a way to make a link to close a window? <a href="#" onclick="self.close();">Close this window.</a>

AxMan936
12-16-2003, 08:31 PM
omgosh you ppl are nice

ok umm,
the user clicks the submit button in a form...(with wahtever name) is there a way to laod up anothher page using the same button at the same time

liekt hey click "submit" and it send the e-mail and loads a specified page with the click of the button?

fredmv
12-16-2003, 08:32 PM
No problem. :D

PeOfEo
12-16-2003, 08:46 PM
You should be handleing email forms with a server side language, so just use a server side redirect. Back buttons and stuff like that can be handled with java script but when it gets to functionality, do it server side.

Paul Jr
12-16-2003, 09:25 PM
Originally posted by PeOfEo
You should be handleing email forms for a server side language, so just use a server side redirect. Back buttons and stuff like that can be handled with java script but when it gets to functionality, do it server side.

Yup, completely agree with him there.

AxMan936
12-16-2003, 10:21 PM
like i sed i'm failry new at this compared to most of you
so if you could explain a little of that, i'd apreciate it...

PeOfEo
12-16-2003, 10:35 PM
A server side language takes the form values, connects to the smtp server, sends them though it, then redirects you to another page. Server side scripting just meants the scripts are executed by the server rather then the browser. The server handles smtp connections, data bases, and outputs html and gets input etc. It is more secure and reliable. Do not use html to send forms because it requires the client to have a mail client and that is not always, or even often the case.