<title> Assignment 5</title>
<h2><head>Convert from Decimal to Binary or Hexadecimal.</head></h2>

<form name="deci">
<label><b>Decimal Number: </b></label><input type="text" name="dvnd"><br/>

<select name="bse">
<option value="2">binary</option>
<option value="16">hexadecimal</option>
<input type="submit" value="Convert" onClick="process(dvnd,bse)"/>



function process(dvnd,bse){

var bse = bse.value;
remai = 0;
quotient = 0;

while (dvnd >= 0) {
dvnd = dvnd/bse;
remai = dvnd%bse;



My alert and while statement aren't working..

I use notepad++, and here is a link to the assignment requirements (mostly if you need to look at it)


I'm a beginner in this, and only know the basic's (I'm taking a beginner class).