Jump to content

Automatic focus on report field needed


Recommended Posts

It would be a real help if the textarea where to paste the spam would already have the focus when the page opens.

This can easily be achieved by changing the <body>-tag of the submit page to

<body onload="document.forms[1].elements['spam'].focus();">

And I would like to have a submit on Enter-key for the "Report spam Page".

Put this java scri_pt in the HTML Header:

<scri_pt type="text/java scri_pt">


document.onkeypress=function k(evt){

var k=document.all?window.event.keyCode:evt.which;



return false;





Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...