I'm trying to create a redirect page but I need to use two parameters to create the address link.
<!DOCTYPE html>
<!--
Test file
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<meta http-equiv="refresh" content="0;url=link" />-->
</head>
<body>
<p>Redirecting...</p>
<script language="javascript">
var chapterx = document.getElementById("chapter").value;
var linex = document.getElementById("line").value;
var link = "http://www.mypage.com/help?chapter=" + chapterx + "," + linex;
//window.prompt(link);
window.location = link;
</script>
</body>
</html>
I'm testing this by loading the page from my PC, not from the server.
I have very basic concept about HTML and JS and I can't figure out what I'm doing wrong.
I read something from Redirect from an HTML page to create that code.
Plus, theres any way to write the 'link' variable before redirect to see what happen?
Also I have Firebug installed but I cant found the variables that I declared to see their status.