How can we open a new window from JavaScript code?

 Posted by deccansoft on 10/30/2010 | Category: ASP.NET Interview questions | Views: 2432


window.open("JS1.htm","wn","menubar=no,width=200,height=300,scrollbars=yes,resizable=yes")
here “JS1.htm” is the URL of the page which will open in new window “wn” is the name of the window and last parameter is to set attributes of the new window which opens.
In body tag


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response