Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Drag browser from inside window?

Reply
Thread Tools

Drag browser from inside window?

 
 
CB
Guest
Posts: n/a
 
      11-16-2005
Is it possible to drag the browser itself from inside the document
window? What I want to do is open a browser window without a title
bar, but be able to drag it around the screen as if I was dragging
using the title bar. Thanks,

 
Reply With Quote
 
 
 
 
Joshie Surber
Guest
Posts: n/a
 
      11-16-2005
> Is it possible to drag the browser itself from inside the document
> window?


<disclaimer>Without trying it</disclaimer>, you should be able to take
a standard DOM-drag script (like the one at [
http://youngpup.net/2001/domdrag ]) and modify it to call
window.moveBy() or window.moveTo() to move the window... but note that
several browsers nowdays will block scripts from changing a windows
position. Then again, this may not matter because this doesn't sound
like the kind of thing that would be required... just a nice feature.
Hope this helps!

 
Reply With Quote
 
 
 
 
Zif
Guest
Posts: n/a
 
      11-16-2005
CB wrote:
> Is it possible to drag the browser itself from inside the document
> window? What I want to do is open a browser window without a title
> bar, but be able to drag it around the screen as if I was dragging
> using the title bar. Thanks,
>


It is trivial to write a script that attempts to move a window in
response to a mouse drag event or action, however many browsers won't
let you move or resize the window (or even remove the title bar).

Depending on the host environment (and perhaps browser), windows can be
dragged whether they have a title or not. If the window is 'full
screen' or maximized, dragging makes little sense.


--
Zif
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
drag div from inside div to inside another 123Jim Javascript 0 05-16-2011 08:36 AM
Drag image inside container Meelis Lilbok ASP .Net Web Controls 1 01-19-2009 09:34 AM
Drag image inside container Meelis Lilbok ASP .Net 1 01-19-2009 09:34 AM
Pop up modal browser window inside another browser Jimmy Javascript 3 10-06-2007 11:12 PM
cross browser window drag & drop olimoli Javascript 1 11-05-2003 03:00 PM



Advertisments