1.call the dom element:javascript
java script or snippet we call it in selenium, we can write using the dom concept or css concept .css
Example: Selenium RC code
Selenium sel
sel.getEval("dom=window.document.getElementsByName('password')[0].value=test123"); //enter the password
String pwd =sel.getEval("dom=window.document.getElementsByName('password')[0].value");// retrieve the value from the application.html
2.call the javascript function:java
selenium.getEval("selenium.browserbot.getCurrentWindow().yourFun(1)");app
note: yourFun(str) is the javacript function in html.dom