473,412 Members | 2,306 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,412 software developers and data experts.

How to get the values in the opening window?

i hav a window wit a button and text box..
Then am opening a new window...
suppose if i type somethin in a first window's text box.. and click the button..
the value typed in the text box shoult appear in the opening window...
Is it possible

<html>
<body>
<script type = "text/javascript">
function fun1 ( )
{
var i = document.getElementById("text1").value;
newWindow = open ( "test.html ", "Window");
newWindow.document.writeln("<input type = 'button' name = 'button1' value = 'click'>");
newWindow.document.writeln("<input type = 'text' id = 'text1' name = 'txt1'>");

}
</script>
<form name = "form">

<input type = "button" name = "but1" value = "click" onclick = "fun1 ( )">

<input type = "text" id = "text1" name = "text1" >

</form>
</body>
</html>
Apr 1 '08 #1
1 1303
pronerd
392 Expert 256MB
suppose if i type somethin in a first window's text box.. and click the button.. the value typed in the text box shoult appear in the opening window...
Is it possible
Yes.


[HTML]
<html>
<body>
<script type = "text/javascript">
function fun1 ( )
{
var i = document.getElementById("text1").value;
newWindow = open ( "test.html ", "Window");
newWindow.document.writeln("<input type = 'button' name = 'button1' value = 'click'>");
newWindow.document.writeln("<input type = 'text' id = 'text1' name = 'txt1' value='"+i+"' >");

}
</script>
<form name = "form">

<input type = "button" name = "but1" value = "click" onclick = "fun1 ( )">

<input type = "text" id = "text1" name = "text1" >

</form>
</body>
</html>[/HTML]
Apr 1 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bhavin G | last post by:
Hi there , I am pretty new at javascripting and i am having this huge problem. I am using asp.net and C# webapplication. In my asp.net aspx file I have a place holder for taking an html table...
1
by: VbUser25 | last post by:
hi i am opening an excel file in the same explorer window as the form. i am storing values entered in excel in database. while saving the field in the db i need to save a field from the form also....
44
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in 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...
1
by: sureshgv | last post by:
I am using this command in source page for opening a report in other window called report page Enter.Attributes.Add("onclick", "window.open('SingleEmployeeReport.aspx');"); I am sending values...
0
by: chris | last post by:
On my testing server where I installed .NET Runtime files, I have some problems with showing to the user the correct data from database. I have a grid displaying all companies. When user edits a...
1
by: sandy21380 | last post by:
Hello, Is there a way of opening an Access form without opening the Access window? Right now when I open the form, the Access window is a lot bigger than the form so I have to resize the Access...
7
by: maralfarshadi | last post by:
Dear All I am working on a Java based Web app - In this application, a window contains many textboxes which open the same child window. The user should choose among the option boxes provided and...
0
by: bbrewder | last post by:
I am struggling with some MSAccess automation issues. Basically, we have a .Net application that uses MSAccess for reporting (legacy code). We are able to launch MSAccess fine and even work with...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.