Featured

computes i, i**2 in a while loop

<script> var n = prompt("Enter number") while…

Read More »
computes sign of number

<script> var num = prompt("Enter number") while…

Read More »
computes area of ring with function

<script> var r1, r2; r1 = prompt("Enter…

Read More »
find maximum numeric value

<script> var max = 0 var num…

Read More »
computes first name alphabetically

<script> var first var name first =…

Read More »
computes area of circle from radius

<script> var rad, area; rad = prompt("Enter…

Read More »
add up numbers until 0

<script> var sum = 0 var num…

Read More »
Add two numbers

<script> var num1, num2, sum num1 =…

Read More »
Easy password for site

<script type="text/javascript">var password = "please";var x =…

Read More »
Random picture and link

<script type="text/javascript">//Javascript Created by Computerhope https://www.computerhope.com///store the…

Read More »
Message on page

<p id="msg"></p><script type="text/javascript">var messageNum = 0;var m…

Read More »
Message displayed by time of day

<script type="text/javascript">document.write("<p>"); var day = new Date(); var hr…

Read More »
Random quotes

<script type="text/javascript">//store the quotations in arraysquotes =…

Read More »
Allow visitors to see history of visiting your page

<SCRIPT LANGUAGE = "JavaScript"><!-- Begin Script/*-----------------------------------------| By…

Read More »
Flashing colors when opening page

<script type="text/javascript">function bgChanger (end) {document.getElementsByTagName("body")[0].style.backgroundColor = "#"…

Read More »
Random color that can be stopped

<script type="text/javascript">function color_changer() {var now = new…

Read More »
Create a random website background color every five seconds

<script type="text/javascript">//// Description: Randomly change background color…

Read More »
Change background color depending on time of day

<script type="text/javascript">var now = new Date();var hours…

Read More »
Send viewer back to where they came from

<script type="text/javascript">setTimeout("history.back();", 7000);</script>

Read More »
Button to refresh web page

<FORM><INPUT Type="button" VALUE="Reload Page" onClick="history.go(0)"></FORM>

Read More »
New small window

<p><script type="text/javascript">function NAME_IT() {window.open('https://www.computerhope.com/cgi-bin/search.cgi','EANITHING','toolbar=no,location=no, directories=no, status=yes, menubar=no,…

Read More »
Date count down

<script type="text/javascript">today = new Date();BigDay = new…

Read More »
Letter by letter scroll

<p id="scroller"></p><script type="text/javascript">// Original: Pun Man Kit mkpunnl@netvigator.comfunction…

Read More »
JavaScript bookmark

<p><script type="text/javascript">if ((navigator.appName == "Microsoft Internet Explorer")…

Read More »
Make people stay

<head><script type="text/javascript">// This script was written by…

Read More »
Time and date

<script type="text/javascript">var d=new Date();document.write('Today is ' +…

Read More »
Celsius into Fahrenheit

<script type="text/javascript">function temp (form) {  form.fahrenheit.value = form.celsius.value*1.8+32;}</script>…

Read More »