Closed Thread Icon

Topic awaiting preservation: opening preconfigured homepage (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8446" title="Pages that link to Topic awaiting preservation: opening preconfigured homepage (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: opening preconfigured homepage <span class="small">(Page 1 of 1)</span>\

 
Dufty
Paranoid (IV) Inmate

From: Where I'm from isn't where I'm at!
Insane since: Jun 2002

posted posted 12-20-2002 19:41

Hey-ho!

Having figured that there's no way to prevent the grrrning 'confirm' dialogue which appears when using the window.close() event.
Is there a way to configure the code below so as to include window parameters i.e. no status bar / buttons etc.

code:
Windows - IE Homepage set as:

javascript:resizeTo(700,700);moveTo(162,20);document.location.href='http://localhost/'



*Bangs head against monitor*

Thankie doodle dandies!
Dufty

[edit]
Oooh!
Quick afterthought - can the window params be applied to a 'refresh' or even a desktop shortcut?
[/edit]


[This message has been edited by Dufty (edited 12-20-2002).]

andy_j
Nervous Wreck (II) Inmate

From: uk
Insane since: Aug 2002

posted posted 12-20-2002 21:13

You 'should' only receive that warning if you are attempting to close a window that your user opened (ie they clicked the shortcut) and i dont think in that case that you can alter the features of the window (status, toolbars etc)

Better off to open a new window with a small script. You can then specify all your features and sizes and when you want to close it, you can do it with script with no confirm error..

have a look at http://www.gurusnetwork.com/tutorials/html/windowpop_generator.html for an excellent window code generator which will make all the code you require.


Dufty
Paranoid (IV) Inmate

From: Where I'm from isn't where I'm at!
Insane since: Jun 2002

posted posted 12-20-2002 21:33

Thanks andy_j - but...

quote:
You 'should' only receive that warning if you are attempting to close a window that your user opened (ie they clicked the shortcut)


As far as I'm aware, the opposite is in fact the case - if they open a window from one of my links, I can close the window without the dialogue.

The problem is, the window which opens (as per the 'homepage' settings) when they start an IE session, will not close without the dialogue - because it didn't get opened by a window.open() link within another page (because no pages exist yet - since it's their homepage (I'm confusing myself now!).




Cell number: 698

andy_j
Nervous Wreck (II) Inmate

From: uk
Insane since: Aug 2002

posted posted 12-20-2002 21:42

Probably didnt explain it very well, but that is exactly what i meant, in that if your user has started say an IE session by opening their browser using their desktop shortcut and then visit your webpage, they will receive the confirm box if your page attempts to close the window.

(i think it was the shortcut reference where i confused matters. sorry)



[This message has been edited by andy_j (edited 12-20-2002).]

Dufty
Paranoid (IV) Inmate

From: Where I'm from isn't where I'm at!
Insane since: Jun 2002

posted posted 12-20-2002 22:09

No worries -

(I didn't exactly make a great job of explaining in the first place!)

« BackwardsOnwards »

Show Forum Drop Down Menu