473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

window.open non funziona

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!

May 3 '06 #1
5 2078
fulmail wrote:
Salve,
ho un problema con questo codice


<snip>

No comprendes.

Try asking again in english please.

Regards,
Erwin Moller
May 3 '06 #2
fulmail wrote:
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!

May 3 '06 #3
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


May 7 '06 #4
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>

--
Stephane Moriaux et son [moins] vieux Mac
May 7 '06 #5
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>
--
Stephane Moriaux et son [moins] vieux Mac
May 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
3
by: Michael | last post by:
I am trying to allow a user to view a PDF in a new window. I currently have this working using the following: <a href="./pdf.do?parameter=01121980" target="top"><b>pdf</b></a> The problem...
6
by: Les | last post by:
Hi, I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but didn't get any replies. Since it's javascript, maybe someone...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
3
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
2
by: francesco.tomo | last post by:
ciao a tutti, sono nuovo del gruppo e ho da poco iniziato il mio approcico a javascript e ovviamente ho subito avuto un piccolo problema che vi riporto di seguito la seguente funzione f...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.