feedburner

Enter your email to subscribe to articles:

Delivered by FeedBurner

Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Create Back Button and Refresh

Label:

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..
Bookmark and Share


Displaying Message Box

Label:

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




Read more..
Bookmark and Share


Displaying Input Box

Label:

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




Read more..
Bookmark and Share