Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW Exam 1D0-735 Topic 8 Question 61 Discussion

Actual exam question for CIW's 1D0-735 exam
Question #: 61
Topic #: 8
[All 1D0-735 Questions]

Consider the following code:

The processform() function is not executed when the submit button is pressed. What change should be made to correct this?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Twana
5 months ago
Can you imagine someone trying to use the onfocus event to submit a form? That's like trying to start a car with a toothpick!
upvoted 0 times
...
Hana
5 months ago
This is a classic case of a mismatched event handler. Option B FTW!
upvoted 0 times
...
Shaquana
5 months ago
Haha, whoever wrote this code must have been having a bad day. Clearly, the onsubmit event is the way to go. Option B is the answer.
upvoted 0 times
Christa
3 months ago
Yep, option B is the correct answer in this case.
upvoted 0 times
...
Launa
3 months ago
Definitely, that will fix the issue with the processform() function not being executed.
upvoted 0 times
...
Tom
3 months ago
I agree, the onsubmit event handler should be added to the
tag.
upvoted 0 times
...
Tiffiny
3 months ago
It's a simple fix, just need to make sure the event handler is in the right place.
upvoted 0 times
...
Lavelle
3 months ago
Definitely, that will fix the issue with the processform() function not being executed.
upvoted 0 times
...
Cristal
4 months ago
I agree, the onsubmit event handler should be added to the tag.
upvoted 0 times
...
...
Charlene
5 months ago
I see your point, Donette. I think I will go with A) as well. It makes more sense to me now.
upvoted 0 times
...
Donette
5 months ago
But adding the onsubmit event handler to the tag directly triggers the function when the submit button is pressed.
upvoted 0 times
...
Jerry
5 months ago
I disagree, I believe the correct answer is B) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Ronny
5 months ago
Ah, I see the issue now. The form is not properly linked to the processform() function. Option B is the way to go here.
upvoted 0 times
Reyes
4 months ago
Good to know for future reference. Thanks for the explanation!
upvoted 0 times
...
Gregoria
4 months ago
Exactly, it will ensure the function is executed when the submit button is pressed.
upvoted 0 times
...
Emeline
5 months ago
That makes sense. It will link the form to the processform() function.
upvoted 0 times
...
Dorcas
5 months ago
Option B is correct. The onsubmit event handler should be added to the tag.
upvoted 0 times
...
...
Donette
5 months ago
I think the correct answer is A) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Felicitas
6 months ago
The processform() function is not being executed because the onsubmit event handler is not properly attached to the form. The correct answer is B, adding the onsubmit event handler to the tag.
upvoted 0 times
Doretha
5 months ago
C) The onfocus event handler should be added to the tag.
upvoted 0 times
...
Onita
5 months ago
B) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
Latricia
6 months ago
A) The onsubmit event handler should be added to the tag.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77