I am new to JavaScript. Here is the scenario; I have an imagebutton that changes every 10 seconds and when I click it opens a link in a new window and when the image changes and I click on the new image, its link replaces the link in the same child window. However I want it to open the link in a completely new window. How can I make that possible please? (Preferably in the code behind Thank You)
This is the JavaScript code I am currently using:
Page.ClientScript.RegisterStartupScript(this.GetType(), "open", " window.open(" + site + ",'open_window','myWindow','width=300,height=300,0,status=1,');", true);
If you specify “_blank” as a window’s name, a new window will always be opened.