Positioning any Popup Window to its desired Location using Javascript

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 1067
We have a window.moveTo method in HTML,which is used to move any popup window to its desired location.
Below is the code:-
<script type = "text/javascript" language = "javascript">
function move_popup_window()
{
var popup_window = window.open("http://www.dotnetfunda.com","","location = 1,status = 1,scrollbars = 1,width = 400,height = 250");
popup_window.moveTo(0,0);
}
</script>


//Now call move_popup_window function in any button OnClientClick event and move window as desired.

Comments or Responses

Login to post response