Results 1 to 8 of 8
Thread: javascript
Hybrid View
-
28th June 2006 20:05 #1Registered User
Join Date: Oct:2003
Posts: 166
javascript
:
<script type="text/javascript">
function check_empty (btn)
{
if (document.forma1.btn.value=='')
{alert ("Emty Field!!! "); }
}
</script>
nClick="check_empty(tbox1)"
4 document.forma1.tbox1.value
? . 4 onClick .
-
28th June 2006 20:37 #2
- this
onClick = " function_name( this )"
:
function function name( obj )
{
if( obj.value == "" )
.... bla bla
}
EDIT
onClick... onChange
submit, if-Last edited by genn; 28th June 2006 at 20:39.
-
28th June 2006 21:01 #3Registered User
Join Date: Oct:2003
Posts: 166
-
28th June 2006 21:21 #4
, btn, , btn ... , , :
" document.forma1.tbox1.value"
, ?
document.getElementById( btn )... ,
-
29th June 2006 11:03 #5Registered User
Join Date: Oct:2003
Posts: 166
Dava tova
, : 'document.forma1.btn.value' is zero or no object. , . .
?Last edited by Orlinov; 29th June 2006 at 11:17.
-
29th June 2006 12:00 #6
, - , , document.forma1.tbox1 .
, btn, .
document.forma1.btn.value : document.getElementById( btn ) id="tbox1" .
.
-
29th June 2006 13:46 #7Registered User
Join Date: Oct:2003
Posts: 166
Dava sintakti4na gre6ka
:
<input name=bt1 type=button onClick="check_empty(document.getElement ById("tbox"))"
value=ADD><br>




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in