# Browser handling in ruby

**URL:** <https://www.ruby-forum.com/t/browser-handling-in-ruby/130661>\
**Category:** Ruby\
**Created:** [March 1, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/browser-handling-in-ruby/130661 "2008-03-01T14:51:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthikeyan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Post date:** [March 1, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/browser-handling-in-ruby/130661/1 "2008-03-01T14:51:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![karthikeyan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Post date:** [March 1, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/browser-handling-in-ruby/130661/2 "2008-03-01T15:31:13Z")

</div>

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.
