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,heig ht=370,scrollba rs=no,resizable =no,toolbar=no, directories=no, location=no,men ubar=no,status= no,border=0,lef t=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 staying the same size.
Does anyone knows how to fix the problem so it'll work on both mozilla and IE (possibly even netscape, haven't tried it there)?
1 1544 sashi 1,754
Recognized Expert Top Contributor
Hi there,
the code below works fine in IE, Netscape and Mozzila.. i am using it in my site.. it works fine for me.. give it a try.. good luck my fren.. :)
head section.. -
<script language="JavaScript1.2" type="text/javascript">
-
function openWindow(url)
-
{
-
popupWin = window.open(url,'new_page','toolbar=no,width=400,height=112,directories=no,status=no,scrollbars=no,resize=no,menubar=no')
-
}
-
</script>
-
to invoke the popup window.. -
<a class=link-none href="javascript:openWindow_Email('../_include/inc_suggest_to_friend.asp?id=1&link=http://www.eduguide.com.my/home/default.asp');" title="Suggest to a friend">Suggest to a friend</a>
-
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 is, and I have tested it with
both version 4.72 and 7.02, and they both do it. IE does not do it....
|
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: Novice |
last post by:
Hi all, as you can see from the subject, I'm try to use an asp:button to create a new browser window and output contents to new window
But default if I do the
Response.Write("..."
The output gets sent directly to the window or frame that the button was contained in - if I was using regular anchor links I could just specify the target - i.e.
<a href="http://...." target="nameNotInCurrentFrameset">something</a
Thanks
Novice
|
by: Chris |
last post by:
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page height="500px
or %" target="_blank">click here</a>
then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz",...
|
by: Ralf |
last post by:
Using .NET 1.1, vb code behind.
I have a project and I have been opening new windows throughout it. I
need them opened on top of the parent, and be able to minimize or go
back to the parent if needed before closing the new window. I am
opening the window this way.
Response.Write("<script>window.open('ReviewComments.aspx')</script>")
On the code behind of the new window in the Page_Load function, I keep
the window on top by using this....
| |
by: Toccoa |
last post by:
After considerable googling - I mean searching with Google(r) - I
could not find javascript on a button or <a href=... to close a
window in the latest versions of IE and FireFox.
There seemed to be two techniques for earlier versions. But the
window.opener='' ;window.close();
and the
window.open('','_parent','') ;window.close();
techniques do not work for me. I.e., I still get confirmation message
|
by: Roger |
last post by:
Hi,
I am confused about the differences between this.window.focus(),
window.focus(), and this.focus().
I want to use the calls in a <body onload="..."tag. What are the
differences between these forms that may make one succeed and another
fail? In particular, this.window.focus() fails in Opera 9.10 with an
"object not found", and windows.focus() succeeds in Opera 9.10, Firefox
2.02, and IE 7.
|
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: Ramachand |
last post by:
Actually I have to call a dialog window "Dwin1" from a Parent Window.
From Dwin1, I have to call another Dialog Window "Dwin2".if user close the Dialog Window "Dwin2", i have to refersh the Dwin1. If user close Dwin1, i have to refresh the Parent Window.
For opening a Dwin1 , should not be a problem.but if i open the another dialog Dwin2 from Dwin1, it's opening like a seperate window Dwin1 . From there it's opening the Dialog
Open Dwin1...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 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.
| |