0

why it is not working?

<div class="regis" <a href="Registration.jsp" ><input type="button" value="Registration"></a> </div>.. There is a button..if i click the button..it must open registration.jsp

19th Apr 2017, 7:03 AM
Somnath Ghosh
Somnath Ghosh - avatar
4 Answers
+ 11
Because you have not close your < div > in the first line. If "Registration.jsp" is in the same folder of your index.html, close the < div > and retry.
19th Apr 2017, 7:30 AM
Maz
Maz - avatar
+ 8
@adailar the button works well with me. The problem is the < div >
19th Apr 2017, 4:29 PM
Maz
Maz - avatar
0
you can't put a buton in a link 1- use a text in link and style it whit css 2- put buton in a form whit a post url (form action attribute)
19th Apr 2017, 4:23 PM
Mustafa Kenliç
Mustafa Kenliç - avatar
0
@maz technically it will work but it's not rigth way to do this.
19th Apr 2017, 4:51 PM
Mustafa Kenliç
Mustafa Kenliç - avatar