robert2
02-29-2004, 05:56 AM
Hi,
I'm new to java.
Just found an easy and reasonable looking script from http://www.a1javascripts.com/site_navigation/opennewwin2/opennewwin2.html.
But when following instructions - the script doesn't work.
Probably something essential missing, which the author didn't mention. There is no frames. The purpose is to open new smaller info window without toolbars. While clicking i get error on page
Can anyone point out what i'm doing wrong?
tia robert
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kambja</title>
<script>
function remote(url){
window.opener.location=url
}
</script>
</head>
<body background="kambja.gif" bgproperties="fixed">
<script>
function chgMainWinLoc( strPage ) {
parent.opener.document.location = strPage;
}
</script>
<p> </p>
<a href="javascript: chgMainWinLoc( YOUR_PAGE.html )">Open my window</A>
</body>
</html>
I'm new to java.
Just found an easy and reasonable looking script from http://www.a1javascripts.com/site_navigation/opennewwin2/opennewwin2.html.
But when following instructions - the script doesn't work.
Probably something essential missing, which the author didn't mention. There is no frames. The purpose is to open new smaller info window without toolbars. While clicking i get error on page
Can anyone point out what i'm doing wrong?
tia robert
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Kambja</title>
<script>
function remote(url){
window.opener.location=url
}
</script>
</head>
<body background="kambja.gif" bgproperties="fixed">
<script>
function chgMainWinLoc( strPage ) {
parent.opener.document.location = strPage;
}
</script>
<p> </p>
<a href="javascript: chgMainWinLoc( YOUR_PAGE.html )">Open my window</A>
</body>
</html>