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![]()
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![]()
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.
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
In simplest terms:
Code:<a href="somepage.htm" target="_new" onclick="window.open(this.href, this.target, 'width=600, height=400, top=100, left=250')">Some Page</a>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks