/    Sign up×
Community /Pin to ProfileBookmark

I’m been deep into my website and I need to know how or is it possible to make a simple submit button into a link. I got the submit button to show without the form tags. But not able to get it to act like a link. Here is what I got:

[code=html]
<a href=”index.html”><input type=”submit” value=”Lets Go!”></a>
And
<input type=”submit” href=”index.html” value=”Lets Go!”>
[/code]

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@pcthugMar 08.2006 — try either[CODE]
<a href="http://www.google.com"><button onclick="location.href='http://www.google.com';">Hello</button></a>
or
<form action="http://www.google.com"><input type="submit" value="Hello"></form>
[/CODE]
Copy linkTweet thisAlerts:
@jshalcottauthorMar 08.2006 — thanks man both of them worked, picked the second one easier to remember and so i didn't have to add another thing to my css sheet, I'm using a custom text areas.
×

Success!

Help @jshalcott 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,
)...