views:

62

answers:

1

Hi I'm trying to set the value of an input field using a bookmarklet so when I open the bookmark it will automatically set the field name? Any idea how to do this? Would like to set the field txtEmail. Thanks!

This is the HTML of the website:

<input id="txtEmail" class="popUpEmail" type="text" onblur="populateTheEmailField(this);" onclick="blankTheEmailField(this);" value="[email protected]"/>

I'm happy to contact me

A: 
javascript: var f = document.getElementById("textEmail"); f.value = "Tagada"; void(0);
PhiLho