[Javascript] Broken script !
Dan Costea
costea.dan at ssi-schaefer.ro
Wed Apr 3 16:59:29 CST 2002
modify your script like this:
<SCRIPT LANGUAGE="JavaScript">
function loadframe(url) {
parent.topFrame.location=url;
}
</SCRIPT>
<a href = "#" onclick="javascript:loadframe('question.htm')">Click</a>
----- Original Message -----
From: <RFreeman at ncb.org.uk>
To: <javascript at LaTech.edu>
Sent: Wednesday, April 03, 2002 4:47 AM
Subject: [Javascript] Broken script !
> Hi all,
>
> First post here as I am new to jscript programming. When a certain link is
> clicked, I want it to run this script and to change the top frame in my
> framset (cunningly named topFrame) but it does not seem to work - any help
> much appreciated.
>
> Yours,
>
> Rich
>
> <SCRIPT LANGUAGE="JavaScript">
> function loadframe(url) {
> parent.topFrame.location="url"
>
> }
> </SCRIPT>
>
> <a href = "#" onclick="javascript:loadframe(question.htm)">Click</a>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list