473,378 Members | 1,139 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,378 software developers and data experts.

weird window.open in Netscape 7.1

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>Testing html and javascript</TITLE>
<script type="text/javascript">
function open_win()
{
window.open("opened.html","joe",config="height=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>Testing html and javascript</TITLE>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<script type="text/javascript">
window.open("opened.html","joe",config="height=300 ,width=300")
</script>
</BODY>
</HTML>
************************************************** **
I hope this isn't something really obvious.

What am I missing?

Thanks.

Ken
Jul 23 '05 #1
4 1169
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
Jul 23 '05 #2


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>Testing html and javascript</TITLE>
</HEAD>
<BODY>
<H1>TESTBED</H1>
<script type="text/javascript">
window.open("opened.html","joe",config="height=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/

Jul 23 '05 #3
*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)
Jul 23 '05 #4

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!
Jul 23 '05 #5

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

Similar topics

4
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"...
6
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...
1
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...
14
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...
4
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. ...
2
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? ...
3
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"><!--...
31
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...
2
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: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.