Weird, it loads another aspx page

  • Thread starter Thread starter sweetpotatop
  • Start date Start date
S

sweetpotatop

Hi,

Recently, I came across a very strange issue.

I was trying to open an aspx page called "test.aspx" by using

Response.Write(WindowOpen(
"<script>window.open('" & "test.aspx" & "','" & "test" &
"','resizable=yes,toolbar=yes,scrollbars=yes,menubar=yes,left=0,top=0,'
+ 'width=' + (screen.availWidth - 20) + ',height=' +
(screen.availHeight-110));</script>")

For some reason, it opened another aspx page. Before the page is even
loaded, I can see it was trying to load the page that I want, that is
"test.aspx" as I can see the caption of the page. But then it opens
the code of the other page when I debuged it. And a totally different
page is opened.

Any idea? Please advice. You help would be greatly appreciated.
 
Javascript is executed as browser sees it.
So if you have
WindowOpen(test.apx) in first line in your HTML then browser will open the
test.aspx right then, before it will render the original HTML to you

George.
 
Back
Top