Action when pushing av button

T

Terje

I have a frame page, where all buttons are in one of the
frames.

I want to change the content of two of the other frames
when pushing one button.

In the button dialog-box I only can manage to set one
target page.

Does anybody know ??
 
K

Kevin Spencer

Create a JavaScript function that changes the location property of the
document in each of the frames, and then have your hyperlink activate that
JavaScript. Example:

<script type="text/javascript"><!--
function changeTwo()
{
parent.frames[1].document.location = "someurl";
parent.frames[2].document.location = "someotherurl";
}
// --></script>

<a href="javascript:changeTwo()">Click</a>

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top