J
James Bond 007
I am a novice to Javascript
(can do simple text-based pop-ups,
but not familiar with variable manipulation).
I would like to have a Javascript that gives
me the start time (I don't care about the date)
when the user entered my webpage
and then the time that the user hit the "Submit" button
on my HTML form.
For example, my current HTML form e-mails
the following to me when the user hits "Submit"
(these are just sample lines):
NAME = James Bond
CITY = New York
Obviously, the user entered the above values
in a text widget that was on my webpage.
I'd like to add to the above something like the following,
but without the user having to do anything other
than hit the "Submit" button:
START_TIME = 12:05pm
END_TIME = 12:10pm
The "START_TIME" would be the time that the user
first entered my webpage, while the "END_TIME"
would be the time that the user hit the "Submit" button
on that same webpage (I can't rely on the e-mail timestamp
for the "END_TIME", because there may be internet delays
which would screw up my results).
If you supply a script, you needn't give too much detail/comments
(I'm a computer programmer with over 25 years of experience,
but only 5+ years as a novice HTML programmer),
as long as you show all the necessary code lines.
If 24-hour time would be easier, then that's fine, too.
Any help would be greatly appreciated.
Thanks!
-----
Bond . . . James Bond
Do not reply via e-mail.
The address is phony to prevent spam, etc.
Thank you for understanding.
(can do simple text-based pop-ups,
but not familiar with variable manipulation).
I would like to have a Javascript that gives
me the start time (I don't care about the date)
when the user entered my webpage
and then the time that the user hit the "Submit" button
on my HTML form.
For example, my current HTML form e-mails
the following to me when the user hits "Submit"
(these are just sample lines):
NAME = James Bond
CITY = New York
Obviously, the user entered the above values
in a text widget that was on my webpage.
I'd like to add to the above something like the following,
but without the user having to do anything other
than hit the "Submit" button:
START_TIME = 12:05pm
END_TIME = 12:10pm
The "START_TIME" would be the time that the user
first entered my webpage, while the "END_TIME"
would be the time that the user hit the "Submit" button
on that same webpage (I can't rely on the e-mail timestamp
for the "END_TIME", because there may be internet delays
which would screw up my results).
If you supply a script, you needn't give too much detail/comments
(I'm a computer programmer with over 25 years of experience,
but only 5+ years as a novice HTML programmer),
as long as you show all the necessary code lines.
If 24-hour time would be easier, then that's fine, too.
Any help would be greatly appreciated.
Thanks!
-----
Bond . . . James Bond
Do not reply via e-mail.
The address is phony to prevent spam, etc.
Thank you for understanding.