John Delmark Aguilar
Would you like to react to this message? Create an account in a few clicks or log in to continue.
John Delmark Aguilar

Personal Forum
 
HomeSearchLatest imagesRegisterLog in

 

 [JS]Simple Javascript Form Alert

Go down 
AuthorMessage
dElmARk
Admin
Admin
dElmARk


Posts : 92
Join date : 09/04/2012

[JS]Simple Javascript Form Alert Empty
PostSubject: [JS]Simple Javascript Form Alert   [JS]Simple Javascript Form Alert Icon_minitimeFri Feb 28, 2014 8:31 pm

Code:
<body onload="myAlert()">
<script type="text/javascript">

function myAlert(){
alert("Example of button and text objects");
}
function dothis(){
alert(document.forms[0].elements[0].value);
}
</script>

<form name="myform">
<p><input type = "textfield" name = "myname" size=20 onblur='alert(this.value)', value="enter your name here" onclick="this.value='' ">
<input type = "button" value="submit" onclick="dothis()" name ="button1"><br>
<input type = "button" value="Click here to set to the default value" onclick="document.myform.myname.value=document.myform.myname.defaultValue" name ="button2"><br>
</form>
</body>
Back to top Go down
https://delmark.forumtl.com
 
[JS]Simple Javascript Form Alert
Back to top 
Page 1 of 1
 Similar topics
-
» Drag Form without title bar
» [HTML+JS] Form Validation + Get Value

Permissions in this forum:You cannot reply to topics in this forum
John Delmark Aguilar :: dElmARk Productions :: Web Coding-
Jump to: