Click here to get back home

trying to close a window and open a new one without toolbars

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
trying to close a window and open a new one without toolbars Albretch 07-21-2004
Get Chitika Premium
Posted by Albretch on July 21, 2004, 2:00 pm
Please log in for more thread options
Hi,

client wants for a window with no toolbars to open (technical and
'esthetical' reasons) after the window, user clicks on, is being
closed.

I told them about security settings in browsers and no cross-browsers
solutions and all of that we know, but they have told me they have
seen that before and how then the annoying pop-up windows work? . . .

After reading and searching . . . I still don't see how to get it
right

This is what I have (see below) which is still prompts you with the
message:

"The Web page you are viewing is trying to close the window."

"Do you want to close the window?"

"[YES|NO]"

// Page1_WithBrowswerToolbars.jsp
// - - - - - - - - - - - - - - - - - Page1_With Browswer Toolbars

<html>
<head>
<title>Page1_WithBrowswerToolbars</title>
<script type="text/javascript" language="Javascript">
<!--
function newWindow(popWin){
// __
window.opener = self;
window.close();
// __
popWindow = window.open(popWin, 'popWin',
'width=700,height=600,resize=yes,toolbar=no,location=no,scrollbars=yes');
popWindow.focus();
}
-->
</script>
</head>

<body bgcolor="ffffff">
<center><h1>Page1 With Browser Toolbars</h1>
<br />
<br />
<a href="javascript:newWindow('./Page2_WithNoToolbars.jsp')">click
here to open window with no tool bars</a>
</center>
</body></html>

// Page2_WithNoToolbars.jsp
// - - - - - - - - - - - - - - - - - Page2 With No Toolbars
<html>
<head>
<title>Page2_WithNoToolbars</title>
<script type="text/javascript" language="Javascript">
<!--
function CloseParent(){
var hwnd = window.open('','Page1_WithBrowswerToolbars'); // notice,
no page included, only the title of the window you want to hijack
hwnd.close();
}
-->
</script>

</head>

<body onload="CloseParent()">
<center><h1>Page2_WithNoToolbars</h1></center>
</body></html>

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Posted by Andrew Thompson on July 21, 2004, 9:41 pm
Please log in for more thread options
On 21 Jul 2004 13:00:58 -0700, Albretch wrote:

Read in c.l.j.programmer

> client wants for a window with no toolbars to open

reader wants on-topic posts

> <script type="text/javascript" language="Javascript">

Which this is not. What makes you think
Java programmers are qualified or able
to abswer JS questions? Most Java programmers
would not even recognize the mistake in that line.

Would you ask the baker about that problem
you are having with the roof on your house?

<http://groups.google.com/groups?q=group:comp.lang.javascript>

In future, please do not post JS questions to c.l.j.p.,
please do not cross-post to three groups (in case you
were wonderring if you might be that important - no,
you are not).

F'Ups set to c.l.js.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Posted by Albretch on July 21, 2004, 8:11 pm
Please log in for more thread options
> Would you ask the baker about that problem
> you are having with the roof on your house?

Your parallelism I find more off-topic (and I would say stupid) than
my inquiry.

Proof?

I did a javascript group:comp.lang.java.programmer search and got
14,100 (including mine)

'"public class" group:comp.lang.javascript' gives you 359
'"public class" group:comp.lang.javascript -applet'; 108

'"public class" group:comp.infosystems.www.authoring.html'; 12

There must be a reason why javascript qs are more than 100% likely
posted on a java group than java qs are posted in JS/design ones. I
have constantly seen people asking HTML and Javascript questions to
server side java developers here in this group.

They usually complain about HTML/design people being cranky.

> In future, please do not post JS questions to c.l.j.p.,
> please do not cross-post to three groups (in case you
> were wonderring if you might be that important - no,
> you are not).
>
> F'Ups set to c.l.js.

Thank you for letting me know how important I should think I am.

Now, do you want to become my mother too?


Posted by Brian on July 21, 2004, 11:32 pm
Please log in for more thread options
Albretch wrote:

> I did a javascript group:comp.lang.java.programmer search

Great. But Java != JavaScript.

> There must be a reason why javascript qs are more than 100% likely
> posted on a java group than java qs are posted in JS/design ones.

There must be a reason why articles x-posted to more than one group
are often not appropriate for any of them.

> I have constantly seen people asking HTML and Javascript questions to
> server side java developers here in this group.

Java and JS questions are off-topic for ciwah, unless they pertain to
the markup used to include them in an html document.

> Now, do you want to become my mother too?

Do you want to get plonked?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Posted by Albretch on July 22, 2004, 6:09 am
Please log in for more thread options
> Albretch wrote:
>
> > I did a javascript group:comp.lang.java.programmer search
>
> Great. But Java != JavaScript.
>

Jeez! I new these guys would be able to even challenge Einsteins
equation.

They are so smart!!!

> There must be a reason why articles x-posted to more than one group
> are often not appropriate for any of them.
>
> > I have constantly seen people asking HTML and Javascript questions to
> > server side java developers here in this group.
>
> Java and JS questions are off-topic for ciwah, unless they pertain to
> the markup used to include them in an html document.
>
> > Now, do you want to become my mother too?
>
> Do you want to get plonked?

Reinforcing exactly my point.

Brian, you have really broken my heart, I could not sleep well
because of your language.


Similar ThreadsPosted
New browser window with no toolbars January 10, 2005, 4:53 pm
How to close the window after submitting the form July 12, 2006, 2:50 am
window.open(...) does not work September 9, 2004, 12:28 am
Open Your Own Darn Window! April 26, 2007, 8:52 pm
open a java window from html October 8, 2004, 11:46 am
why china's websites open links in new window? August 31, 2007, 1:10 pm
How do I pass a list of arguments from a popup window to the parent window? July 6, 2006, 4:49 am
close? July 7, 2005, 7:07 am
Safari issue with self.close February 28, 2007, 12:51 pm
Losing session data on browser close August 16, 2008, 5:20 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap