Browser handling in ruby

Hi,

Is there anyway in ruby to handle the browser window(like in
javascript)? Or is there any way to implement the javascript in ruby?

Thanks in advance.

Karthik

Karthi kn wrote:

Hi,

Is there anyway in ruby to handle the browser window(like in
javascript)?

js executes in a browser. ruby executes on a server that is hundreds of
miles away from the browser. When ruby finishes executing, the server
sends a page containing html and js to the browser. The browser then
executes the javascript and displays the html. Browsers only
understand html and js; they don’t know what ruby is.