I have been taking the advice of the experts in this forum and am using modals where I can instead of using the above openwindow code. It's been going good, thanks!
One issue I am having is that like the above code, page2 has code that conflicts with page1 where the modal resides. It's using database calls etc and can't be put on page1.
So is there a way that I can use my modal code and call page2 in the modal that will show on page1. Hence, this is why I have been using the JS function above. And if the answer is no, am I forced to continue with the same JS code?
Your help would be appreciated.