View Full Version : passsing javascript variable via URL and read it in form textfield

09-15-2011, 04:55 AM
hi ,
i am trying to pass a javascript variable into URL ..but not getting the value..

var newID = 2;
row.insertCell(6).innerHTML = "<a href=Update_Gate.cfm?GateIdVar=newID>Edit Gate</a>";

i am getting

"newID" in Update_Gate.cfm page ...

i want to pass this javascript variable in url and read it on the other page as form field value

any help !!

Old Pedant
09-15-2011, 05:18 AM
var newID = 2;
row.insertCell(6).innerHTML = "<a href=Update_Gate.cfm?GateIdVar=" + newID + ">Edit Gate</a>";

09-15-2011, 05:29 AM
Thanks Old Pendant !!