472,779 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 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 1280
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.