---
title: "Data mellan olika windows"
type: "forum-thread"
url: "https://www.webforum.nu/amne/javascript/17852-data-mellan-olika-windows"
topic: "JavaScript"
topic_url: "https://www.webforum.nu/amne/javascript"
author: "beetree"
published: "2001-06-12T08:45:00.000Z"
updated: "2001-06-12T08:56:00.000Z"
replies: 2
views: 172
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/17852-data-mellan-olika-windows"
---

# Data mellan olika windows

## #1 — beetree, 2001-06-12T08:45Z

I test.html öppnar jag ett nytt fönster(test2.html). I det fönstret vill jag sedan sätta location i test.html till en godtycklig URL. Hur gör jag det? Just nu ser mina filer ut enligt följande...

(IE 5.5)

test.html:
\---------
\<html\>
\<body\>
\<input type="button" value="test" onclick="javascript:window.open('test2.html');"\>
\</body\>
\</html\>
\---------

test2.html
\---------
\<html\>
\<body\>
\<input type="button" value="stäng och uppdatera parent" onclick="javascript:parent.document.location='URL'"\>
\</body\>
\</html\>
\---------

Tack för hjälpen...

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

## #2 — Erik Juhlin, 2001-06-12T08:53Z

```
<html>
<body>
<input type="button" value="stäng och uppdatera parent" onclick="javascript:window.opener.location.href='URL';">
</body>
</html>
```

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

## #3 — beetree, 2001-06-12T08:56Z

Tack så J\*\*\*A mycket... Du är min ängel!!

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

---

Tråden på webben: https://www.webforum.nu/amne/javascript/17852-data-mellan-olika-windows
