Board index » Web Programming » Scripting an interactive button click

Scripting an interactive button click

Web Programming287
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


-
 

Re:Scripting an interactive button click

<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.



"Lon W." <LonW@discussions.microsoft.com>wrote in message

Quote
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





-