Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
JS injection
hello, can someone help me with js injection? i have this button:
markup<input class="regularBtn" type="submit" value="Confirm" onclick="return verify_points();" />
and this code
<script type="text/javascript">
function verify_points() {
var points = 5;
if ($('exchange_3days').checked) {
if (points < 1500) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_7days').checked) {
if (points < 2500) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_1month').checked) {
if (points < 3500) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_4month').checked) {
if (points < 10000) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_6month').checked) {
if (points < 15000) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_1year').checked) {
if (points < 25000) {
alert("Not enough points!");
return false;
}
}
if ($('exchange_2years').checked) {
if (points < 50000) {
alert("Not enough points!");
return false;
}
}
if ($('exchangealways').checked) {
if (points < 50000) {
alert("Not enough points!");
return false;
}
}
return true;
}
</script>
how can i inject it? thx
EDIT thx Nick smileys are disbled