Within my ASP.NET MVC View, I included this code snippet to display the content of my webpage:
var newWindow = window.open();
newWindow.document.write();
newWindow.document.write(document.getElementById("sbmtform").innerHTML);
newWindow.print();
I also have a separate div that needs to be printed on the next page within the same document. Can you please provide instructions on how to add pages or navigate to the next page in order to write my content?