473,405 Members | 2,141 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,405 software developers and data experts.

Opening new window in Mozilla

Rob
Why does the following code NOT work in Mozilla, but it DOES in IE
(for Mac) and Safari?

<a href="somepage.html" onClick="window.open('somepage.html',
'SomeWindowTitle', 'width=790,height=560, scrollbar=auto,
menubar=no');">Enter</a>

Please help...thanks
Jul 20 '05 #1
2 4841

"Rob" <ro**************@yahoo.com> schreef in bericht
news:3b**************************@posting.google.c om...
Why does the following code NOT work in Mozilla, but it DOES in IE
(for Mac) and Safari?

<a href="somepage.html" onClick="window.open('somepage.html',
'SomeWindowTitle', 'width=790,height=560, scrollbar=auto,
menubar=no');">Enter</a>

Please help...thanks


Works in my copy (Mozilla v1.4), but is the following not what you really
want?

<a href="somepage.html" target="SomeWindowTitle"
onClick="window.open('','SomeWindowTitle',
'width=790,height=560,scrollbar=auto,menubar=no'); ">Enter</a>

P.S.: Watch for spaces in the window properties, they shouldn't be present.
JW

Jul 20 '05 #2
DU
Rob wrote:
Why does the following code NOT work in Mozilla, but it DOES in IE
(for Mac) and Safari?

<a href="somepage.html" onClick="window.open('somepage.html',
'SomeWindowTitle', 'width=790,height=560, scrollbar=auto,
menubar=no');">Enter</a>

Please help...thanks


As coded, your link will not open a requested popup if javascript is
disabled. As coded, your link will create a popup and then load the
referenced resource in the opener too. As coded, the popup will exceed
the available space for application in MSIE, Mozilla and Opera browsers
so error compensation/correcting functions will need to spend time, cpu
to render the window within the os-workarea for applications.

<a href="somepage.html" target="SomeWindowTitle"
onclick="window.open(this.href, this.target,
'width=600,height=500,scrollbars=yes,resizable=yes ,status=yes'); return
false;">Enter</a>

will open a popup window in all browsers under normal conditions. Note
that scrollbar=auto will not be honored in MSIE 5+, Mozilla, NS 6+ and
Opera 7. It must be scrollbars=yes. And you must make sure there is no
blank space in the 3rd argument string list.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #3

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

Similar topics

2
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to...
1
by: Michael | last post by:
I would like to launch an online store in a separate window once the visitor clicks on "Shop Now". We have installed the following code on our site: <a href="onlinestore.asp" target="_blank">Shop...
3
by: Clinton Goff | last post by:
I am attempting to write a javascript app that will open a second browser window, load a url, such as www.google.com (foreign url) and perform a <File-Save As> function on that window. I am able...
1
by: Todd Cary | last post by:
I am using PHP to create a button on a window so that a new window is created when the button is clicked. Is there a way to create a new window inline; that is create a window on top of the...
2
by: Daniele Baroncelli | last post by:
Hi guys, I am trying to find out how to position an opening window in Internet Explorer. While in Netscape/Mozilla/Firefox exist the options screenX and screenY for the open method of 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...
5
by: k.vanderstarren | last post by:
Hi All, I'm having a problem that is driving me absolutely batty and I'm hoping that one of you JavaScript gurus can help me out before I go stark raving mad. I am using the function shown...
1
by: Gildari0n | last post by:
Ok, so I got this script to open a certain website...works perfect on mozilla, but doesnt on IE: <a href="URL" onclick="window.open('URL', 'NAME OF WINDOW',...
1
by: akiran80 | last post by:
Hi All, iam using IE 6 with SP2 patch. when am tryig to open text(spreadsheet format data) it is opening in same window. expected behaviour is it should ask for open or save option once iclick...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
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,...
0
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
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
tracyyun
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...

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.