用javascript实现
function aaa()
{
var text=window.form.textarea01.value;
window.open("the_open_file.php?text="+text,null,"");
}按钮点击响应这个js函数即可
function aaa()
{
var text=window.form.textarea01.value;
window.open("the_open_file.php?text="+text,null,"");
}按钮点击响应这个js函数即可
location:连接的url地址
?>
即可!
var text=window.form.textarea01.value;
其中文本域的具体定义方法是什么?即怎么样确定textarea01的
如果不是传递text,而是一个下拉的选择文本域又该怎么样定义??
form_name.textarea_name.value;
给你一个例子:
<select name="resources" onChange="window.open(resources.options[resources.selectedIndex].value)">
<option>点击下拉菜单
<option value="http://webpac.lib.sjtu.edu.cn/webpac/wgbroker.exe?new+-access+top">本馆书目查询系统
<option value="http://dialog.lib.sjtu.edu.cn/">Dialog查询系统
<option value="http://search.china.epnet.com/">EBSCO
</select>