Command-line for browser

  How come there's no command line in the browser.
  A window pops up and lets me enter a little JS code that runs right off.
  It's a scripting environment, why not go all the way? Security issue?
  Or maybe it's there and there's a secret handshake? :-)