I hope someone can give me the answer to this problem.
In stead of using a normal submit type button for my form i want to use an image-type button because i think that's nicer for the design.
Problem with that is that the image-type button preform a refresh/reload so it makes the textfield blank again, something the normal submit-button doesn't do.
So i like to keep the textfield filled after hitting the image-type button just like the normal submit-type button would.
You're talking about a regular button, not submit button. Image button submits the form too; to avoid that, you can change onclick="randomString(); return false"
Bookmarks