What is Java Script

Are you keen to delve into the world of javascripting programming? We are all different people and basically I hate coding. I prefer using software to design and create a website.  If this interests you there are a variety of websites that can teach you to code in javascript.

What is javascript? Java script is a client based programming language. This means that the java script will be activated to run and perform once the webpage commences to open in your visitors web browser. It works similiat to html.

What can you do with java script do? JavaScript can be programmed to do a variety of things and if applied and used correctly can add very powerful applications in web pages. Don’t rush in adding Javascript to your web page’s until you understand how to use this programming language correctly. Make sure you do your research and you find the correct code that will work with your purpose in mind for your web page’s. Examples of this includes adding a date, time, animation or even a script that will disable right mouse click on most browsers.  Just be careful if you decide to go fancy using java script. Make sure the code works on major browsers since this is a client side programming language it is reliant on your website visitor to have a browser that can compile and run the code on your webpage.

A little care is needed to make sure you choose java scripts that work in Internet Explorer, Fire Fox and some other browsers.

Today we are in a better position than we were 5 years ago when selecting and applying java script to web pages. The reason is that time has passed so sufficient testing can be done and we end up having true and tested Java Script.

You are viewing the what is javascript web page.

 

Java Script Sample – Disable right mouse click

This code should come in handy for anyone that wants to make an attempt at protecting the content
of there website. Be warned though anything can be copied if you know how and an example of this is to
take a screen shot and  edit this to suit.  Anyway if you wish to add this code to your website just
follow the instructions below. The code will not be visible to your web page but will be hidden.

You will need a basic understanding of html to add this code into your webpage.

This java script will help you disable the right mouse click feature of your
visitors mouse. This is a great java script to protect images on your webpage’s.

Copy the code from <script language=”JavaScript”> to </script> (high lighted
in burgundy) and paste it into your webpage either in before the body tag or for
SBI Block Builders place it before your content.

<script language=JavaScript>

<!–

var message=”This action is not allowed and has been Disabled!”;

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}

function clickNS4(e){

if (document.layers||document.getElementById&&!document.all){

if (e.which==2||e.which==3){

alert(message);

return false;

}

}

}

if (document.layers){

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown=clickNS4;

}

else if (document.all&&!document.getElementById){

document.onmousedown=clickIE4;

}

document.oncontextmenu=new Function(“alert(message);return false”)

// –>

</script>

Don’t forget to browse our website for more free java script download code.
If there is something you need and you can’t find it please contact us via the
contact form and let us know what you’re looking for and I will do my best to
come up with a solution for you.

Java script code can be created for most needs its just a matter of creating good
code that can work on most web browsers which can be a mission on its own.
Another alternative is to browse the Internet for other usable code yo may be
looking for to do that specific job on your webpage.

Your are viewing the javascript disable right mouse click sample

Java Script the Definitive Guide

Java Script the Definitive Guide - Adding a Java Script Date to your webpage.

Copy the code from <script language=”JavaScript”> to </script> (high lighted in burgundy) and paste it into your webpage where you want the date to appear.
1. Java Script that shows today’s date.

<script language=”JavaScript”><!– Beginvar months=new Array(13);months[1]=”January”;months[2]=”February”;months[3]=”March”;months[4]=”April”;months[5]=”May”;

months[6]=”June”;

months[7]=”July”;

months[8]=”August”;

months[9]=”September”;

months[10]=”October”;

months[11]=”November”;

months[12]=”December”;

var time=new Date();

var lmonth=months[time.getMonth() + 1];

var date=time.getDate();

var year=time.getYear();

if (year < 2000) // Y2K Fix, Isaac Powell

year = year + 1900;

document.write(“<center>” + lmonth + ” “);

document.write(date + “, ” + year + “</center>”);

// End –>

</script>

2. Java Script that subtracts 2 days from today’s date – Java Script the Definitive Guide

Ideal if you want to create a live last updated date to keep your visitors interested about your website because continuos changes are happening.

<script language=”JavaScript”><!– Beginvar months=new Array(13);months[1]=”January”;months[2]=”February”;months[3]=”March”;months[4]=”April”;months[5]=”May”;

months[6]=”June”;

months[7]=”July”;

months[8]=”August”;

months[9]=”September”;

months[10]=”October”;

months[11]=”November”;

months[12]=”December”;

var time=new Date();

var lmonth=months[time.getMonth() + 1];

var date=time.getDate() – 2;

var year=time.getYear();

if (year < 2000)

year = year + 1900;

document.write(“<center>” + lmonth + ” “);

document.write(date + “, ” + year + “</center>”);

// End –>

</script>

3. Java Script that subtracts 4 days from today’s date – Java Script the Definitive Guide

Ideal if you want to create a live last updated date to keep your visitors interested about your website because continuos changes
are happening.

<script language=”JavaScript”><!– Beginvar months=new Array(13);months[1]=”January”;months[2]=”February”;months[3]=”March”;months[4]=”April”;months[5]=”May”;months[6]=”June”;

months[7]=”July”;

months[8]=”August”;

months[9]=”September”;

months[10]=”October”;

months[11]=”November”;

months[12]=”December”;

var time=new Date();

var lmonth=months[time.getMonth() + 1];

var date=time.getDate() – 4;

var year=time.getYear();

if (year < 2000)

year = year + 1900;

document.write(“<center>” + lmonth + ” “);

document.write(date + “, ” + year + “</center>”);

// End –>

</script>

Code Works in IE and Firefox. – Java Script the Definitive Guide.