+ 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>
3 Réponses
+ 1
You forgot to run process();
and script tag better located at before end of body closing tag.
+ 1
But my teacher says its correct. The problem is I dont know how to design it.
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?