Using selenium getEval we can achieve many tasks which are not possible to achieve normally. To achieve this Selenium RC provided with getEval function.
Syntax:
getEval("javascript code as string"); It returns result of Java script.
Let's have simple example first, below example written using Junit but you can convert getEval script it to your preferred language as it is.