| Web Pages that Reproduce Themselves by JavaScript (1999) | |||||||||||||||
Abstract | |||||||||||||||
| this paper. The process of self-reproduction is explained below. The same page as shown in Figure 2 is divided into five parts in Figure 4. The program in the first part, which is labeled "Part F1," erases the page content shown in Figure 4 (document.clear();), and initializes arrays. Although the source of the running program is also erased, the running program itself, which is probably in compiled pseudo code, is (must be) preserved. The second part, which is labeled "Part F2," is part of the program, and it runs twice because it is in a for-statement. The same text as Part F1 is generated in the first run, and the same text as Part F2 is generated in the second run. The third part, Part C, runs once, and it generates the same text as Part C. The fourth part, Part L2, again runs twice. The same text as Part L2 is generated in the first run, and the same text as the last part, Part L1, is generated in the second run. Thus, the execution of whole program generates exactly the same text as the original HTML page. | |||||||||||||||
Publication details | |||||||||||||||
| |||||||||||||||