Create Back Button and Refresh
The following code / syntax Javascript to make the Back button:
<FORM>
<INPUT TYPE="BUTTON" VALUE="Back" ONCLICK="history.go(-1)">
</FORM>
if it will replace the function of the Back button to change the function into the Refresh button,
just change the event/aksinya onClick = "history.go(0)".
Good luck ...
by:Ivan
Read more..
Sunday, April 26, 2009 | 0 Comments
Displaying Message Box
Here is a tutorial to show message box in javascript:
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
function MsgBox_OkCancel()
{
var pesan;
pesan = confirm('Are your sure?');
if(pesan)
{
alert("Run your command");
}
}
</SCRIPT>
</HEAD>
<BODY>
<a href="javascript: MsgBox_OkCancel();">Klik Disini</a>
</BODY>
</HTML>
Good Luck...
By : Ivan
Sunday, April 26, 2009 | 0 Comments
Displaying Input Box
Here is a tutorial for Grid Input ( Input Box ) in Javascript:
<HTML>
<HEAD>
<script>
function input_nama()
{
var isian=prompt("Please insert your name :")
alert("Hiii "+isian)
}
</script>
</HEAD>
<BODY>
<input type="button" onClick="input_nama()" value="Coba" />
</BODY>
</HTML>
Please friends to try and can be developed for interactive web ...
Easy right?
by : Ivan
Sunday, April 26, 2009 | 0 Comments