SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru dragonhawk's Avatar
    Join Date
    Apr 2002
    Location
    Melbourne
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    refreshing target window

    Need a little help if possible... hopefully someone knows the solution off the top of their heads

    Anyway, I can make a target window refresh by clicking a link:

    <a href="javascript:window.reload()" target="targetwindow">Click here to refresh target window</a>

    What I actually need to do is make that target window automatically refresh without anyone clicking on anything.

    I've figured that I need to have an onLoad within the body tag... something like:

    <body onLoad="window.reload()">

    but that continually refreshes the current window everytime it loads up. How do I set it so that it reloads the target window instead of it's own window?

  2. #2
    SitePoint Guru dragonhawk's Avatar
    Join Date
    Apr 2002
    Location
    Melbourne
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind... found it

    window.opener.location.reload() was what I was looking for


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
  •