473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Need Help with Javascript Code

I need to ask user his/her name and his her birth year. The variables I use are UserName, birthYear, currentYear, and calculatedAge. I need to output to the user a message that says "Hello, userName, you are calculatedAge years old. I get to where the program runs and asks the questions but when I get the response it says that the age is 2008, which I have as the current year. Any suggestions??
Mar 28 '08 #1
1 975
aswath
18
I need to ask user his/her name and his her birth year. The variables I use are UserName, birthYear, currentYear, and calculatedAge. I need to output to the user a message that says "Hello, userName, you are calculatedAge years old. I get to where the program runs and asks the questions but when I get the response it says that the age is 2008, which I have as the current year. Any suggestions??

plz do post ur code which u have done so far.....
regards
Mar 28 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mahesh | last post by:
Hi, I need a javascript code for fitting the background image to the window. Help will be appreciated. Thanks, Mahesh
5
by: TrvlOrm | last post by:
HI There, I have been struggling with JavaScript code for days now, and this is my last resort! Please help... I am trying to create a JavaScript slide show with links for Next Slide,...
5
by: Tony Strazzeri | last post by:
Hi all, I a fairly new to html and Javascripting. I have been trying to write some code to hide my email address from spam harvesters. I copied the code from various web examples and modified...
3
by: Tony Strazzeri | last post by:
Hi, I recently posted "problem with Javascript code from Include" Thanks to response I have now fixed the problem. This is to ask how to solve my next problem/step. I am using javascript to...
1
by: mythry | last post by:
Hi, First of all thank u very much for maintaining this site.It was very good. I need a javascript code for when an option is selected from the combo the textboxes shoyld be enabled and disabled...
2
by: Piyu | last post by:
Hi I have problem with javascript code. Following is my code <div class="col1"><input name="loginName" type="text" class="txtbox" value="collins_sd@hotmail.com"></div> <div...
3
by: victorzou | last post by:
hi all ; I am new guy! I need to know whether the webpage is the top active IE window with javascript in the webpage,when I open 2 or more IE window. tks in advance! victor.zou
1
by: sosuko | last post by:
Hi once again, I have default.html which loads 2 html files in 2 separate iframes, the 2 html file names are as follows :- (a). home_left.html -- swf file is embedded in this html. (b)....
1
by: sudeepgg | last post by:
sequential number generation of number for customerid database in javascript code.Iam using ms access for database storage.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.