Pass javascript variable as javascript function parameter from HTML -


The global javascript parameter declared at the top of my script is: param2.

I'm calling my work on body weight.

I would like to pass my global javascript parameter into a javscript function.

  & lt; Script language = "javascript" & gt; Var Ultimate 2; ... function tablepad (paramet 1) {...} & lt; / Script & gt; & Lt; Body Onload = "Tablepend ('Ultimate 2');" & Gt;   

I am far from being professional with Javascript, but I do not think there is a way to "insert" in HTML.

Can anyone talk to me right direction? I have seen the answer here about the variables passing through a function, but do not pass the javascript variable. "post-text" itemprop = "text">

I'm stupid, if any Thinking about the answer, you have to remove a single quote from the parameter name!

Comments