十万火急,, <a href="javascript:openUrl('a.jsp')" target="set_content">test</a>function openUrl(obj1) { this.location.href=obj1;} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把 target="set_content" 去掉 皮皮的再这么改一下应该可以。主要是参数的引号和this问题<a href="javascript:openUrl('a.jsp')" target="set_content">test</a>function openUrl(obj1) {window.location.href=obj1;} <a href="javascript:openUrl(1)" target="_self">test</a>function openUrl(obj1) {if(obj1 == "1")window.location.href="a.jsp";if(obj1 == "2")window.location.href="b.jsp";} 解决拉,谢谢,,这样写-----------------------------------------<a href="javascript:openUrl('http://www.163.com');" >test</a><script>function openUrl(obj1){ document.frames['set_content'].location.replace(obj1);}</script><table width="100%" height="100%"><tr><td><iframe id="set_content" name="set_content"></td></tr></table> html 静态 JS 调用数据问题 163邮箱中单击-添加附件效果怎样实现? 上传文件在不同服务器,文件编码不同 js 键值对问题 大家帮帮忙啦 怎么判断控件的类型? 100分求一倒计时js 点击详细信息,弹出一个层显示所有的信息,信息是从后台获取的 急!求指教一个样式切换的问题 用JS给网页input赋值失效 求一段代码,定义一个页面的大小,随便把地址栏屏蔽掉 急~任何使用js实现托拽功能,请教高手
主要是参数的引号和this问题
<a href="javascript:openUrl('a.jsp')" target="set_content">test</a>function openUrl(obj1) {
window.location.href=obj1;
}
if(obj1 == "1")
window.location.href="a.jsp";
if(obj1 == "2")
window.location.href="b.jsp";
}
这样写-----------------------------------------<a href="javascript:openUrl('http://www.163.com');" >test</a>
<script>function openUrl(obj1)
{
document.frames['set_content'].location.replace(obj1);}
</script>
<table width="100%" height="100%"><tr>
<td>
<iframe id="set_content" name="set_content"></td></tr></table>