refreshing the top page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

refreshing the top page

Post by d3ad1ysp0rk »

I have my main page (index.php) that has a frame in it (called "sw_frame") and when I load a certain page in the frame, I want it to refresh the index.php page

Thanks
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Not sure but you could try

Code: Select all

window.parent.location.reload();
Hope that helps,
Scorphus.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

is there anyway to load the page like "index.php?page=something"?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post by scorphus »

Try this:

Code: Select all

window.parent.location = 'index.php?page=something';
Cheers
Scorphus.
Post Reply