dimanche 4 janvier 2015

How to enable javascript in elinks?


I'm running openwrt on my router and I want elinks to be able to run javascript. Is it possible? the only openwrt text web browser is elinks so I got no other choice. This is the script I'm planning to run:



<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
$(function () {
$("#saveForm").click();
});
</script>
</head>
<!--<body onload="document.getElementById('saveForm').click();">-->
<body>

<form method="post" enctype="multipart-form-data" name="my_form" onsubmit="clearTextBoxCounter()" action="http://ift.tt/1zL19dq" >

<input type=hidden name=teks value=><center><b>KIRIM SMS GRATIS</b></center><br><br>
Nomer HP:<br />
<input class="field text small" type="text" maxlength="20" name="Phonenumbers" value="085642383165"/>
<br />

<br />
Isi Pesan:<br />
<textarea rows="5" cols="20" onKeyPress=check_length(this.form); onKeyDown=check_length(this.form); name=Text >testing pesan 6</textarea>
<br />

<input id="saveForm" class="btTxt" type="submit" value="KIRIM" name="TOMBOL" />

</body>
</html>


It clicks the submit button on page load but when I try this on putty elinks /www/test.html it just loads the page and doesn't do anything afterwards.



Aucun commentaire:

Enregistrer un commentaire