Targets In Pull-Down Menus

Here's a tip from Mitchell Landry


I had e-mailed you a couple of days ago 
inquiring about changing frames from within 
a form (pop-up menu). You replied that target 
command does not work and you 
didn't know any other way.

I thought I would pass it along to you in case you receive more questions on the subject. To do it change

location=      to       parent.FrameYouWantToChangeTo.location=

Where (FrameYouWantToChangeTo) is a name of a frame you have predetermined.


Plus this from Tracy & John Rogers

This is not a JavaScript. It is a corollary to Mitchell Landry's comment in your Java Goodies (sic) section. He noted that you can change the frame a drop-down link goes to by putting "parent." in front of the "location=". What I've noticed is that if you have frames within frames and want the linked page to fill the browser from the top, you can put "top." in front of the "location=". I'm sure others are figuring that out on their own, but I thought this might save some people hours of frustration!

Back to the Button, Links, and E-Mail Scripts