[b]php and frames[/b]

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Fan User
php-forum Fan User
Posts: 64
Joined: Thu Aug 22, 2002 1:07 am

Thu Aug 22, 2002 1:12 am

I have a problem with opening some pages in different frames.

I have a page with 5 frames and when i click a button in one of them i need to open 2 different filess in 2 frames.I dont know how.how can i do this? :evil:

Thu Aug 22, 2002 2:14 am

That's got nothing to do with PHP, you'll need to use a bit of javascript there.

I'm not sure of the complete code off the top of my head, but it would be something like this

function yourFunction() {
windowname.location1 = newlocation.php
windowname.location2 = newlocation2.php

<a href=# onclick=yourFunction()>The link</a>

Thu Aug 22, 2002 2:37 am

is indeed an html problem.
can be solved with javascript as Jay says, but remember that it won't work when the client has his javascript disabled. In that case there will simply happen nothing.

Greetz Daan
Post Reply