Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Functions

Status
Not open for further replies.

VisBasDude

Programmer
Nov 10, 2002
19
GB
Hi there, yeah in JavaScript to call a function in html you just do functionname() rite? Im using php which is creating a page and when this page has loaded i want it to load another page in another frame. I just cant seem to get my head round how to do this! Any ideas?? Thanx James
 
Try this it's what Idid I assume you want something similar.

menu in left frame, main page on right.Login apears in main page, after successful login, new menu appears on left.
Put the following in the head of your successful login page
type="text/javascript">
<!--

function pageloader()
{
parent.Contents.location.href=&quot;}

//-->
You also need to change your body tag as follows
<body onload =pageloader();>

Hope it helps
ian It's not a lie if you believe it!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top