Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set target frame?

Status
Not open for further replies.

raulgh

Programmer
Aug 20, 2003
20
SG
Hi all:

Can someone tell me how to make a navigation frame? I have a left frame which contains several submit buttons on it and I want that when I click some button, something will happen on the right frame. The left frame, however, will remain unchanged.

The submit button code is like is:
<input type = submit style=&quot;height:30px;width:150px&quot; name= cmdRecentMsg value = &quot;Recent Message&quot; onclick =&quot;createMsg(1);&quot; />

There is a hidden input &quot;Msg&quot; on the left panel which will be passed to the right frame.

creatMsg() is a JAVA script function:

function createMsg(num)
{
if (num ==1)
document.forms.frmSearch.Msg.value = &quot;RecentMsg&quot;;
}

The problem I have is when I click the button, changes was made on the left frame instead of the right frame. This is not what I want. I think It has something to do with the target frame, but I really don't know how to use it. Can someone pls clarify this for me? Thanks a lot.



 
yeah, it really works. Thanks a lot petey. Tek-Tip HTML forum is great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top