Grazie mille, ho modificato ma non si comporta come desiderato.
codice:
<input type="button" onclick="crea_prompt()" value="Visualizza casella di prompt" />
<form name="formems">
<div align="center"><input type="text" size="100" class="input" id="ricerca"/></div
<table width="99%">
<tr height="140">
<td width="33%">
<div align="center">
<input id="inp1" name="inp1" type="image" src="images/google.png" width="100" height="100" value="http://www.google.it/m/search?q=" OnClick="openURL(this.value + document.forms['formems'].ricerca.value );" />
codice:
function openURL(url) {
try {
widget.openURL(url);
}
catch (e) {
window.open(url, "newWindow");
}
}
function crea_prompt() {
var nome=prompt("Per favore inserisci il tuo nome","Harry Potter");
if (nome!=null && nome!="") {
document.formems.inp1.value = nome;
}
}
Penso che la modifica avvenga ma che il "this" non la riconosca