February 29, 2008 - Posted by admin- 1 Comment
Here is a simple javascript for a prompt box
<html>
<head>
<script type=”text/javascript”>
function disp()
{
var name=prompt(”Please enter your name”);
if (name==”ramanean”&&name=”Ramanean”)
{
document.write(”Hello ” + name + “Are you fine?”);
}
}
</script>
</head>
<body>
<input type=”button” onclick=”disp” value=”Display a prompt box” />
</body>
</html>
The above code will display a prompt box “Hello Ramanean Are you fine?” when display prompt box is clicked
February 27, 2008 - Posted by admin- 0 Comments
Adam Gilchrist: Pigeon among the cats
Matthew Hayden: Crass and uneducated, close to moron status and will end up as an imbecile
James Hopes: [...]
February 27, 2008 - Posted by admin- 0 Comments
After seeing him in his first match ,I though India had got a genuine fast bowler who can bowl at 140-150 KMPH consistently and his yorker to remove Hoggard in his first test match still remains in my mind.After few matches which he did well ,he got injured and came back after a lay off.
Once [...]
February 26, 2008 - Posted by admin- 0 Comments
here is a simple javascript for an alert box
<script type=”text/javascript”>
alert(”My name is ramanean”);
</script>
When the above javascript is executed , a alert box will appear with the text “My name is Ramanean”
<script type=”text/javascript”>
alert(”My name is ramanean,My blog is www.ramanean.com,It has useful resources”);
</script>
When the above javascript is executed , a alert box will appear [...]
February 25, 2008 - Posted by admin- 0 Comments
here is a simple javascript that can be used for redirecting a user to a fresh page or another web page
<script type=”text/javascript”>
window.location=”http://www.livepr.info/internal-pages-page-rank3.php”;
</script>
When this script is executed the page will be redirected to http://www.livepr.info/internal-pages-rank3.php
Most webmasters user javascript for redirection as it works on all kind of browsers
February 23, 2008 - Posted by admin- 0 Comments
Here is a simple Javascript
<script type=”text/javascript”> document.write(”Hello World!”); </script>
Output:
Hello world
Also you can test this in your browser also
Just Copy this code and paste it in your browser
javascript: document.write(”Hello World!”);
Paste this in your address bar