View Full Version : IE Window Location
dj_jords
10-01-2013, 10:47 AM
Hello,
I am just wondering if it is possible to run a script that will open up a webpage at a particular size and locate it at a set position on the screen?
Thanks :)
Beverleyh
10-01-2013, 11:23 AM
Yes, if you Google popup window tutorials you will find example scripts for this using standalone JavaScript or libraries such as jQuery. Which you want to use depends on whether you're using a library already in your web page. You also need to decide how your popup is being triggered - onclick or when the page loads, but you will find examples of these when you do your search.
Something like "popup windows with positioning" or "popup windows with coordinates" should do it.
jscheuer1
10-01-2013, 02:32 PM
In simplest terms:
<a href="somepage.htm" target="_new" onclick="window.open(this.href, this.target, 'width=600, height=400, top=100, left=250')">Some Page</a>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.