/    Sign up×
Community /Pin to ProfileBookmark

link with button

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.
? ?

to post a comment
HTML

15 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoDec 15.2003 — <a href="page"><img src="image" alt="alternate text" border="0"></a>
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — 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
Copy linkTweet thisAlerts:
@Paul_JrDec 17.2003 — [i]Originally posted by AxMan936 [/i]

[B]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 [/B]
[/QUOTE]


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

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.
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — is the "#" supposed to be replaced?

is that liek making it a computer decided value?

thanx a lot tho!
Copy linkTweet thisAlerts:
@Paul_JrDec 17.2003 — 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.
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — o i get it

thanx again for your help!
Copy linkTweet thisAlerts:
@Paul_JrDec 17.2003 — You're welcome. ?
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — 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?
Copy linkTweet thisAlerts:
@fredmvDec 17.2003 — [i]Originally posted by AxMan936 [/i]

[B]is there a way to make a link to close a window? [/B][/QUOTE]
&lt;a href="#" onclick="self.close();"&gt;Close this window.&lt;/a&gt;
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — 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?

Copy linkTweet thisAlerts:
@fredmvDec 17.2003 — No problem. ?
Copy linkTweet thisAlerts:
@PeOfEoDec 17.2003 — 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.
Copy linkTweet thisAlerts:
@Paul_JrDec 17.2003 — [i]Originally posted by PeOfEo [/i]

[B]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. [/B][/QUOTE]


Yup, completely agree with him there.
Copy linkTweet thisAlerts:
@AxMan936Dec 17.2003 — 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...
Copy linkTweet thisAlerts:
@PeOfEoDec 17.2003 — 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.
×

Success!

Help @aquarelita spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...