Input link | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Input link

<input type = "submit" name = "" value = "Sign up"> i want to make a link to this

7th Jun 2018, 7:24 PM
Alieldien
Alieldien - avatar
5 Answers
+ 5
Ok, if you want to make an input button link to another website is best to use the input type "button", the type "submit" is for forms. Recommended way to make the input button link to another website is using JavaScript: <input type="button" value="Go" onclick="window.location.href=' https://www.sololearn.com/ ';"> NOT recommended way is wrapping the input button in an anchor tag.
9th Jun 2018, 12:00 AM
Pao
Pao - avatar
8th Jun 2018, 1:31 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 4
So the input type "submit" is used to send form data to a file on the server. Is this what you mean with "make a link to this"? If that's the case, you would have to add an "action" attribute to the form tag and specify there where to send the form data when your submit input is pressed. If that wasn't what you were trying to do, could you please explain a little bit more?
8th Jun 2018, 2:19 AM
Pao
Pao - avatar
+ 2
thank you
9th Jun 2018, 12:01 AM
Alieldien
Alieldien - avatar
0
I mean that this code with CSS I make button when I click on it I want to appear another page
8th Jun 2018, 11:43 PM
Alieldien
Alieldien - avatar