Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 46,737,955 Downloads in 87 Countries

Tell a Friend About Our Cool Software

CoffeeCup Free DHTML Menu Builder Help Center

Sign In For Priority Support Forgot yours ?
More Free DHTML Menu Builder Help: Other Resources: Contact CoffeeCup:

Send Snail Mail:
CoffeeCup Software
165 Courtland Street
Suite A, Box 312
Atlanta, GA 30303

Give us a call:
Toll Free: 866.734.HTML (4865)
Sales Hotline: 678.495.3480
Fax: 678.495.3481

DHTML Menu Builder - Opening Links in New Window

We've had many requests from customers who wanted to know how to have their DHTML Menu links open in a new browser window, instead of in the same window the menu resides in.

Below is the following workaround:

In the DHTML generated code, scroll down about halfway until you see the following line:

this.LinkTxt.indexOf('javascript:')!=-1?eval(this.LinkTxt):DcLoc.location.href=this.LinkTxt

And you need to comment it out, and add:

window.open(this.LinkTxt)

In its place.

So it should look something like:

//this.LinkTxt.indexOf('javascript:')!=-1?eval(this.LinkTxt):DcLoc.location.href=this.LinkTxt
window.open(this.LinkTxt)
}}


Save the HTML.

*Note: This will cause all your links in the DHTML menu to open in a new window. You can't have some open in the current window and others in a new one.
Was this article helpful?

Free DHTML Menu Builder Help Index | Free DHTML Menu Builder Homepage

Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.