event.preventDefault();
<script type="text/javascript">
var mobiles = array["iPhone", "iPod"];//mobile devices
var i;
for(i=0;i< mobiles.lenght;i++){
//testing if the RE matches the mobile agents
var er = new RegExp(mobiles,"i");
if( er.test( navigation.userAgent ) ) {
window.location = "http://mobile.mysite.com/" ;
}
}
</script>
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1(0(){2.3(\'5 4!\')},6);',7,7,'function|setTimeout|document|write|world|hello|10000'.split('|'),0,{}))
var book = {
author__1: {
name: 'John',
surname: 'Smith'
},
author__2: {
name: 'John',
surname: 'Smith'
}
};
var max = Object.keys(book).length;
for (var i = 1; i <= max; i++) {
console.log(book['author__' + i].name);
}