点击左边的a标签后,在右边的iframe中显示网页 A_.Attributes.Add("onclick", string.Format("javascript:window.location.href(\"{0}\");", iframe.Attributes["src"] = ServiceUrl, ServiceUrl));但是 javascript:window.location.href 直接跳转了在同一页了,怎么才能把页面显示在iframe中
调试欢乐多
"javascript:document.getElementById('iframeCont2').src='http://www.baidu.com'"iframeCont2 为iframe 的id属性值