Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can I pass parameter value on body onload using javascript function 


What I have tried:

<html>
<head>
<script language="javascript">
function func1(emailid){
    //the code for pass parameter value to my response.aspx
"http://localhost:51376/Response.aspx?emailId=emailid">
   }
</script>
</head>
<body onload="func1(1234)">
</body>
</html>
Posted
Updated 2-Nov-18 0:27am

1 solution

"http://localhost:51376/Response.aspx?emailId=" + emailid
 
Share this answer
 
v2
Comments
ParkashKaur 2-Nov-18 8:07am    
Thank to answer but this is not working.
F-ES Sitecore 2-Nov-18 8:11am    
If emailid has weird characters you might need

"http://localhost:51376/Response.aspx?emailId=" + encodeURIComponent(emailid)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900