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


Groups > comp.lang.javascript > #39331

Re: window open function

Subject Re: window open function
Newsgroups comp.lang.javascript
References <K5SdnQxG8J9iLULCnZ2dnUU7-UHNnZ2d@giganews.com> <b4OdnaWJ4dJEZELCnZ2dnUU78c_NnZ2d@brightview.co.uk> <FPednUiRSe4Mln3CnZ2dnUU7-VHNnZ2d@giganews.com> <RJadnfDR885dk33CnZ2dnUU7-Q_NnZ2d@giganews.com> <bb79ebaa-d9be-43cb-9c7c-89abd7823b57n@googlegroups.com>
From bad sector <forgetski@postit_INVALID_.gov>
Date 2020-12-25 13:45 -0500
Message-ID <ac-dnRj8W6GhrnvCnZ2dnUU7-RXNnZ2d@giganews.com> (permalink)

Show all headers | View raw


On 12/25/20 1:10 PM, Michael Haufe (TNO) wrote:
> On Sunday, December 20, 2020 at 8:56:14 PM UTC-6, bad sector wrote:
> 
>> what I CAN do at this point is just forget JS and do common href
>> tags. When I originally wrote these pages they were more complex
>> and JS gave me more control over windows. It's since become
>> just a lot of overhead.
> 
> Due to abuse by advertisers and other bad actors using popup windows is not suggested.
> 
> I assume this is your website:
> 
> <https://trixtar.org/3/index.html>
> 
> You could replace your popup windows with:
> 
> ```
> <dialog>
>      <iframe src='https://example.com'></iframe>
>      <menu>
>          <button>close</button>
>      </menu>
> </dialog>
> ```
> 
> And style+script as desired.
> 
> Reference:
> <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog>
> 
> If you're feeling lazy, you could find one of the numerous lightbox libraries and just use that:
> 
> <https://www.cssscript.com/easy-tiny-iframe-lightbox-pure-javascript-iframe-lightbox/>

I appreciate the input but what originally brought me here
was a suggestion on another NG given that the suspect
was a possible JS typo or syntax issue in one of the cited
JS lines. My scripts are otherwise full of mistakes and
that never did nor never will bother me one bit seeing that
I'm not a programmer; I just figured that if by chance all I
would have to do would be a minor edit, then well, I'd give it
a shot.  I'm not prepared to get involved beyond that level
any more at my age, partly because rewriting would require
too much and *still not give the desired results*. So I'll just
convert to plain html and href tags and leave one module
still using JS as was. It'll work as long as it will, then it''ll fail
back to some more or less usable default level. End of story,
but I do thank you for the suggestions.

-- 
If DIY were a religion, hmmm  ...I just made it one

https://www.youtube.com/watch?v=p1xPV_SHG-g







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