H
hoganlia
I have been given two java scripts to try to stop URLs
jumping out of the frame I want them opening in. the only
thing is that when I insert them on the HTML page, I only
succeed in them showing up as text on the wysiwyg.
Probably I am putting them in the wrong place or doing
something incredibly silly. Can you direct me as to the
insertion point please or giove me some ideas?
My script reads:
<html>
<head>
<meta http-equiv="Content-Language" content="ca">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Pagina nueva 1</title>
<base target="principal">
</head>
<body background="images/Adv%202.gif">
<p align="center"><font face="BrushScript BT" size="6">
<a name="Activities for advanced levels">Activities for
advanced
levels</a></font></p>
The scripts I was given are: 1) In the "head" section,
but I don't know where...
<script language="Javascript">
if (self == top)
{top.location.href="http://www.yoursite/yourframepage.htm"
}
</script>
and 2) after "BODY" flag, and they say "before any other
text."
<SCRIPT LANGUAGE="javascript">
if (self==parent)
{
document.write('<b>THIS IS A FRAME ELEMENT</B>')
document.write('You will be transported to frames in a
second')
document.write('<META HTTP-EQUIV="refresh" CONTENT="1;
URL=framepage.html">')
}
</SCRIPT>
Thanks
jumping out of the frame I want them opening in. the only
thing is that when I insert them on the HTML page, I only
succeed in them showing up as text on the wysiwyg.
Probably I am putting them in the wrong place or doing
something incredibly silly. Can you direct me as to the
insertion point please or giove me some ideas?
My script reads:
<html>
<head>
<meta http-equiv="Content-Language" content="ca">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Pagina nueva 1</title>
<base target="principal">
</head>
<body background="images/Adv%202.gif">
<p align="center"><font face="BrushScript BT" size="6">
<a name="Activities for advanced levels">Activities for
advanced
levels</a></font></p>
The scripts I was given are: 1) In the "head" section,
but I don't know where...
<script language="Javascript">
if (self == top)
{top.location.href="http://www.yoursite/yourframepage.htm"
}
</script>
and 2) after "BODY" flag, and they say "before any other
text."
<SCRIPT LANGUAGE="javascript">
if (self==parent)
{
document.write('<b>THIS IS A FRAME ELEMENT</B>')
document.write('You will be transported to frames in a
second')
document.write('<META HTTP-EQUIV="refresh" CONTENT="1;
URL=framepage.html">')
}
</SCRIPT>
Thanks