<!DOCTYPE html> <html> <head></head> <body onload="document.getElementById('x').innerHTML = '<button></button>';"> <form><div id="x"><button></button></div><button></button><input type="image"></form> </body> </html>