jeremyhache
Programmer
Is there a way to create a loop in javascript that will loop html code? I have a table on a screen to be printed, and it's formatted to fit perfectly on one printed page. When the page loads, I want it to be able to create additional pages based on a variable from the previous page, let's say, "Number_of_Boxes". I can't just have it print multiple times, the pages will vary slightly. For instance, the first page should have a variable that equals 1, the second 2, and so on, until it equals the "Number_of_Boxes" variable. Can you imbed html within javascript like that, I'm pretty new to the whole thing. Thanks in advance!!!