Lesson 8
document.write, windows, frames
Examples: Building colors and drawing boxes
Exercise #8
- Develop a page containing an input field and a button.
- When the user clicks the button it should activate a script which creates a new web page and opens it in a new window.
- This second web page should contain,
- as text, at the top of the page, the string typed into the field by the user
- a button and an input field
- when the user clicks this new button it should rewrite the document displayed in the second window
- the rewrite should:
- display the newly provided string broken apart with its letters typeset across the cells of one row of a table
- provide one button, labelled "back", which restores the second window to its original state.
- typeset the first string in the same table as the first, on a second row, if the two words share no common letters;
or if the two words do share at least one letter in common in a column of the table and intersecting the second word.
Images are from Museum of Wonders or Curiosities of the World, Henry Davenport Northrop, D.D. copyright 1892.