Open new command terminal using javascript

I wish to open a new command line terminal (either Gnome terminal or X terminal) using javascript in the web.

Mean when i click on a button on web, a new terminal will prompt out.

And this terminal should already contain the command i want.

Any expert can help will be much appreciated?

I didn’t think the security policies of Javascript in a browser would allow something like this to be done, but I haven’t looked into it in detail.

ken_yap is right.