[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: OT HTML Help
--- In ukha_d@xxxxxxx, "Alex Monaghan" <ha@m...> wrote:
> How can I update multiple frames by a single click ?
>
> I'm wanting to have a menu frame and a content frame, with title
frame
> etc... I'd like to be able to reload content, title and possibly
menu frames
> with a single mouse click.
>
> Is this easily do-able ?
>
> PS I know frames suck... but this is for a quick mock-up
You can do this with client side scripting (usually JavaScript). Here
is an example function to set the url for three frames:
<!-- hide script from old browsers
<SCRIPT LANGUAGE="JavaScript">
function load3frames()
{
parent.frames[1].location.href = 'url1.htm';
parent.frames[2].location.href = 'url2.htm';
parent.frames[3].location.href = 'url3.htm';
}
</SCRIPT>
-->
You could then assign this function to the OnClick event of a link or
button. With a bit of playing around you can pass the frame numbers
and URLs through the OnClick event too so that different frame
contents are loaded according to button/link clicked.
HTH
Graham
Home |
Main Index |
Thread Index
|