Greybox, the pop-up window: http://orangoo.com/labs/GreyBox/

I'd just like to know how I can get it to pop-up not in the center of the page.
I'd like it to pop-up on the left side of the page.
Is that possible? If so can you help me accomplish this?
It's ben suggested to change the CSS styles, but I and others haven't succeeded there. It may need additional code.
Any help would be appreciated. Thanks.

Recommended Answers

All 2 Replies

You could use something like this:

<script type="text/javascript">

<!--
 
var win = function() {
   window.open( "", "Left-Side", "height=500,width=500,left=0,top=20");
 
};

window.onload = win;
// -->
</script>

Hi,

I have a similar problem.
In my code, I am checking the status of pop-up blocker, by opening a small pop-up window.

I have to move this small window away from screen because it is annoying to the user.

The code is similar as above:

<script type="text/javascript">
<!--
var win = function() {
   window.open( "", "Left-Side", "height=500,width=500,left=5000,top=10000");
};
window.onload = win;
// -->
</script>

It is working fine in Firefox for both the following scenarios.
1. Invoke the html from disc
2. Invoke the html from Apache

It is working fine in IE for the first scenario - Invoke the html from disc. But when I invoke the HTML from Apache in IE, the pop-up is getting located at the bottom right corner of the screen.

Can you please help me to fix this?

Thanks
Abhilash

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.