custom button error

i am trying to make a custom button in html and javascript to get item history of a special customer. everything is working fine except when i input a value from user in javascript and then call a function it gives me an error Line : 1, Char:1, Object expected error. i am attaching my code at botton if anybody had the same problem and they would like to share the solution.

this is the code in javascript . after i click on the submit button it gives me the error object expected at line 1 char 1

imp = imp + " What is your Refrence #? "; final (a) is another function in the script

Reply to
Shoby
Loading thread data ...

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.