Jump to content
Sign in to follow this  

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;





Share this post

Link to post
Share on other sites

Was done years ago .... the fallout was tremendous ... bottom line, those that complained the loudest and in greater numbers won that debate .. focus was removed.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this