Hi,
I'm a beginner working thru the javascript tutorial at htmlgoodies.com .
The following works on netscape 7.1 and IE:
*************** *************** *************** ******
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testin g html and javascript</TITLE>
<script type="text/javascript">
function open_win()
{
window.open("op ened.html","joe ",config="heigh t=300,width=300 ");
}
</script>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<form>
<input type="button" value = "Open Window"
onClick = "open_win() ">
</form>
</BODY>
</HTML>
*************** *************** *************** ***************
The following works on IE but not netscape 7.1 (it brings up the main window
but not the one window.open is supposed to open).
*************** *************** *************** **************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML>
<HEAD>
<TITLE>Testin g html and javascript</TITLE>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<script type="text/javascript">
window.open("op ened.html","joe ",config="heigh t=300,width=300 ")
</script>
</BODY>
</HTML>
*************** *************** *************** *******
I hope this isn't something really obvious.
What am I missing?
Thanks.
Ken 4 1183
On 6 Aug 2004 09:27:11 -0700, ken quirici wrote: What am I missing?
Dunno.. I got both to work on both NN 4.8
and Moz 1.3 (did not bother trying with IE).
The only real difference I noticed was that
one document is valid while the other is not.
Ironically it is the one that does not validate
that works OK for you.
The only other difference I could see that
might affect the way the JS is parsed is
that the second statement does not end in
a ';'. This should not prevent the statement
from being executed AFAIK, but I'd try it if
no other explanations ..pop-up. ;-)
--
Andrew Thompson http://www.PhySci.org/ Open-source software suite http://www.PhySci.org/codes/ Web & IT Help http://www.1point1C.org/ Science & Technology
ken quirici wrote: The following works on IE but not netscape 7.1 (it brings up the main window but not the one window.open is supposed to open). *************** *************** *************** ************** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <HTML> <HEAD> <TITLE>Testin g html and javascript</TITLE> </HEAD> <BODY> <H1>TESTBED</H1> <script type="text/javascript"> window.open("op ened.html","joe ",config="heigh t=300,width=300 ") </script> </BODY> </HTML> *************** *************** *************** ******* I hope this isn't something really obvious.
What am I missing?
As a lot of web sites use window.open to open popup windows with ads or
other things the browser user is not interested in newer browsers like
Netscape 7.1 can be configured to block unrequested popup windows opened
by window.open. IE 6 SP 2 (or maybe IE 6 as patched by Windows XP SP 2)
will also allow users to block unrequested popup windows.
If it is your Netscape browser you want to reconfigure look under
Edit -> Preferences -> Privacy & Security -> Popup Windows
where you can either allow all popups or you can setup a list of sites
from which to allow popup windows.
--
Martin Honnen http://JavaScript.FAQTs.com/
*ken quirici* wrote: Hi,
I'm a beginner working thru the javascript tutorial at htmlgoodies.com .
The following works on netscape 7.1 and IE:
[pop-up triggered from as result of a user action]
The following works on IE but not netscape 7.1 (it brings up the main window but not the one window.open is supposed to open).
[pop-up triggered as document is loaded]
I hope this isn't something really obvious. What am I missing?
Install the Google toolbar for IE, open the Google toolbar options and
ensure that the 'Popup Blocker' option is enabled - this will ensure
that both Netscape 7.1 and IE exhibit the same behaviour when it comes
to pop-ups ;-)
--
Andrew Urquhart
- FAQ: www.jibbering.com/faq/
- Contact me: http://andrewu.co.uk/contact/
- This post is probably time-stamped +1 hour - blame my ISP (NTL)
Hi Martin,
That worked! Thanks a lot - that was holding up the
path of progress. :-)
Ken Quirici
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John H. |
last post by:
Hello
I have some trouble in closing a window, Here is the problem:
I develop a asp.net website use client side valiation
<asp:CustomValidator id="CustomValidator1"
ControlToValidate="Text1"
ClientValidationFunction="BasicSearchValidation"
OnServerValidate="ServerValidation"
|
by: lukeo |
last post by:
I'm shelling out to an .asp (or htm) page from an application. I want
to show this in a window without the address bar, etc...
Is there a way I can redirect this page using javascript to a page
where I can set the window height, statusbar=no, etc?
Thanks,
-Luke
|
by: F |
last post by:
I'm trying to open a window in a specific position of the screen with this
script:
window.open('window.htm','mywindow','width=250,height=350,screenX=20,screenY
=100')
it works with Netscape 6.2 but Internet Explorer and Opera just seem to
ignore the XY coordinates.
Any idea on how to make it work?
|
by: Nigel Mercier ® |
last post by:
I'm just starting to learn JavaScript, so far I like it!
I want to add some JS to my Ebay listings, to manually open a pop-up
window. It works OK, but the JS gets rejected by Ebay.
If I can't use JS in my listing, is there a way of using JS to resize a
current window, and remove the toolbars etc, so it looks like a pop-up?
--
|
by: Jamie Jackson |
last post by:
The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.
Are these the only solutions?
* handle onerror in some creative way
* hidden frames
BTW, I do have the luxury of ignoring non IE 5.5+ browsers on...
| |
by: Raptor |
last post by:
I'm a complete Javascript n00b, using a snippet I found on the web.
I'll probably be buying a Javascript book. What's the authoritative
on-line resource for Javascript, like php.net is for PHP? I'm a
relative PHP n00b.
This code works fine on Opera & Mozilla under Linux, but fails for both
Netscape & IE under Windows:
<script...
|
by: Fred Atkinson |
last post by:
I've installed the following Javascript on my Web page and it
is working fine. It brings up a little pop up message (not an ad).
<script language="JavaScript"><!--
window1=window.open('sera.html','messageWindow1','scrollbars=no,width=150,height=245')
//--></script>
I'd like to make the following improvements:
1. I want to control...
|
by: Benno Bös |
last post by:
If I use the following construct in the frame "main" for a link to an
extern site:
<A HREF="http://www.any.xy" TARGET="extern">
the Browser is creating the window "extern", loading the page
www.any.xy an setting the focus to "extern". But when I go return to
"main" without closing "extern", a click to an other link (e.g.
www.2nd_any.xy)...
|
by: Larry R Harrison Jr |
last post by:
I have pull-down menus in javascript and I have the code for opening a link
in a new window. But I want it to open a full-sized window. I can't figure
out the syntax. What I have so far:
Menu5_5_1=new Array("'Lonely Church","javascript:window.open
('http://www.photo.net/photodb/photo?photo_id=2640310')","",0,20,300);
That works fine,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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: 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...
| |