If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

windows Modal Dialog redirect itself without opening new window

Hello I am newbie on javascript and now I need help on my project to redirect my dialog window to another dialog.
So I mean dialog1.aspx has a link that redirect itself to dialog2.aspx. I already try and it always open a new windows.
Or maybe someone has some workaround about this?

Your visitor is supposed to be the one deciding what opens where - that's why the target attribute was made obsolete in 1997. It was only valid in HTML 3.2.
Most people don't want new browser windows opening any more and prefer either to have them open in a new tab or as an overlay on the current page.
There never has been any way to specify a new tab in HTML or JavaScript since tabbed browsers were introduced long after 1997.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

This is definitely the wrong forum as it is in the Java forum. I'm just not sure if the asp forum makes more sense than the JS forum, but given the interactive nature I'd say the JS forum makes more sense.