Our Feeds
Categories
Home
About
XploitZ
Vulnerability
Hacking
Shellcode
Buffer Overflow
How to increase the JIO Internet Downloading Speed After Exceeding Full Speed Limit
Web Application Vulnerabilities: Dawn, Detection, Exploitation and Defence Slide Show
Samsung SecEmailUI Script Injection Exploit
Programming
CSS
C
CPP
Python
PHP
Java
HTML
Android
Bubble Sort Tutorial - Algorithm and Code
Searching Algorithms - Data Structures and Algorithms - Simplified
Generate ER-Diagram Using pgAdmin 4
Video Tutorials
PlayStore*
Home
Web Applications
Find Area of Rectangle - JavaScript Application
Tuesday, 9 April 2013
AJITH KP
Find Area of Rectangle - JavaScript Application
AJITH KP
April 09, 2013
No comments :
Here a simple
JavaScript
application to calculate the area of
rectangle
.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Area Of Rectangle</title> <style type="text/css">input { background:#CCCCCC; color:#333333; } </style> <script type="text/javascript">function area(frm) { if(isNaN(frm.width.value) || isNaN(frm.height.value)) { alert("Input Integers in Width and Height"); } else { var w=frm.width.value; var h=frm.height.value; var area=w*h; alert("Area of Rectangle: "+area); } } function checkW(frm) { if(isNaN(frm.width.value)) { alert("Check Width."); } } function checkH(frm) { if(isNaN(frm.height.value)) { alert("Check Height."); } } function checkA(frm) { if(isNaN(frm.area.value)) { alert("Check Answer."); } } </script> <center> <form><input name="width" value="Weight" onchange="checkW(this.form)" /> X <input name="height" value="Height" onchange="checkH(this.form)" /><input type="button" style="border-radius:5px; background-color:#000000; color:#006600;" onclick="area(this.form)" value="CalculatE" /></form></center></head><body> </body></html>
Related Posts
WordPress Finder
Google Dork Generator
Web Application Vulnerabilities: Dawn, Detection, Exploitation and Defence Slide...
Next
« Prev Post
Previous
Next Post »
Popular Posts
Easiest way to convert RGB Color Image to Gray scale Image in Java
Hello GuyZ, I would like to share Java code to convert RGB images to Gray scale images. I have seen many Java codes which converts im...
Web Application Vulnerabilities: Dawn, Detection, Exploitation and Defence Slide Show
ABSTRACT Web applications are popular software application types in which the client runs the application stored in server in his/her we...
Histogram Equalization Algorithm and Implementation in Java
Histogram equalization is a technique used to enhance the contrast of image using the histogram of image. The histogram of image represents...
Fist GUI Program - FASM
I hope you have read the previous posts about FASM. Else please read it here: http://terminalcoders.blogspot.in/search/label...
Digital Camera Day or Night - Python Solution
"You need to construct a feature in a Digital Camera, which will auto-detect and suggest to the photographer whether the pi...
Beautiful Black-Green Theme for Hackers [GNOME/GTK/KALI LINUX]
If you like this theme download it from here: http://downloads.ziddu.com/download/24041123/HackerTheme.tar.gz.html ...
OpenGL: Line Drawing - DDA Algorithm
Hello GuYz, DDA algorithm is another popular line drawing algorithm. Source Code #include <gl/glut.h> #include <Wind...
Buffer Overflow Tutorial: Socket Programs
Buffer Overflow is the vulnerability which make your system high risk. It allows unlimited access to the attacker, and allows inject shell...
Reverse IP Look up Tool in PHP
Reverse IP look up tool is very important for the hackers who need to hack servers and he can find vulnerable website from a lis...
PGM Image Viewer for Windows
The "PGM"(Portable Graymap Format) file is one of the extension of image file. This type of image is normally used for researches...
..:: SUPPORT US ::..
Labels
Programming Language
Programming Languages Theory
Adv. Hacking
Hacking
Vulnerability
C++
ALOGORITHM
CPP
Java
C
Python
Linux
PHP
Shellcode
Buffer Overflow
JavaFX
x64
Android
Digital Image Processing
Graphics
Image Processing
Metasploit
OpenGL
AI
FASM