I have opened a new window and now want to change something in the
newly opened window. I am doing this.......
<area
href="javascrip t:tour('newwind ow.htm','_blank ','scrollbars=y es,resizable=1, width=780,heigh t=550,top=0,lef t=0')"
onclick="javasc ript:setTimeout ('changenewone( )', 800)" shape="rect"
coords="9, 29, 44, 69">
<script type="text/javascript" src="id1.js">
function changenewone() {
window.location .newemail1.Hide Content('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. 2 1307
On Jan 20, 10:15*am, Joe Sent Me <greend...@jiml owe.netwrote:
I have opened a new window and now want to change something in the
newly opened window. I am doing this.......
<area
href="javascrip t:tour('newwind ow.htm','_blank ','scrollbars=y es,resizable=1, *width=780,heig ht=550,top=0,le ft=0')"
onclick="javasc ript:setTimeout ('changenewone( )', 800)" shape="rect"
coords="9, 29, 44, 69">
<script type="text/javascript" src="id1.js">
function changenewone() {
window.location .newemail1.Hide Content('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('ne wwindow.htm', blah, blah, ....)
And then with someWin you can manipulate the window.
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,heig ht=400');
foo.focus();
}
function changePop(what) {
if(typeof foo == 'undefined' || foo.closed)
pop();
foo.location = what;
foo.focus();
return false;
}
</script>
<a href="myPage.ht m" target="myTarge t" onclick="pop(); ">
My Page</a(simple example 1)<br>
<a href="#" onclick="return changePop('page 2.htm')">
Page #2</a(change page in popup - example 2)
</html>
--
sm This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 window. is it
possible to do it without using javascript,vbscript???
thxs for your help in advance.
|
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="#"
onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES',
'fullimage', 'WIDTH=420,HEIGHT=405,status=0')">
The original window should not reload, but...
|
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 window.open
function? I would prefer not to create a separate HTML page. So far
all I have is the basic
var cwin =...
|
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.
|
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. This has been fine until last
week when I started getting javascript 'Permission Denied' errors when
I try to access this property.
I suspect that...
| |
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 the initial webpage open the
actual gallery in another window as follows:
quickgallery =...
|
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 of the main window.
But if is opening at the middle of the iframe.
My JS code goes here.
var left = window.top.screen.availWidth/2-250,top = 100;
|
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 work.
Any help would be appreciated.
Thanks
<script>
var pageName = "premiumSupport";
|
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)
Response.Write("<script>window.open('EstValueHelp.aspx','_help',
'width=400,height=400');</script>")
End Sub
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |