Forum Moderators: open

Message Too Old, No Replies

Window within a window

         

bobothecat2

9:16 pm on Jul 15, 2014 (gmt 0)

10+ Year Member



Okay, I'm sure this is probably a newbie question and easy to do (so please forgive me), but I'm trying to find out what the proper code would be to open a new window (not a new tab) within the same window (popup) when a user clicks a certain link. The new window should be smaller than the current window that the link was clicked from.

I've come across a few examples, but they all open a new tab when using a cellphone browser (I want the new window to show within the same tab/window). I'd like to know if there's a 'universal' code that works for all (or at least most) web viewing platforms.

Hopefully this makes sense... any help would be greatly appreciated. :)

- Peter

lucy24

10:10 pm on Jul 15, 2014 (gmt 0)

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



they all open a new tab when using a cellphone browser

I think that's an inherent property of mobiles. The iPad does the same thing. Does it have to be a window, as such, or would you settle for a lightbox type thing? Drawing a fake window is easy* if you don't need it to have all possible window properties.


* Here as elsewhere, "easy" = "I can do it".

bobothecat2

11:20 pm on Aug 5, 2014 (gmt 0)

10+ Year Member



Thanks lucy! Sorry for the delayed reply, but a "lightbox" was exactly what was needed - and you are correct... it's fairly easy to implement.