I would like to create script where user enters two sentences. Sentence is terminated by dot (.) character. Provide a submit button "Reverse words in sentence". On submit button click, send the input sentence as Ajax request using dynamically created iframe. The backend should reverse the words in each sentence and send back the result to be displayed.
For Example, if the two sentences are:
"I am a good student. I will get good job."
The displayed results should look like
"student good a am I. job good get will I."