Jump to content

Recommended Posts

Hey guys been looking through what can be done with java script and I was wondering how to make it where a new window opens up and when the window opens up the user cant move the window out side the current browser window. Acctually im wanting to make it where they cant move the window at all.

 

Is this done with window object? Im having problems finding the right keywords on googling this. Like to know what im trying to do and what its called so i can google detail help for it.

Link to comment
https://forums.phpfreaks.com/topic/258882-unmovable-window/
Share on other sites

There's no way to open an actual unmovable window in javascript.  What you can do is open a DIV on top of your page and dim out the page using an overlay div.  Then you can control whether that div is movable or not.  For an example of this setup check out Thickbox

 

Link to comment
https://forums.phpfreaks.com/topic/258882-unmovable-window/#findComment-1327128
Share on other sites

There is a game called lord of ultima

http://www.lordofultima.com/en/

 

and I notice when you open up a window its fixed. So maybe they are just using CSS box then.

I'm not even sure if they are even using CSS/java script/AJAX to do this game. I just assumed. but what else is there. I know they are using .net for the sever side language.

Link to comment
https://forums.phpfreaks.com/topic/258882-unmovable-window/#findComment-1327131
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.