Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #39296

Re: window open function

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED.68.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: window open function
Date Wed, 23 Dec 2020 01:48:17 +0100
Organization PointedEars Software (PES)
Lines 60
Message-ID <1916018.oMNUckLgyt@PointedEars.de> (permalink)
References <K5SdnQxG8J9iLULCnZ2dnUU7-UHNnZ2d@giganews.com>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
Injection-Info gwaiyur.mb-net.net; posting-host="68.225.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch:178.197.225.68"; logging-data="22949"; mail-complaints-to="abuse@open-news-network.org"
User-Agent KNode/4.14.10
Cancel-Lock sha1:2RHhhotSF7U7ts2LQ5/wxgjfhTs=
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
X-User-ID U2FsdGVkX18JJpdnpqyC+d+V2SU7XuzG3OM7z5EzMJfTZzV3DSMCCg==
Xref csiph.com comp.lang.javascript:39296

Show key headers only | View raw


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


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