Results 1 to 3 of 3

Thread: IE Window Location

  1. #1
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question IE Window Location

    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

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,969
    Thanks
    16
    Thanked 307 Times in 305 Posts
    Blog Entries
    11

    Default

    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 | Latest News RSS | Facebook | Twitter |
    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 |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,000
    Thanks
    44
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    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

Similar Threads

  1. Replies: 2
    Last Post: 04-01-2012, 04:31 AM
  2. window.location.href
    By surboomer in forum JavaScript
    Replies: 20
    Last Post: 12-04-2009, 08:04 AM
  3. Please Help With Window.location
    By homboy in forum JavaScript
    Replies: 23
    Last Post: 03-30-2008, 12:49 PM
  4. using window.location
    By marringi in forum JavaScript
    Replies: 4
    Last Post: 03-27-2008, 10:30 AM
  5. window.location not working
    By sunny in forum JavaScript
    Replies: 7
    Last Post: 02-06-2008, 05:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •