redirect to a web page by using a variable

0

I have made this java HTML code, to generate a virtual keyboard. What I want to help me, is that by pressing the SEE button, I open the page www.misitio.com/ 1234 (or any number entered in the viewer)

<!DOCTYPE HTML PUBLIC

<html 
<head>


<script type="text/javascript">



var valor = document.getElementById("texto").value;
        document.write(valor);     

var answer_mode = 0;

function clear1() {
    document.forms["calculator"].display.value = "";
}

function clear() {
    clear1();
}


function number(ch) {
    if (answer_mode) {
    clear1();
    answer_mode = 0;


    }
    document.forms["calculator"].display.value += ch;
}



</script></head><body>

<form name="calculator">

<input name="display" value="" size="6" style="text: Arial; font-size: 20pt; background-color:#58D3F7" >





<table>

<tbody>

<tr></tr><tr></tr><tr></tr>




<tr>
<td>  <input value=" 7 " onclick="number(7)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 8 " onclick="number(8)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 9 " onclick="number(9)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
</tr>

<tr>
<td>  <input value=" 4 " onclick="number(4)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 5 " onclick="number(5)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 6 " onclick="number(6)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
</tr>


<tr>
<td>  <input value=" 1 " onclick="number(1)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 2 " onclick="number(2)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
<td>  <input value=" 3 " onclick="number(3)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>
</tr>



<td><input value=" 0 " onclick="number(0)" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>

<td></td>

<td>  <input value="C" onclick="clear1()" type="button" style='width:50px; height:50px;font-size:30px;color:blue'></td>

<td></td>

<input type="submit" id="60" value="ver"> <!- style="width:80px; height:50px; text-align:center; font-size:25px; color:red"/>


<!-input type="button" value="ver" onclick="javascript:window.open('https://dol548.wixsite.com/audioguia/','','width=600,height=400,left=50,top=50,toolbar=yes');" />



</tr>


<!-- FIN TECLADO -->


</tbody></table>
</body></html>
</form>
    
asked by dol54 21.09.2017 в 02:15
source

0 answers