window.open non funziona

F

fulmail

Salve,
ho un problema con questo codice

ho creato un file html che dovrebbe aprire un altro file nella stessa
cartella. Il codice utilizzato è:

<form name="Mform">

<input type="Button" value="Go >>" onClick="javascript:
window.open('Funziona.htm')">

</form>

purtoppo non funziona!

saprebbe qualcuno darmi qualche dritta! grazie
In particolare l'idea sarebbe creare una casella di testo in cui
inserire il noem dell'url
e con il bottone aprire la pagine, nello specifico:

<form name="Mform">

Ricerca:

<input type="text" name="acexample" id="offic">
<input type="Button" value="Go >>" onClick="javascript:
window.open(document.Mform.acexample.value)">

</form>

Non funziona!
 
D

Donius

fulmail said:
Salve,
ho un problema con questo codice

Quello non è it.comp.lang.javascript. Sembra che il problema è stato
risolto in it.c.l.js. Buona fortuna!
 
M

Michele Ouellet

Translation and adaptation:

I have created an html file which should open another file in the same
window. I am using the following code:

<form name="Mform">

<input type="Button" value="Go >>"
onClick="javascript:window.open('test.htm')">

</form>

But this doesn't work. Any help would be appreciated.

Thanks
 
A

ASM

Michele Ouellet a écrit :
Translation and adaptation:

I have created an html file which should open another file in the same
window. I am using the following code:

<form name="Mform">

<input type="Button" value="Go >>"
onClick="javascript:window.open('test.htm')">

</form>

But this doesn't work.

It would have to open a new new window ( as written : open.window() )
Any help would be appreciated.

location = 'test.htm';


and better :

<form action="test.htm">
<input type=submit value="GO >>">
</form>


Exercise :

<form action="test.htm"
return this.chooser.value==''? false : this.chooser.value+'.htm';">
<select name="chooser">
<option value="">Choice a page</option>
<option value="test">Test</option>
<option value="p1">Page 1</option>
<option value="p2">Page 2</option>
</select>
<input type=submit value="GO >>">
</form>
 
A

ASM

ASM a écrit :
Exercise :

Correction !

<form action="foo.htm"
onsubmit="return this.chooser.value==''? false :
this.action=this.chooser.value+'.htm';">
<select name="chooser">
<option value="">Choice a page</option>
<option value="test">Test</option>
<option value="p1">Page 1</option>
<option value="p2">Page 2</option>
</select>
<input type=submit value="GO >>">
</form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top