ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

OPEN NEW WINDOW AUTOMATICALLY

This JavaScript will open a new browser window automatically when your web page is accessed. You can also change the optional settings you want depending on how you want the new window to display in the browser. 1 = Yes and 0 = No for displaying purposes.

 

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
WinObj=window.open("http://www.aspwebpro.com/","My New Window", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 250,top = 35");
// End -->
</script>

</HEAD>

<BODY>

<a href="javascript:popUp('http://www.mysite.com/mypage.asp')">Open New Window</a>

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
28 August 2008