The reason we need this is we have a current system that uses a url to redirect to a page that used to appear in a popup (using window.open) but now the powers that be want page to appear within the current page, so I was thinking of a div (simulated popup) who would be made visible (easy to do) that displayed the html. I tried the window.location command but that redirect to a new page (just displaying the html)
So as I say, is there a way of doing something like "window.location = url" targets <div id="myId">
You can;t just shove an entire page of markup into a <div> and expect it to work. You'll either need to refactor the "included page" to be an HTML fragment that's legal to place within a <div> and use Ajax to fetch the fragment, or use an iframe to house the page.