Zaloguj | Zarejestruj | FAQ
Anonymous

how to make a new but small window to open

+ Odpowiedz

Posty: 8 Strona 1 z 1


how to make a new but small window to open

przez rswebs » Wt lut 15, 2011 8:36 pm

i want to know how i can make a small window to open when people click on a link.

instead of opening a new web page i just want a small 300x250 window to open.

thanks in advance...
Avatar użytkownika

rswebs

  • Posty: 77
  • Dołączył(a): Śr lis 24, 2010 6:47 am
--
Thanks Rafael - www.htmltutorialtopics.com

Re: how to make a new but small window to open

przez rswebs » Śr lut 16, 2011 12:14 am

i like the example you gave me but the one i want should open a new window kind of like a pop-up.
Avatar użytkownika

rswebs

  • Posty: 77
  • Dołączył(a): Śr lis 24, 2010 6:47 am
--
Thanks Rafael - www.htmltutorialtopics.com

Re: how to make a new but small window to open

przez HTML.net » Śr lut 16, 2011 9:43 am

Something like this:

<a href="#" onclick="window.open('newpage.htm', 'newwindow', 'width=300, height=250'); return false;">Click here to open new window</a>

- Andreas, HTML.net
Avatar użytkownika

HTML.net
Site Admin

  • Posty: 1194
  • Dołączył(a): So wrz 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: how to make a new but small window to open

przez Plusone » Pt lip 21, 2017 12:57 am

[code][/code]
is it possible to have the pop up appear in the middle of the page?
Avatar użytkownika

Plusone

  • Posty: 1
  • Dołączył(a): Pt lip 21, 2017 12:56 am

Re: how to make a new but small window to open

przez savyaman » Pt lip 28, 2017 2:46 pm

Plusone napisał(a):[code][/code]
is it possible to have the pop up appear in the middle of the page?

Yes the code will by defualt open it in middle of the page.
Avatar użytkownika

savyaman

  • Posty: 1
  • Dołączył(a): Pt lip 28, 2017 2:38 pm

Re: how to make a new but small window to open

przez webpouyan » Pt sie 04, 2017 1:01 pm

tank you for post
Avatar użytkownika

webpouyan

  • Posty: 1
  • Dołączył(a): Pt sie 04, 2017 12:54 pm

Re: how to make a new but small window to open

przez noyasystem » Pt sie 11, 2017 7:18 am

HTML.net napisał(a):Something like this:

<a href="#" onclick="window.open('newpage.htm', 'newwindow', 'width=300, height=250'); return false;">Click here to open new window</a>
نویا سیستم
- Andreas, HTML.net

please note that most modern brwoser refuse to show popups on their default settings.
So while your code is correct and legit, but that does not trigger a popup window if the browser settings
is not configured correctly.
Avatar użytkownika

noyasystem

  • Posty: 2
  • Dołączył(a): Pt cze 30, 2017 9:17 am

Re: how to make a new but small window to open

przez Eigerstand » Pt sie 25, 2017 8:15 am

Also, if you use adblock, it can block the popup window like so... I recommend you to test it for that.
Avatar użytkownika

Eigerstand

  • Posty: 5
  • Dołączył(a): Pt sie 25, 2017 8:07 am


+ Odpowiedz

Strona 1 z 1