This is a discussion on .How do I make a link or form in one frame update another frame? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; .How do I make a link or form in one frame update another frame?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| In the frameset document (the HTML document containing the <frameset> <frame> tags), make sure to name the individual frames using the NAME attribute. The following example creates a top frame named "navigation" and a bottom frame named "content": <frameset rows="*,3*"> <frame name="navigation" src="navigation.html"> <frame name="content" src="content.html"> <noframes><body> <!-- Alternative non-framed version --> </body></noframes> </frameset>Then, in the document with the link, use the TARGET attribute to specify which frame should be used to display the link. (The value of the TARGET attribute should match the value of the target frame's NAME attribute.) For example: <a target="content" href=...> To target a form submission, use the TARGET attribute of the FORM element, like this: <form target="content" action=...> Note that when forms are processed entirely by JavaScript, the target frame must be specified in the JavaScript. The value of the TARGET attribute is irrelevant. Normally, the default target frame is the current frame ("_self"). To change the default target for every link/form on the page, use the TARGET attribute of the BASE element, like this: <base target="content"> |
| |||
| In the frameset document (the HTML document containing the <frameset> <frame> tags), make sure to name the individual frames using the NAME attribute. The following example creates a top frame named "navigation" and a bottom frame named "content": <frameset rows="*,3*"> <frame name="navigation" src="navigation.html"> <frame name="content" src="content.html"> <noframes><body> <!-- Alternative non-framed version --> </body></noframes> </frameset> Then, in the document with the link, use the TARGET attribute to specify which frame should be used to display the link. (The value of the TARGET attribute should match the value of the target frame's NAME attribute.) For example: <a target="content" href=...> To target a form submission, use the TARGET attribute of the FORM element, like this: <form target="content" action=...> Note that when forms are processed entirely by JavaScript, the target frame must be specified in the JavaScript. The value of the TARGET attribute is irrelevant. Normally, the default target frame is the current frame ("_self"). To change the default target for every link/form on the page, use the TARGET attribute of the BASE element, like this: <base target="content"> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cross-Frame Scripting | P.Sathiya | PHP Programming | 60 | 03-20-2008 04:09 AM |
| Add Frame to a gif | Savior | C# Programming | 10 | 02-25-2008 10:37 PM |
| Frame works in php | venkatbi | PHP Programming | 10 | 12-05-2007 04:00 AM |
| Why do my links open new windows rather than update an existing frame? | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-27-2007 03:59 AM |
| Goto the particular frame on Keystroke | oxygen | Flash Actionscript Programming | 1 | 07-21-2007 02:45 AM |