Monday, April 22, 2013

Use Browser as Calculator:

While surfing if you need to calculate some figure then no need to open calculator in window. You can do simple calculation easily in browser. It is done by simple javascript, which is described below. You just need to write that script in address bar and press enter. answer would display immediately in an dialog box.


javascript: alert(calculation part);
for example 
calculate 6+5 
write javascript: alert(6+5); in address bar and press enter.
answer displyed in dialog box as shown below.


calculate 6*5-2
write javascript: alert(6*5-2); in address bar and press enter.



You can use +, -, *, /, % and can perform calculation easily without open windows calculator.

No comments:

Post a Comment