View Full Version : AnyLink JS Drop Down Menu v2.3 Targeting IFRAME problem

06-27-2013, 04:30 PM
1) Script Title: AnyLink JS Drop Down Menu v2.3 targeting IFRAME problem

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

3) Describe problem:
I would like to target the link to an IFRAME instead of opening a new tab or targeting same window.
My Iframe name is Mainframe.
I put in the targetlink as my iframe name but it have same effect as '_new',
opening a new tab instead opening in the iframe.

var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:'Mainframe'} //First menu variable. Make sure "anylinkmenu1" is a unique name!
["Gallery", "content/gallery.html"]

Greatly appreciate if there is anyone that can help me!!

06-27-2013, 11:07 PM
Then there must be something wrong in your main page (containing the iframe).
On that page, there should be something like

<iframe name='Mainframe'></iframe>

<iframe id='Mainframe'></iframe>
I tested it, and it works with me.