JavaScript Examples

Select & Go Navigation

Basic JavaScript action. Select something from the menu and it will automatically jump to the selected page...

View source

<script type="text/javascript">
<!--
function jumpPage(newLoc) {
newPage = newLoc.options[newLoc.selectedIndex].value

if (newPage != "") {
window.location = newPage
}
}
-->
</script>