Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39296
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: window open function |
| Date | 2020-12-23 01:48 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1916018.oMNUckLgyt@PointedEars.de> (permalink) |
| References | <K5SdnQxG8J9iLULCnZ2dnUU7-UHNnZ2d@giganews.com> |
bad sector wrote:
^^^^^^^^^^
Who?
> when this function is called in one of my pages I get the
> window but no menu, no navbar, no nothing so the reader
> is unable to back out to the point of departure
Not true: They can close the popup.
> function fenvir(){htropen=open("envir/index.html",
>
"displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>
> the width & height statements work, the window is resizable
> and has a scroll bar if needed, but there is just a url window
> that isn't even editable and no navbar or menubar
This is how popups work now in some browsers. There is nothing you can do
about it except not to use popups.
> any ideas, bad syntax? thanks
>
> BTW the lines that has the ref is like so:
>
> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png"
> border="0" height="106" width="110"></a>
Never do this:
<http://PointedEars.de/scripts/faq/cljs/#javascriptURI>
Instead:
<a href='envir/index.html' onclick='fenvir(this.href); return false"
><img src="envir/earth110x106-t.png" border="0" height="106" width="110"
alt='Text that is displayed if the image is not'></a>
You probably want to drop “index.html” as well:
<https://www.w3.org/Provider/Style/URI>
Then
var htropen;
function fenvir (uri)
{
htropen = window.open(
uri,
"displayEnvirWindow",
"width=980,height=700,top=0,left=0,resizable,menubar,navbar,scrollbars");
}
Note that modern browsers will block popups by default.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 15:15 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 19:01 -0500
Re: window open function Julio Di Egidio <julio@diegidio.name> - 2020-12-20 18:16 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-21 22:54 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 21:41 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 21:55 -0500
Re: window open function "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-12-25 10:10 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-25 13:45 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 01:49 +0100
Re: window open function Javier <invalid@invalid.invalid> - 2020-12-23 14:29 -0600
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-24 18:00 +0100
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-21 19:29 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-21 15:28 -0500
Re: window open function Julio Di Egidio <julio@diegidio.name> - 2020-12-21 18:04 -0800
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-24 18:02 +0100
Re: window open function Kristjan Robam <jippii1291983@gmail.com> - 2020-12-22 09:21 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-22 16:59 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 01:48 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-22 22:12 -0500
Re: window open function Daniele <webmaster@appliserver.com> - 2020-12-23 12:18 +0100
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 22:12 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-23 17:15 -0500
Re: window open function Andrew Poulos <ap_prog@hotmail.com> - 2020-12-24 16:02 +1100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-24 09:29 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-24 22:32 +0100
csiph-web