Login | Register | FAQ
Anonymous

how to make a new but small window to open

+ Post a reply

3 posts Page 1 of 1


how to make a new but small window to open

by rswebs » Tue Feb 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...
User avatar

rswebs

  • Posts: 77
  • Joined: Wed Nov 24, 2010 6:47 am
--
Thanks Rafael - www.htmltutorialtopics.com

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

by rswebs » Wed Feb 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.
User avatar

rswebs

  • Posts: 77
  • Joined: Wed Nov 24, 2010 6:47 am
--
Thanks Rafael - www.htmltutorialtopics.com

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

by HTML.net » Wed Feb 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
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.


+ Post a reply

Page 1 of 1