首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

求js传递url参数格式,马上给分,该怎么解决

2012-01-18 
求js传递url参数格式,马上给分functionshowmodal2(){variddocument.getElementById( tb_ownerid ).valu

求js传递url参数格式,马上给分
function   showmodal2()
{  
var   id=document.getElementById   ( "tb_ownerid ").value;  
alert(id);  
var   ret   =   window.showModalDialog( 'SUB.aspx?ownerid=id ',null, 'dialogWidth:350px;dialogHeight:300px;help:no;status:no;scroll:no ');  
document.all.tb_weight.value   =   ret[0];   }

我想把id做为参数ownerid传过去,现在过去的是字符串id

[解决办法]
没明白LZ出了什么问题!


[解决办法]
var ret = window.showModalDialog( 'SUB.aspx?ownerid= '+id,null, 'dialogWidth:350px;dialogHeight:300px;help:no;status:no;scroll:no ');
document.all.tb_weight.value = ret[0]; }

热点排行