In a HTML
page, i want to pick the value of a javascript
variable. Below is the snippet of HTML page.
<script type="text/javascript">
$(function() {
$.ajaxSetup({
beforeSend: function(xhr) {
xhr.setRequestHeader('X-MOON-EXPIRED', "1445350653");
xhr.setRequestHeader('X-MOON-TOKEN', "10dafe974cc156d2d3b7fd9bb1e4e3ed");
}
});
});
</script>
My aim is to read the value of variable X-MOON-EXPIRED
and X-MOON-TOKEN
from this page using Java
. Thanks.