|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Jan 2004
Messaggi: 173
|
[Javascript] Creare a runtime una nuova pagina HTML e gestire i caratteri accentati
Ho creato questo file html:
Codice:
<html> <head> <title></title> <script language="javascript" src="test.js"></script> </head> <body bgcolor="white" text="blue"> <a href="javascript:test();">Test</a> </body> </html> Codice:
function test(){
alert("felicità");
document.open();
document.write("<html><head><title></title><script language=\"javascript\" src=\"test.js\"></script></head><body bgcolor=\"white\" text=\"blue\"><a href=\"javascript:test();\">Test</a></body></html>");
document.close();
}
Grazie in anticipo |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: Feb 2008
Messaggi: 269
|
prova a dichiarare nella tua pagina HTML (in quella dove c'è lo script, o anche in entrambe) che usi l'unicode:
Codice:
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> </head>
__________________
CPU: AMD Athlon X2 7750BE 3.15Ghz@vcore 1.3750 / NorthBridge: [email protected] RAM: Mushkin XP2 Radioactive 4GB 900Mhz@4-4-4-12-1T / HyperTransport: 2025Mhz VGA: Club3D Radeon HD4850 / HDD: Western Digital Caviar RE3 |
|
|
|
|
|
#3 | |
|
Member
Iscritto dal: Jan 2004
Messaggi: 173
|
Quote:
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 18:10.




















