NOTE: My original page has a menu item on clicking which, I will be redirected to Test2.jsp.
The reason I couldn't open the new window from Test1.jsp itself is, I want user to complete some test in the new window and then come back to a page that asks him to click on something to get the score. [I haven't put that refresh button code in test2.jsp, but just the skeletal code]
How do I go about opening the new window so that it is not treated as a popup?
Any help is appreciated.
[ January 09, 2006: Message edited by: Priyaa V Kumar ]
[ January 09, 2006: Message edited by: Priyaa V Kumar ] [ January 09, 2006: Message edited by: Bear Bibeault ]
I would put a check there - if window did not open display a div in the middle of the page with a message about popup blocker and a link to hide this div and open a window. [ January 09, 2006: Message edited by: Yuriy Fuksenko ]
Thanks for your replies, guys. I was able to overcome the problem by this approach.
In click event of test1.jsp open the new window with test2.jsp as target. Then, in test2.jsp do the logic and then do a JSP redirect (or a javacript window.location.href) to the actual page you want to show on the new window.
She'll be back. I'm just gonna wait here. With this tiny ad:
a bit of art, as a gift, that will fit in a stocking