Question3Replies5136Views divyasripadarthy Member since 2013 13 posts Cognizant Technology Solutions Posted: May 9, 2016Last activity: May 10, 2016 Closed Solved How to pass parameters for function in HTMLHi Team,I need a help in passing the parameters for function in HTML.I have a function [with single parameter] in HTML and i need to call this function while loading the screen.The value for the parameter will be available from property in my step page.For that i am using,String FlowName = tools.getStepPage().getProperty(".FlowKey").toString(); window.attachEvent("onload", doCreateNewCase(FlowName );But this is not working. I am not getting any exception but the value is not available in function.Please help me to solve this issue.Thanks,Divya Sri Padarthy. User Interface ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 4 years agoUpdated: 4 years agoSathishSenthil replied to divyasripadarthyYou can use below way to store the string value in js variable,<script>var flowname = "<%=tools.getStepPage().getProperty(".FlowKey").toString()%>";</script> Posted: 4 years agodivyasripadarthy Cognizant Technology Solutions replied to SathishSenthilHi Senthil,Thanks for the reply.But the solution which you have provided is not working i.e., the value is getting populated into 'flowname' variable and is not available in the function.Is there any other alternative to pass variable for the function?Regards,Divya Sri Padarthy. Posted: 4 years agodivyasripadarthy Cognizant Technology Solutions replied to divyasripadarthyHi Senthil,The solution which you have provided is working.Thank You.Regards,Divya Sri Padarthy.