如何在javascript中传递查询字符串 [英] how to pass query string in javascript

查看:69
本文介绍了如何在javascript中传递查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用java脚本点击按钮打开弹出窗口。我将值存储在隐藏字段中,并将隐藏字段值作为查询字符串传递。但查询字符串传递null值。以下是我的源代码。



< input id =btnFamilyMedicalHistoryDe​​tailstype =buttonvalue =病史详情

önclick=JavaScript:window.open('../../../ User / ViewProfile / FamilyMedicalHistory.aspx?ID'= hfFamilyMemberId,'Medical History Details','height = 500,width = 500,resizable = yes ,scrollbars = yes')class =btn-1/>



谢谢

I am using java script to open popup window on click on button. i am stored the value in hidden field and pass the hidden field value as query string. But query string pass the null value. below is my source code.

<input id="btnFamilyMedicalHistoryDetails" type="button" value="Medical History Details"
önclick=" JavaScript:window.open('../../../User/ViewProfile/FamilyMedicalHistory.aspx?ID'=hfFamilyMemberId, 'Medical History Details','height=500,width=500,resizable= yes, scrollbars=yes')"class="btn-1" />

thanks

推荐答案

访问这里......



http://www.sitepoint.com/forums/showthread.php?687918-Passing-a-Querystring-on-to-another-web-page [ ^ ]
visit here...

http://www.sitepoint.com/forums/showthread.php?687918-Passing-a-Querystring-on-to-another-web-page[^]


PA ssing-a-querystring-value-through-a-javascript-window-open [ ^ ]


这篇关于如何在javascript中传递查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆