SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast Ryka's Avatar
    Join Date
    Jul 2001
    Location
    A Globe
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Resizing current window when clicking link

    Ok, I know how to use javascript to modify a newly opened window's properties.

    Instead, what I want to happen is someone clicks on a link and they stay in the current browser window, but the window size changes to fit my specifications.

    Any help would be greatly appreciated.

    Thanks!
    Ryka
    lost in a sea of experts

  2. #2
    SitePoint Member LittleMan's Avatar
    Join Date
    May 2002
    Location
    PA
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's up,
    You can write a function using
    ....
    window.resizeTo(SetWidth , SetHeight)......

    Then call the function w/ <a onClick="That_Function()">
    ....

    Here is a page about it...
    http://webreference.com/js/tutorial1/manipulate.html

    And the whole Tute....
    http://webreference.com/js/tutorial1/

    Peace,
    LittleMan

  3. #3
    SitePoint Enthusiast Ryka's Avatar
    Join Date
    Jul 2001
    Location
    A Globe
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks LittleMan!

    I'll be sure to check out those links as well.
    Ryka
    lost in a sea of experts

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    remember to set the focus to the current window

  5. #5
    SitePoint Member LittleMan's Avatar
    Join Date
    May 2002
    Location
    PA
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    No problem.

    I'm just getting started with the whole window.open concept myself, I've only ever written code for WebTv which doesn't support windows, it uses an iFrame instead. I'm having fun w/ all the different option w/ windows


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
  •