Search HouseOfScripts.com

 

All Scripts        JavaScripts        ASP Scripts        Other Scripts

 

  Javascript: Open a New Window asp, send, email, cdonts, link, recordset, hyper, hyperlink, create, list, box, dependant, dynamic

This is the function to open a new window.
window.open("URL","Title","Parameters");
Example:
onClick="window.open('../index.html', 'myWin', 'resizable=yes,toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=yes')"
You can click Here.
Explanation:
URL is your URL such as http://www.houseofscripts.com
Title is the name of your window. If you have another window with the same name and you haven't closed the window yet, whatever URL you put in that link will open in the same window.
Parameters is a list of the different parameters a window can have. Let's view available parameters:

resizable-
Allows window can be resized.
toolbar-
The browser's toolbar, which contains the Back, Forward, Stop and other buttons.
location-
The text area of a browser where you can type URLs.
directories-
The directories that Netscape browsers have called "What's new," "What's cool," and so on.
status-
This is the message bar at the bottom of your window. When you move your mouse over a link, the URL appears in the status bar.
menubar-
This is the bar with File, Edit, View, and other items.
scrollbars-
This allows scrollbars.
width-
The width of the window in pixels.
height-
The height of the window in pixels.

 

 

 

 


Home       Scripts       Active WebTools       Web Templates       Forum       Tools        Hosting       Questions/Comments       Add/Request