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',
'SomeWindowTitl e', 'width=790,heig ht=560, scrollbar=auto,
menubar=no');"> Enter</a>
Please help...thanks 2 4888
"Rob" <ro************ **@yahoo.com> schreef in bericht
news:3b******** *************** ***@posting.goo gle.com... 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', 'SomeWindowTitl e', 'width=790,heig ht=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="SomeWin dowTitle"
onClick="window .open('','SomeW indowTitle',
'width=790,heig ht=560,scrollba r=auto,menubar= no');">Enter</a>
P.S.: Watch for spaces in the window properties, they shouldn't be present.
JW
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', 'SomeWindowTitl e', 'width=790,heig ht=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="SomeWin dowTitle"
onclick="window .open(this.href , this.target,
'width=600,heig ht=500,scrollba rs=yes,resizabl e=yes,status=ye s'); 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the
original page the mouse cursor is a Hour glass shape!
my code:
I use DIV tag
<DIV id ="printThis">
<%
|
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 Now</a>
The problem is that if a user clicks on the link more than once several
window will open up. Is there code that will open up the store in the same
window no matter how many times the user clicks on the link above?
|
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 to do this with opening a
second window that loads a local file, but I get an Access Denied error when
I attempt this with a different website. Is there not a command in
javascript that will allow me to open a webpage and perform this function?
...
|
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 current window
without having the surfer press a button?
Here is my current onClick code:
<input name="btnView" type="button" value="View"...
|
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 window object, I couldn't find anything similar in
IE.
| |
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 = window.open('images/KJV-THANKS.gif',
'Thanks', 'width=243,height=420,');
cwin.focus();
|
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 below to open links into the same pop-up
window each time a user clicks any of the news story links contained in
http://www.kris.ca/newsroom.aspx. The function works perfectly for all
of the links except for the ones from the BBC's website. Links to
|
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', 'width=520,height=370,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,border=0,left=50,top=50'); return false">NAME OF LINK</a>
On mozilla it opens a window of the good size on the good place. But on IE it just goes to the url in the same window...
|
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 open should open in new window and show the data. but it is opening in same window.
in Mozilla it works fine and IE 7 also fine but not in IE6...
plz provide me solution
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |