The "Noob Link" Technical Reference
Pantz.org Index About Homepage
     _                  ____            _       _
    | | __ ___   ____ _/ ___|  ___ _ __(_)_ __ | |_
 _  | |/ _` \ \ / / _` \___ \ / __| '__| | '_ \| __|
| |_| | (_| |\ V / (_| |___) | (__| |  | | |_) | |_
 \___/ \__,_| \_/ \__,_|____/ \___|_|  |_| .__/ \__|
                                         |_|
                    
Put all of the code examples from the links below between these script tags.
<script language="JavaScript">
<!--

//-->
</script>
Submit a form on a timer(in milliseconds).

setTimeout('document.formname.submit()',1000);
A function that calls other functions to execute.

//if all functions return true then all systems go!
function RunAllFunctions()
{
    if(Function1() && Function2() && Function3())
    {
        return true;
    }
    else
    {
        return false;
    }
}
Send browser to a certian url. Some examples.

window.location.href = 'http://www.blah.com/warn2.html';
top.location.href = 'http://www.blah.com/warn2.html';
parent.location='http://www.blah.com/warn2.html';
Keep your javascript in file on the server.

<SCRIPT LANGUAGE="JavaScript" src="javascript/javascriptfile.js"></script>
Rename a fieldname. Good for PHP arrays submitted by a form when the form name has "[]" in the name.

//rename list items for php array
document.formname.fieldname.name="list1[]";
document.formname.fieldname.name="list2[]";
Keep a person from going back to a page the just came from.

window.history.forward(1);
Copy values from one frame to another.Copy from frame's name "copyFrom".Copy to frame's name "copyTo".

parent.copyTo.document.formname.fieldname.value = parent.copyFrom.document.formname.fieldname.value;
//copy drop downs value
if (parent.copyTo.document.formname.fieldname.options[parent.copyTo.document.formname.fieldname.selectedIndex].value == whatever)
{
    parent.copyFrom.document.formname.fieldname.value = "whatever"
}