A simple program to ask the user to give US Dollar value and convert into Philippine Peso equivalent using JavaScript programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.

Program Listing

   <title>US Dollar To Philippine Peso in JavaScript  </title>
 <style type="text/css">

 body {

 	font-family: arial;
 	font-weight: bold;
  display: inline-block;
  background-color: lightblue;
  padding: 6px;

  display: block;
  direction: rtl; 

  direction: ltr; 

  content: attr(data-text);

<script language="JavaScript">

function PesoConverter(){
document.converter.peso.value = (document.converter.us.value * 49.86).toFixed(2);


function Clear() {
document.converter.us.value ="";

function About() {
	alert("Created By Prof. Jake R. Pomperada, MAED-IT, MIT");

<h3>US Dollar To Philippine Peso in JavaScript </h3>
<form name="converter">
<label data-text="US Dollar">&nbsp;&nbsp;	
<input type="text" name="us" onChange="PesoConverter()" required="">
<br />
<label data-text="Philippines Peso">&nbsp;&nbsp;
<input type="text" name="peso"  required="">

<br /> <br>
<input type="button" value="Convert" title="Click here to convert." />
<input type="button" value="Clear"  
title="Click here to clear the text box."
<input type="button" value="About"  
title="Click here to know about the program."

Leave a Reply

Your email address will not be published.