Prompt Result with document.write() (Legacy Demo)

Legacy demonstration: clicking the button preserves the original behavior by replacing the page with document.write() output.

Return to tutorial on window prompt