PDA

View Full Version : Resolved Anylink JS Drop Down Menu Link Targets



dmwhipp
09-20-2010, 07:13 AM
1) Script Title: Anylink JS Drop Down Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

3) Describe problem: Client would like most links in current window and others in a new window

I am using this menu for a school website. They would like most links opening in the current window, but would like links to other websites and PDF files to open in a new window.

I tried this coding for links to open in a new window, but it messes up the current window so it wasn't successful:

"javascript:window.open('/academics/pdf/2010-7thGradeCommunityService.pdf')"

How can I accomplish this?

Thanks,
Deborah

dmwhipp
09-20-2010, 08:44 AM
http://www.dynamicdrive.com/forums/showthread.php?t=54627