How to move window to its desired location?

 Posted by Rajesh_Kumar on 2/20/2014 | Category: JavaScript Interview questions | Views: 1868 | Points: 40
Answer:

With the help of window.moveTo Javascript function,we can move any child window to a desired location.

For Example:
function open_popup()

{
var popup_window = window.open("http://www.dotnetfunda.com", "mywindow","width = 100,height = 100");
popup_window.moveTo(0,0);
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response