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="height:30px;width:150px" name= cmdRecentMsg value = "Recent Message" onclick ="createMsg(1);" />
There is a hidden input "Msg" 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 = "RecentMsg";
}
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.
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="height:30px;width:150px" name= cmdRecentMsg value = "Recent Message" onclick ="createMsg(1);" />
There is a hidden input "Msg" 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 = "RecentMsg";
}
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.