I am making a html splash page with an agree / disagree button and I was having trouble adding a redirect to google.com or another website when a user clicks "Agree" button.How would I input a redirect to another website such as google.com into this code?...\[code\]<head><meta http-equiv="Pragma" content="no-cache"><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><title> TITLE </title><script>function submitAction(){ var link = document.location.href; var searchString = "redirect="; var equalIndex = link.indexOf(searchString); var redirectUrl = ""; if (document.forms[0].action == "") { var url = window.location.href; var args = new Object(); var query = location.search.substring(1); var pairs = query.split("&"); for(var i=0;i<pairs.length;i++){ var pos = pairs.indexOf('='); if(pos == -1) continue; var argname = pairs.substring(0,pos); var value = http://stackoverflow.com/questions/15819415/pairs.substring(pos+1); args[argname] = unescape(value); } document.forms[0].action = args.switch_url; } if(equalIndex >= 0) { equalIndex += searchString.length; redirectUrl =""; redirectUrl += link.substring(equalIndex); } if(redirectUrl.length > 255) redirectUrl = redirectUrl.substring(0,255); document.forms[0].redirect_url.value = http://stackoverflow.com/questions/15819415/redirectUrl; document.forms[0].buttonClicked.value = 4; document.forms[0].submit();}function reject(){alert("You will not be able to access the system!");}function loadAction(){ var url = window.location.href; var args = new Object(); var query = location.search.substring(1); var pairs = query.split("&"); for(var i=0;i<pairs.length;i++){ var pos = pairs.indexOf('='); if(pos == -1) continue; var argname = pairs.substring(0,pos); var value = http://stackoverflow.com/questions/15819415/pairs.substring(pos+1); args[argname] = unescape(value); } document.forms[0].action = args.switch_url;}</script></head> <body style="background-color:#FFFFFF;" topmargin="50" marginheight="50" onload="loadAction();"> <form method="post"> <input TYPE="hidden" NAME="buttonClicked" SIZE="16" MAXLENGTH="15" value="http://stackoverflow.com/questions/15819415/0"> <input TYPE="hidden" NAME="redirect_url" SIZE="255" MAXLENGTH="255" VALUE=""> <input TYPE="hidden" NAME="err_flag" SIZE="16" MAXLENGTH="15" value="http://stackoverflow.com/questions/15819415/0"><div style="text-align:center;"><p><IMG SRC="http://stackoverflow.com/questions/15819415/11.jpg"></p><p><img src="http://stackoverflow.com/questions/15819415/1223.jpg" alt="Wireless Print" title="Wireless Print" /></p></div><p align=center><iframe src="http://stackoverflow.com/questions/15819415/aup.html" width="90%" height="500" scrolling="auto"> </iframe></p><div style="text-align:center;"> <input style="font-weight:bold;height:75px;width:200px;font-size:24pt;" type="button" name="Reject" value="http://stackoverflow.com/questions/15819415/Reject" class="button" onclick="reject();"><input style="font-weight:bold;height:75px;width:200px;font-size:24pt; margin-left:75px;" type="button" name="Submit" value="http://stackoverflow.com/questions/15819415/Accept" class="button" onclick="submitAction();"></div><div style="text-align:center; margin:1em 1em; margin: 1em 0 auto 1em"><div style="font-weight:bold; text-align:center; color:#FFFFFF; background-color:#634099; width:90%; margin: 0 auto; font-family:Verdana,Arial;"> <br /> Example <br /><br /></div></form></body></html>\[/code\]