this is what I have so far, based on some stuff of I found on the net domain.com/score.html?totalScore=23 how would I get the score variable to pass to the div ID and the mailto link?
<script type="text/javascript">
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
score = getURLParameter('totalScore');
</script>
<div id="yourscore"></div>
<a href="mailto:test@test.com?subject=Score:%20">test</a>