A voir également:
- Modife format de variable en JavaScript
- Format epub - Guide
- Telecharger format factory - Télécharger - Conversion & Codecs
- Format apfs - Guide
- Format bin - Guide
- Format dat - Guide
1 réponse
Utilisateur anonyme
31 juil. 2002 à 13:49
31 juil. 2002 à 13:49
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function stringToInt(){
var floatValue = parseFloat(document.getElementById("inputText").value);
if(isNaN(floatValue)){
alert("La valeur entrée n'est pas un nombre!");
}else{
var theBody = document.getElementById("body");
document.write(floatValue + " a été converti en Integer");
}
}
</script>
</head>
<body>
<form name="aForm" action="somePage.html">
<input id="inputText" type="text" />
<br />
<button type="button" onClick="stringToInt()">Envoyer</button>
</form>
</body>
</html>
;-)
HackTrack
<html>
<head>
<title>Untitled</title>
<script>
function stringToInt(){
var floatValue = parseFloat(document.getElementById("inputText").value);
if(isNaN(floatValue)){
alert("La valeur entrée n'est pas un nombre!");
}else{
var theBody = document.getElementById("body");
document.write(floatValue + " a été converti en Integer");
}
}
</script>
</head>
<body>
<form name="aForm" action="somePage.html">
<input id="inputText" type="text" />
<br />
<button type="button" onClick="stringToInt()">Envoyer</button>
</form>
</body>
</html>
;-)
HackTrack