View Full Version : windows Modal Dialog redirect itself without opening new window

10-05-2012, 09:42 AM
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?


Philip M
10-05-2012, 09:55 AM
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.

10-05-2012, 10:19 AM
Sorry for my bad explaination before.
What I've done before are like this :

1. main.aspx
call window.showModalDialog("dialog1.aspx");

2. dialog1.aspx
<asp:button id="button1" onClick="function_click"></asp:button>

protected void function_click(object sender, EventArgs e)



Is there any ways that I can redirect this modal dialog to other url.
And I don't know if I post this question to right forum or not. If it is not allowed here just delete it.


10-05-2012, 03:18 PM
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.