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.
Free DHTML Menu Builder Help Index |
Free DHTML Menu Builder Homepage