How to run Javascript in Vaadin ?

How do I run javascript ?

I need to run javascript so that I can disable the statusbar of web-browser
With js I can do like “statusbar=no” but from vaadin how do I control statusbar of web browser?

I find pointers like

Javascript Integration :

http://vaadin.com/forum/-/message_boards/message/18008?_19_redirect=%2Fforum%2F-%2Fmessage_boards%2Fsearch%3F_19_redirect%3D%252Fforum%252F-%252Fmessage_boards%26_19_breadcrumbsCategoryId%3D0%26_19_breadcrumbsMessageId%3D0%26_19_searchCategoryId%3D0%26_19_searchCategoryIds%3D0%26_19_threadId%3D0%26_19_tabs1TabsScroll%3D%26_19_keywords%3Drun%2Bjavascript

running javascript :

http://vaadin.com/forum/-/message_boards/message/69026?_19_redirect=%2Fforum%2F-%2Fmessage_boards%2Fsearch%3F_19_redirect%3D%252Fforum%252F-%252Fmessage_boards%26_19_breadcrumbsCategoryId%3D0%26_19_breadcrumbsMessageId%3D0%26_19_searchCategoryId%3D0%26_19_searchCategoryIds%3D0%26_19_threadId%3D0%26_19_tabs1TabsScroll%3D%26_19_keywords%3Drun%2Bjavascript

Hi,

If you are opening a new window, and want it w/o statusbar, you can do that via the java API, see Sampler for example:
http://demo.vaadin.com/sampler/#NativeWindow
(sets Window.BORDER_NONE).

If you want to call javascript explicitly, you can use the window.executeJavaScript() method as seen here:

http://demo.vaadin.com/sampler/#JSApi

(Sampler is your friend :wink:

Lastly, you can implement a custom client-side widget; see the Book of Vaadin for more info.

Best Regards,
Marc