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

!javascript href 参数的有关问题

2012-01-26 
求助!!!javascript href 参数的问题代码如下: inputtype button name query id query value q

求助!!!javascript href 参数的问题
代码如下: <input   type= "button "   name= "query "   id= "query "   value= "query "     onclick= "javascript:window.location.href= 'list_report.asp?startdate= '+document.getElementById( 'startdate ').value&amp;enddate= '+document.getElementById( 'enddate ').value; "/>

单独传?startdate= '+document.getElementById( 'startdate ').value或传enddate= '+document.getElementById( 'enddate ').value   参数没问题,要两个一起传就不知道怎么写了,总是出错!求达人帮助啊!

[解决办法]
input type= "button " name= "query " id= "query " value= "query " onclick= "javascript:window.location.href= 'list_report.asp?startdate= '+document.getElementById( 'startdate ').value + '&enddate= '+document.getElementById( 'enddate ').value; "/>

热点排行