/    Sign up×
Community /Pin to ProfileBookmark

Hey guys, quick question, How can u load 2 functions with an onload function (but i need the two functions to load in 2 seperate frames)?? so like i guess it would go…

(TAKEN FROM MY SCRIPT)

<html>
<head>
<title>Writing to frames</title>
<script language=”JavaScript”><!–
function myUpdate() {
parent.textframe.document.open()
parent.textframe.document.write(‘<HTML><HEAD><STYLE TYPE=”text/css”>body {scrollbar-base-color: #000000;scrollbar-track-color: #000000;scrollbar-face-color: #000000;scrollbar-highlight-color: #000000;scrollbar-3dlight-color: #000000;scrollbar-darkshadow-color: #000000;scrollbar-shadow-color: #000000;scrollbar-arrow-color: #000000;font-family: arial,sans-serif;}</style><TITLE>REFRESH</TITLE><SCRIPT LANGUAGE=”JavaScript”>function nav2page() {parent.frames[“otherframe”].location = “http://” + document.getElementById(“URLtxt”).value;}</script></HEAD><body bgcolor=”black” link=”#FFFFFF” alink=”#FFFFFF” vlink=”#FFFFFF” text=”#FFFFFF”><center><table>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;<form action=”javascript:void()” target=”otherframe”><button type=”submit” onclick=”myUpdate2()”>Refresh</button></form>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;<input type=button value=”Back” onClick=”parent.otherframe.history.go(-1)”>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;<input type=text id=”URLtxt”>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;<input type=button onClick=”nav2page()” value=”Go”>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;<input type=”button” value=”forward” onclick=”parent.otherframe.history.go(1)”>&nbsp;<img src=”http://62.249.233.57:1234/rawr/seperate.gif” height=”15″>&nbsp;</table></center></Body></html>’)
parent.textframe.document.close();
}
//–></script>
<script language=”JavaScript”><!–
function myUpdate2() {
parent.otherframe.document.open()
parent.otherframe.document.write(‘<HTML><BODY bgcolor=”black”></BODY></HTML>’)
parent.otherframe.document.close();
}
//–></script>
<script language =”JavaScript”>
function Function3()
[b]Load = parent.textframe.location.myUpdate() + parent.otherframe.location.myUpdate2();[/b]

</head>
<body onload=[b]“javascript:Function3()[/b]>
<frameset COLS=”100%,*” FRAMEBORDER=”0″ FRAMESPACING=”0″ BORDER=”0″>
<frameset rows=”4%,96%”>
<frame src=”” name=”textframe” noresize scrolling=”no” MARGINWIDTH=”0″ MARGINHEIGHT=”0″>
<frame src=”” name=”otherframe” noresize scrolling=”no” MARGINWIDTH=”0″ MARGINHEIGHT=”0″>
</frameset>
</html>

Can I even do it?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@7studJan 21.2005 — <i>
</i>window.onload=function()
{
funcA();
funcB();
};

It's bad practice to put onload events in the <body> tag. Put the above code up in the <head> tags.
Copy linkTweet thisAlerts:
@Willy_DuittJan 21.2005 — Since when does a [b]frameset[/b] even have a body tag???
Copy linkTweet thisAlerts:
@ArsenalauthorJan 21.2005 — yah, sorry made a mistake? my body tag was lower... but i got rid of it totally now?
×

Success!

Help @Arsenal spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...