一个很简单的js传值问题 我有一个text和一个button做一个搜索,要的效果是 按一下这个button onclick事件,跳转到XXX_text的值.html页面我该怎么做?因为我完全不懂js所以求助一下。。对了 不要弹出新页面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在页面写一个IFRAME,提交到IFRAME里面就可以了document.forms[0].target = "IFRAME_NAME";document.forms[0].action = action;document.forms[0].submit(); window.location.href="xxx_" + document.getElementById("TEXTID").value+".html" //button加如下事件OnClientClick="GotoURL()" //js函数如下 function GotoURL() { var=url+document.getElementById('tbURL').value; window.open(url) } function goUrl() { var url = document.getElementById("textValue").value+".html"; window.location.href= url ; } function GoGoGo() { window.location.href=document.getElementById("textValue").value+".html"; } 若打开新窗口就用window.open(),否则就用window.location.href 写一个onclick()事件来调用你所需的代码. <input type="text" name="aa"></input><input type="button" name="bb" onclick="window.location.href='xxx_' + document.all.aa.value+'.html'"></input> 渐显效果 求助 Ext的嵌入问题!急急急... 请问这样的功能怎样实现! 用JAVASCRIPT 兄弟们啊,帮忙修改一个正则吧。 js怎么修改当前url? 紧急求救toFixed的用法 一个页面在不是最大化的情况下提交给下一个页面,怎么让下一个页码最大化。急!! 如何比较两个对象是否相等?比如。。。 一个关于打印applet的问题,在线,跟帖有分,百分等待。。 我想在一个button的Onclick()事件里,关闭当前页面,打开另一个页面怎么做?谢谢! 寻求熟悉YUI框架的JS高手 javaScript数组问题?
document.forms[0].target = "IFRAME_NAME";
document.forms[0].action = action;
document.forms[0].submit();
//button加如下事件
OnClientClick="GotoURL()"
//js函数如下
function GotoURL()
{
var=url+document.getElementById('tbURL').value;
window.open(url)
}
function goUrl()
{ var url = document.getElementById("textValue").value+".html";
window.location.href= url ;
}
{
window.location.href=document.getElementById("textValue").value+".html";
}
<input type="text" name="aa"></input>
<input type="button" name="bb" onclick="window.location.href='xxx_' + document.all.aa.value+'.html'"></input>