Forum Moderators: open

Message Too Old, No Replies

alternative to window.open()

alternate window.open()

         

Soave

6:19 pm on Aug 2, 2006 (gmt 0)

10+ Year Member



In my website I have a limited amount of links that open into a new resized window to show some small amounts of information. Currently I'm using the code below to open the link into a new resized window:

<a onclick="window.open('webpage.htm' ,'Max', 'toolbar=no, width=400, height=275, left=100, top=100, screenX=200, screenY=150, status=yes, scrollbars=yes, resize=yes'); return false" href="#">

This code is currently being stopped by pop-up blockers. There is some concern that since most of our customers are fairly computer illiterate that they may not realize that the link is working it's just being blocked.

Does anyone know of an alternative way of opening a link into a resized new window without using window.open?

Fotiman

7:36 pm on Aug 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe try using the target attribute, and putting javascript in the target page that shrinks the window?

Soave

1:40 pm on Aug 3, 2006 (gmt 0)

10+ Year Member



Fotiman that's an interesting idea. One concern I have with doing that is how would people useing a brower with tabbed widows fell about the link opening a new tab and then resizing their main window. Also is there a JavaScript way to remove the menus and address bar this way?

Thanks