Tag Archives: tricks

Using browser as an arithmetic calculator

Some times while on browsing you need to calculate something and you open any application like calculator.Its okay but for simple arithmetic calculator why will you go out fr0m the browser if you can do the same calculation in single click just by opening new tab.This is very simple and based on the JavaScript language.
Lets do some calculation :

step1: In your browser,open a new tab.

step2: Now type(In URL Field i.e in address bar of the browser)
javascript:(airthmatic expression you want to evaluate);
(It will give you output in body of the browser)

You can also use another method for getting output in an alert window.
javascript:alert(your arithmetic expression);
write the following line in the address bar of your browser.(Don’t forget to end the line with semicolon)

step3: You will get the output like this in the browser’s body(top left corner).

step4: End of the Fun.