0
How to check browser javascript enabled?
Here is a very simple but a powerful idea of checking whether your client’s browser is javascript enabled or not
Just add tag
<noscript>
SOME WARNING MESSAGES
</noscript>
On your webpage simple, a sample is given below
<noscript>
<span...
Replace all non alphanumeric characters using javascript
Hello Guys…Here i am back again with yet another simple tutorial on how to replace non alphanumeric characters using javascript.
[myAds]
<script language="JavaScript">
var temp = new String('This is a te!!!!st st>ring......
Get browser version and details using javascript
Hello here is a simple javascript code on how to get the browser version and other details.Just copy paste guys.
<h3> Your Browser details are as follows:</h3>
<script language="javascript" type="text/javascript">
var...
Change webpage background color using javascript
Hello guys, i am back again with yet another simple but interesting tutorial of changing webpage background color using javascript, just copy and paste it to your webpage and customize it according to your webpage design.
<script language="javascript">
...
Password protect pages using javascript
Hello guys here is a simple code on how to password protect a webpage using javascript.This is not a good idea coz it is not at all secure.But simply just like that a webpage which is protected using simple javascript is fun.
<script...
Adding a draggable div along with the cursor using simple javascript
In this tutorial we can see how to add a draggable div along with the cursor using simple javascript.
Only some simple javascript included and you can just copy and paste it in to a webpage you want the draggable content to be displayed.
DEMO
<html>
<head>
<meta...
View webpage source using javascript
If you wanna see your webpage source using javascript here is a simple example just copy and paste the script below to your webpage and press the View Source button.
<form action="#" onsubmit="return getsource();">
<input...
Write data to a page using javascript
Here i will show how to write data to a webpage using simple javascript
<span id="data_write"></span>
<script type="text/javascript">function write_date() {
if (document.getElementById && document.createTextNode)...
Simple Javascript Clock
This is a small and very simple tutorial on how to create a clock for your website using javascript.Just add the below code to the section of your website where you want the clock to be displayed
<span id="clock"></span>
<script...
Auto refresh page with timer using javascript
Actually this javascript program familiar to many Bloggers, have long since javascript is made.The first few minutes so that each of our pages will automatically refresh itself in order to display the new-created post by the blog owner to be...
Close Event In Javascript Using OnUnload()
Close Event In Javascript Using OnUnload fuctions, its pretty simple.Check this out.
<html>
<body onunload=check()>
<script type=”text/javascript”>
function check()
{
a = “Mistonline.in”
alert(a)
}
</script>
</body>
</html>
Thanks...
Close Event In Javascript For Firefox, IE and Chrome
Hi guys here is the event that gets triggered when ever a browser [Internet Explorer, Firefox, Chrome] is closed.
Its very simple just check out the script
<html>
<body>
<script type="text/javascript">
window.onbeforeunload...
Disabling right click menu using javascript Enhanced Version
This is an enhanced version of how to disable right click menu from a webpage.
Simple just copy and paste this code
<script LANGUAGE="JavaScript">
var message="Sorry this function is disabled."
function clickIE4(){
if(event.button==2){
alert(message)
return...
