|
CommandPrompt
The CommandPrompt object is simply a command line interface for javascript, within a web page. Just type javascript commands into the text box and hit enter, and your code is executed. It is built so that it can easily be added to any page. From within it, you can call any javascript command, get or set the value of any existing variable within the page, or evaluate expressions. Although, It is still subject to the rules of your browser's security model. An instance of the CommandPrompt object can be created as easily as this: <script> var cmdPrompt = new CommandPrompt(); </script>...And it is written such that there can be multiple instances of the CommandPrompt per browser instance (in the random event that you actually need this). Try typing any javascript code into the text box on the CommandPrompt and see what happens. Here are some examples of what you can type (and then hit enter)...
|
Try Me! |