Thursday, August 16, 2007

Free Download RoboForm - Automate Logins - Remember Passwords

New Window Links on Pages, in Menus and in Search Forms

To have a link open in it's own window so people won't be leaving your site, follow these directions:

A normal link looks like this:

To have the link open in a new window add this:

New window link inside a menu.js:
In most cases to add a new target link inside a menu.js just add target="_blank" as outlined above. See below for special menu.js cases.


Sidebar link from an IFrame:
Some Allwebco templates include a "sidebar.htm" or "sidebar-left.htm". Links inside these IFrame pages should use either the blank target above or, a target="_top" like the following.

For search forms:
Some Allwebco templates use external .js files for the search forms on the link pages, some have the code right on the page.

If your template uses .js files open each search_ .js file and add the following code. If your template has the code on the page you must edit the page itself:

The form code now:

Change this to:


Special cases in some menu.js files:
In some special cases if you have menu.js code like the following:

You may need to edit that like this for a new window link:

New window link in javascript drop menus:
For info on target or new window links in a Javascript drop menu click here.


Related Topics:
Adding a Pop-Up Window

source: allwebco-templates.com

Thanks for visiting my blog, subscribe to my RSS feed. Thanks for visiting!