Monday, September 1, 2008

JavaScript - YUI-based alert box - replace your ugly javascript alert box

If You want to change the look up of your simple alert message box into your JavaScript then follow
simple steps given below.

You just need to include the two script source file name and path. as i have given below include that
one in your javascript.

< type="text/javascript" src="http://yui.yahooapis.com/combo?2.5.2/build/yuiloader/yuiloader-beta-min.js">
< type="text/javascript" src="js/alert.js">

but you have to download one alert.js file from here.

although, let i have given below one simple Demo for it,


View Code:
<>
<>
This is yui message
< /title>
<>
< type="text/javascript" src="http://yui.yahooapis.com/combo?2.5.2/build/yuiloader/yuiloader-beta-min.js">< /script>
< type="text/javascript" src="js/alert.js">< /script>
< /head>
<>
< type="button" value="press it" onclick="alert('This is click event');">
This demo file
< /body>
< /html>

1 comment:

Anonymous said...

nice article! try more