---
title: "Fel: 'test' is undifined QUE!?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/javascript/54323-fel-test-is-undifined-que"
topic: "JavaScript"
topic_url: "https://www.webforum.nu/amne/javascript"
author: "T_Codez"
published: "2002-09-26T11:15:51.000Z"
updated: "2002-09-26T20:26:09.000Z"
replies: 4
views: 184
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/javascript/54323-fel-test-is-undifined-que"
---

# Fel: 'test' is undifined QUE!?

## #1 — T_Codez, 2002-09-26T11:15Z

Vad är felet?

SCRIPT:

```
function Win(xx) 
 {
   window.open('xx','Info Message','width=375,height=275');
  }
```

ANROPAS I ETT FORMULÄR:

```
Response.Write  "<form method='post' action='store.asp' name='Form2' onMouseDown='PicInWin(test.html)'>"
```

Felmeddelande som ges är:

Tecken 1
Fel: 'test' is undifined

Tack för uppmärksamheten

/TT

Permalänk: https://www.webforum.nu/p/54323

## #2 — @nders, 2002-09-26T11:19Z

*test.html* är en sträng, och skall omslutas på något sätt.

```
Response.Write  "<form method=""post"" action=""store.asp"" name=""Form2"" onMouseDown=""PicInWin('test.html')"">"
```

Dessutom säger du i till script att *xx* är en sträng, och inte en variabel. Så här borde scriptet alltså se ut:

```
function Win(xx) 
 {
   window.open(xx,'Info Message','width=375,height=275');
  }
```

Mvh,

Permalänk: https://www.webforum.nu/p/797330

## #3 — T_Codez, 2002-09-26T12:18Z

Okay...

Det var en bra början... Men nu kommer följande error istället (vilket jag inte blir klokare på):

Rad 14
tecken 5
Fel: Ogiltigt argument
Kod 0

```
function Win(xx) 
{
   window.open(xx,'Info Message','width=375,height=275'); [red]Rad 14[/red]
}

 Response.Write  "<form method=""post"" action=""store.asp"" name=""Form2""  onMouseDown=""Win('test.htm')"">"
```

Permalänk: https://www.webforum.nu/p/797401

## #4 — Jojoxx, 2002-09-26T14:39Z

Ta bort mellanslaget i "Info Message".

Permalänk: https://www.webforum.nu/p/797632

## #5 — T_Codez, 2002-09-26T20:26Z

Ja dra på trissor !?  Nu funkare strålande

THANKZ ! :e 

Jojoxx du och @nders är starka kandidater till min personliga: "wF Hall Of Fame"

Permalänk: https://www.webforum.nu/p/798107

---

Tråden på webben: https://www.webforum.nu/amne/javascript/54323-fel-test-is-undifined-que
