View Full Version : passing value problem

05-02-2006, 02:04 PM
I'm trying to passing values between 2 pages it works when I open page2.html in another frame(mainFrame), but when I want it to open in the same frame(leftFrame) it dosn't work??

source.html (in leftFrame)

<script language="JavaScript" type="text/javascript">

function newWindow(file,window) {
if (msgWindow.opener == null) msgWindow.opener = self;
<form name="form1a" id="form1a">
<input name="textfield" type="text" value="10" />
<input name="textfield2" type="text" value="20" />

<input type="button" value="Open New Window" onClick="newWindow('page2.html','leftFrame')">

page2.html( to open in the same frame)
<script language="JavaScript"><!--
var etta = opener.document.form1a.textfield.value;
var tvoa = opener.document.form1a.textfield2.value;
function value() {




<body onload="value()">
<form id="form1" name="form1" method="post" action="">
<input name="textfield" type="text" readonly="1" />
<input name="textfield2" type="text" readonly="1" />



Mr J
05-02-2006, 08:24 PM
To open in the same window you would probably have to use the query string

The information here may help you.


05-02-2006, 09:10 PM

Thank you MR J

I belive that will help me.

You saved my day


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum