473,499 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change new window from opening window

I have opened a new window and now want to change something in the
newly opened window. I am doing this.......

<area
href="javascript:tour('newwindow.htm','_blank','sc rollbars=yes,resizable=1,width=780,height=550,top= 0,left=0')"
onclick="javascript:setTimeout('changenewone()', 800)" shape="rect"
coords="9, 29, 44, 69">

<script type="text/javascript" src="id1.js">
function changenewone() {
window.location.newemail1.HideContent('id1');
</script>

I have named the new window "newemail1." I used a time delay hoping
that the new window would have time to open and then the attributes
could be accessed. I'm not targeting the new window correctly, I
suppose. What would be the correct way to do this? I am getting an
"object expected" error. Any help is appreciated.
Jan 20 '08 #1
2 1302
On Jan 20, 10:15*am, Joe Sent Me <greend...@jimlowe.netwrote:
I have opened a new window and now want to change something in the
newly opened window. I am doing this.......

<area
href="javascript:tour('newwindow.htm','_blank','sc rollbars=yes,resizable=1,*width=780,height=550,top =0,left=0')"
onclick="javascript:setTimeout('changenewone()', 800)" shape="rect"
coords="9, 29, 44, 69">

<script type="text/javascript" src="id1.js">
function changenewone() {
window.location.newemail1.HideContent('id1');
</script>

I have named the new window "newemail1." I used a time delay hoping
that the new window would have time to open and then the attributes
could be accessed. I'm not targeting the new window correctly, I
suppose. What would be the correct way to do this? I am getting an
"object expected" error. Any help is appreciated.
What is 'tour'? What is 'HideContent'? What is 'newemaill'?

And with the onclick event, you don't need 'javascript:'

How do you reference your new window after you created it?

typically you would do something like:
var someWin = window.open('newwindow.htm', blah, blah, ....)

And then with someWin you can manipulate the window.
Jan 20 '08 #2
SAM
Joe Sent Me a écrit :
I have opened a new window and now want to change something in the
newly opened window. I am doing this.......
<html>
<script type="text/javascript">

function pop() {
if(typeof foo == 'undefined' || foo.closed)
foo=window.open('','myTarget','width=500,height=40 0');
foo.focus();
}

function changePop(what) {
if(typeof foo == 'undefined' || foo.closed)
pop();
foo.location = what;
foo.focus();
return false;
}
</script>

<a href="myPage.htm" target="myTarget" onclick="pop();">
My Page</a(simple example 1)<br>
<a href="#" onclick="return changePop('page2.htm')">
Page #2</a(change page in popup - example 2)
</html>

--
sm
Jan 21 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5669
by: vishal | last post by:
hi i am creating one site and i am not allowed to use client side scripting in site and i have one link in my one page. when user clicks on this link the target page must be opened in another...
10
11190
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
14
11016
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...
2
1868
by: Buddha Pest | last post by:
The 1st window opens the 2nd window. The 2nd window opens the 3rd window. From the 3rd window, how do I close the 3rd and 2nd windows then change the URL of the 1st window? Thanks.
21
18111
by: alistair_henderson | last post by:
Morning All, I have some code for a website which uses 'window.open' to simulate modal dialog boxes. I use the window.closed property to decide if the window object exists at various points. ...
1
1419
by: Simon Wigzell | last post by:
I have a picture gallery webpage. Naturally I want as much space as possible for the pictures but with browsers these days the actual available area is only 2/3 - 3/4 of the total window. So I have...
3
1922
dmjpro
by: dmjpro | last post by:
I have a lot of frames in a window. In one of them i placed a IFRAME and change the source of my target page. Now what I need, if i click a link on that page a DIV should be opening on the middle...
3
1457
by: BillyZ | last post by:
I have a navigation panel on 20 or so page and would like to change ot to a include. My problem is that the link of the current page has to be bold. I believe I am close but the code below doesn't...
6
2060
by: SAL | last post by:
Hi, VS2005 post I'm opening a window using the following syntax: Protected Sub lbEstValue_Click(ByVal sender As Object, ByVal e As System.EventArgs)...
0
7007
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
7174
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
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5470
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,...
1
4919
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...
0
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.