magicandmight
IS-IT--Management
Is there a way to set a character combination on either a link or a drop down list that can be forwarded onto the next page so that javascript command can commense from the previous decision?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<a href="thenextpage.html?mycoolvariable=stuff">Click Me</a>
<script type="text/javascript"><!--
function doSomethingSpectacular() {
var splitAtEqual;
var theWholeUrl = document.location;
var splitAtQMark = theWholeUrl.split("?");
if ( isArray( splitAtQMark ) ) {
splitAtEqual = splitAtQMark[1].split("=");
}
if ( isArray( splitAtEqual ) ) {
alert( splitAtEqual[0] + " equals " + splitAtEqual[1] );
}
}
//--></script>
<body onload="doSomethingSpectacular();">