Javascript, take inputted string and print all possibilities. : I've been searching for ours all over the web, including here for a way to solve this project I have for homework this week. To answer your question, the professor gave us a book that in no way connects with the homework so my textbook has been all but useless. I am very new to Javascript and don't even know where to begin with this project. 

Project: "Write a JavaScript function that generates all combinations of an inputted word." 

Example: "dog" would print: dog dgo god gdo odg ogd

I kinda wrote out the steps I need the code to make:
1. Ask user for a string. (i guess using some sort of input box but IDK which to use.) 2. Pass string to a function. 3. Function breaks the string into letters. 4. stores letters in an array. 5. Finds all combinations of stored array letters. 6. prints combinations in inner HTML.

Like I said I am very new to JS and so please explain any answers and feel free to ask questions and I'll do my best to answer them quickly.
