1 <script>
function search() {
var type=document.getElementById ("DropDownList_searchType").value;
var key = document.getElementById("TextBox_key").value;
if (type == "学伴") {
window.parent.main .location.href = "Stu_FriendSearchResultList.aspx?key=" + key;
//从frameset中的一个页面中的按钮点击后跳转到另一个框架中显示,main为另一个框架的名字
}
}
</script>
<asp:Button ID="Button1" runat="server" Text=" 搜 索 " OnClientClick="search()"/>
2
window.ContentList .location.href = 'Stu_DataContentList.aspx';
//当前页的iframe名字