+ 1

Guys I need your help. How to design the HERMAINE text? Please help me.

<!DOCTYPE html> <html> <head> <title>Page Title</title> <script type="text/javascript"> function process(){ hermaine.fullname.value="HERMAINE"; } </script> </head> <body> <form name="hermaine"> <input type="button" value="Submit" onclick="process()"/> NAME: <input type="text" name="fullname" value=""/> </form> </body> </html>

25th Sep 2017, 10:53 AM
Hermaine Catherine
Hermaine Catherine - avatar
3 odpowiedzi
+ 1
You forgot to run process(); and script tag better located at before end of body closing tag.
25th Sep 2017, 11:48 AM
Calviղ
Calviղ - avatar
+ 1
But my teacher says its correct. The problem is I dont know how to design it.
25th Sep 2017, 1:50 PM
Hermaine Catherine
Hermaine Catherine - avatar
0
Yes, your program is correct, I overlooked the onclick event calls the function. What do you mean by design it? Do you want to style it with CSS?
25th Sep 2017, 2:17 PM
Calviղ
Calviղ - avatar