Scripting an interactive button click

L

Lon W.

I'm using frames on my site. I need to be able to change the contents of two
frames when I click on a nav button (new nav buttons, new main content).
Button properties only allows for one of these changes. How do I accomplish
this?

Thanks
 
K

Kevin Spencer

<script type="text/javascript?><!--
function openFrames(url1, url2)
{
parent.firstFrameName.location = url1;
parent.secondFramename.Location = url2;
}
// --></script>

<input type="button" onclick="openFrames('someurl', 'someOtherUrl')"
value="Click Me">

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
 

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