Hi all,

I have two TextBoxes on my web form.

One for hour and other for minit.

User type hour and minit and submit a form.

I want to display a message on that form after the time which is equal
to the current time when the hour and minit entered plus that hour and
minit.


For example,

Current time is 10 a.m.

User enter 1 hour and 30 minit.

I want a message to popup at 11.30 a.m.

Pls reply if u have solution.

Thanks...
Jeel

use the javascript timer function and set its interval to be the time entered.

using your example
setTimeout("alert('Some Message!')",5400000);


the 5400000 is the number of milliseconds before the function fires. 1 hr and 30 minutes = 90 minutes = 5400 seconds = 5400000 milliseconds.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.