Good Morning, I have recently written some JavaScript that is being called by a VB.NET web page. The following is the command to call it: <INPUT Type="button" name"timbutton" VALUE"Click Here" onclick"WriteToFile();"> I now want to call the same javascript method esxcept with a few parameters. On the webpage there are 2 labels, I want to pass through the text from the label into the javascript function. Does anybody know how I can extract the value and pass it in the VB.NET webpage HTML ? Thanks Tim.
make sure their is equal signs between the name= and the value= and the onclick=. Find the labels ID: <body onload="YourJSFunction(document.getElementById("labelName").innerHTML);">