A question for HTML gurus

Tap-Out

Literotica Guru
Joined
Apr 6, 2002
Posts
3,566
Greetings,

I have an HTML question that has been bugging me now for a while.

I have a page with frames. One frame is called "left" the other "right". No problem. I also have buttons (not <a href links but <input type="button" things).

My question is how do I get a button in frame "left" to open in frame "right". I know with an <a href tag you just put a target="right" and it will work no problem. But I tried that with a button and nada. I also read something like onclick="parent.frame.location=' but that doesn't seem to work. Or if it works I'm not doing something right.

Does anyone out there know how to make my button target open in a frame? Please help me.

Thanks for reading.
 
Tap-Out said:
Does anyone out there know how to make my button target open in a frame? Please help me.

I can't answer your question directly, but I can suggest a way to find out.

Turn on the"Status Bar" in IE5 and float your cursor over a button that does what you want -- the syntax of the hyperlink should show in the status bar.

If that doesn't work, look at View -> Source and find the syntax you need that way.
 
I tried looking for sites that have this but I coulden't find any. I tried looking for them before I posted actuially. But thanks for the suggestion. Do you know of any sites with buttons that open in frames?
 
Ok, onclick is a ********** event-handler. So I think you have to define all frames with a JAVA-title and then the page with the buttons is "parents", from this page you can open/load the other frames.

I´m not very good in **********, but maybe it will help you to search in google for a tutorial in **********
 
LoneOne said:
Ok, onclick is a ********** event-handler. So I think you have to define all frames with a JAVA-title and then the page with the buttons is "parents", from this page you can open/load the other frames.

I´m not very good in **********, but maybe it will help you to search in google for a tutorial in **********

Okay my frames look like this:

<frame src="page.html" name="right" scrolling="auto"> so my frame has the name right. I'm not sure if this is the same as a java name or not.

My button looks like this:

<input type="button" value="button1" onclick="parent.frame
.location='page2.html'"> but it still doesn't work :(

Woe is me:confused:
 
LoneOne,

That bottom link gave me exactially the info I was looking for. Thank you so very much.
 
well if i can rembe right if you have a link in the left frame (left.html or whatever) an you want it in the right frame you
have to write it like <_a href="blah" target="right.html"> the link
</a> of course with out the underscore "_a" but im not 100 percent sure so good luck. its been a while since i made a webpage.
 
Tap-Out
Sorry to interrupt...........
I just had to tell you that you have the cutest christmas av I've seen!:)
 
Back
Top