Opening a new winodow with Window.Open method

Rajesh_Kumar
Posted by Rajesh_Kumar under JavaScript category on | Points: 40 | Views : 477
Window.Open method opens a new window and loads the document specified by a given URL or navigates the app window to the specified location.

Syntax:
window.open(URL,window_name,window_features);
<script language="JavaScript">
function open_winow_example()
{
window.open ("http://www.dotnetfunda.com","my_window","menubar = 1,resizable = 1,width = 350,height = 250");
}
</script>


Now call open_winow_example() function in any button i.e. link,href an so on.

Note:We can also pass URL as aspx page/html page.

Comments or Responses

Login to post response