|
-
javascript for temperature conversion
below is mt attempt to create a temperature conversion but the line:-
receive input from keyboaord
is spoiling when it should be gettint the item from
name = prompt("enter celsius on screen");
what have I done wrong please
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
<SCRIPT language="JavaScript" type="text/javascript">
document.bgColor="#990000";
name = prompt("enter celsius on screen");
receive input from keyboaord
imput value = degcels;
var degfahr;
degfahr=9/5*degcels+32;
document.write"the conversion is" degfahr "degrees"
</SCRIPT>
</BODY>
</HTML>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks