hi
I'm facing a small issue regarding the function
now what i want to do is, call a function without using Onchange or onclick or any of these options.
this is a simple code i have written: jus to get some idea
-------------------------------------------
[code=html]<html>
<script language=javasc ript>
function diableitem()
{
document.try.te xt.style.backgr oundColor = "#eeeeee";
}
</script>
<body>
<form name=try>
<input type=text name=num value=100>
disableitem()
</form>
</body>
</html>[/code]
-------------------------------------------------
i want to call this disableitem function.
im not able to do it here, as it jus prints "disableite m()" on the browser, doesnt call it.
Any help is appreciated.
Thank You.
I'm facing a small issue regarding the function
now what i want to do is, call a function without using Onchange or onclick or any of these options.
this is a simple code i have written: jus to get some idea
-------------------------------------------
[code=html]<html>
<script language=javasc ript>
function diableitem()
{
document.try.te xt.style.backgr oundColor = "#eeeeee";
}
</script>
<body>
<form name=try>
<input type=text name=num value=100>
disableitem()
</form>
</body>
</html>[/code]
-------------------------------------------------
i want to call this disableitem function.
im not able to do it here, as it jus prints "disableite m()" on the browser, doesnt call it.
Any help is appreciated.
Thank You.
Comment