You don't. You access a JavaScript variable from JavaScript, which may be embedded in HTML using <script> tags (or in tag attributes that are interpreted as JavaScript "scriptlets"). What are you actually trying to do? bear [ April 14, 2003: Message edited by: Bear Bibeault ]
I have a javascript function,in which i have a vaiable say strAccessVal. I want to access this value in my HTML code <input type = text value = "" strAccessVal> where strAccess may contain "readonly" or "". so how do I do this ?
U cannot access the javascript variable in HTML. What u can do is, set the value of the text field to strAccessVal in javascript itself. the code will be something like