Uploader

An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types.

Go To Page

Relocates the page to a new URL

Function: goTo()
Category: Javascript
Views: 1,533
Permalink - Tinylink

/**
 * Relocates the page to a new URL
 * @param string url
 * @param string text
 * @return boolean
 */
function goTo(url, text) {
	if (text != null) {
		if (confirm(text)) {
			document.location = url;
		}
	} else {
		document.location = url;
	}
 
	return false;
}

Return to Snippets