I change something without knowing while I was in FrontPage. And now when I click on a link on my website, it opens in a new window. How can I change this?
Printable View
I change something without knowing while I was in FrontPage. And now when I click on a link on my website, it opens in a new window. How can I change this?
you can post ur code up here and ill look at it and tell ya, or in your a href links there will be a target section, take that out if you dont want in in a new window.
Im not using code. Im using FrontPage, WYSIWYG.
You can post you code from front page. Click on the "code" tab in the bottom left hand corner and copy and paste the code from there. Alternativly just put a link to you site and people can view the code there.
Code:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<style>
<!--
table.MsoNormalTable
{mso-style-parent:"";
font-size:10.0pt;
font-family:"Times New Roman";
}
p.MonthNames
{margin-bottom:.0001pt;
text-align:center;
font-size:24.0pt;
font-family:"Bookman Old Style";
color:#314871;
margin-left:0in; margin-right:0in; margin-top:0in}
p.Weekdays
{margin-bottom:.0001pt;
text-align:center;
font-size:8.0pt;
font-family:"Bookman Old Style";
color:white;
text-transform:uppercase;
letter-spacing:.2pt;
font-weight:bold;
margin-left:0in; margin-right:0in; margin-top:0in}
p.Dates
{margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Bookman Old Style";
color:#314871; margin-left:0in; margin-right:0in; margin-top:0in}
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0in; margin-right:0in; margin-top:0in}
-->
</style>
<script language="JavaScript">
<!--
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
<base target="main">
</head>
<body onload="FP_preloadImgs(/*url*/'buttonE.jpg', /*url*/'buttonD1.jpg', /*url*/'buttonE1.jpg', /*url*/'button13.jpg', /*url*/'button14.jpg', /*url*/'button28.jpg', /*url*/'button29.jpg', /*url*/'button31.jpg', /*url*/'button2A.jpg', /*url*/'button2F.jpg', /*url*/'button33.jpg', /*url*/'button34.jpg', /*url*/'button35.jpg', /*url*/'button36.jpg', /*url*/'button37.jpg', /*url*/'button41.jpg', /*url*/'button40.jpg')">
<p> </p>
<p align="center"><font size="7">News</font></p><hr>
<p><br>
<br>
</p>
<div style="position: absolute; width: 548px; height: 232px; z-index: 1; left: 132px; top: 258px" id="layer2" align="left">
<b>May 08, 2004</b><br>
Welcome to my site. This is just a site that I am going to mess around with
until I get my server going and my new site. Im still adding stuff and
fixing a few things, but feel free to check it out. I am going to have 2 Guestbooks
going until I find out which one is more popular. Use the one labeled
Guestbook 2 if you dont like the other one.</div>
<p>
<br>
<a href="index.htm">
<img border="0" id="img20" src="button42.jpg" height="20" width="100" alt="Home" fp-style="fp-btn: Metal Capsule 1" fp-title="Home" onmouseover="FP_swapImg(1,0,/*id*/'img20',/*url*/'button41.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img20',/*url*/'button42.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img20',/*url*/'button40.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img20',/*url*/'button41.jpg')"></a><br>
<a href="http://www.guestbookdepot.com/php/sign_guestbook_form.php?book_id=583216">
<img border="0" id="img16" src="button32.jpg" height="20" width="100" alt="Guestbook 2" fp-style="fp-btn: Metal Capsule 1" fp-title="Guestbook 2" onmouseover="FP_swapImg(1,0,/*id*/'img16',/*url*/'button31.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img16',/*url*/'button32.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img16',/*url*/'button2A.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img16',/*url*/'button31.jpg')"></a><br>
<a href="http://s7.invisionfree.com/My_Guestbook/index.php?act=idx">
<img border="0" id="img14" src="button12.jpg" height="20" width="100" alt="My Guestbook" fp-style="fp-btn: Metal Capsule 1" fp-title="My Guestbook" onmouseover="FP_swapImg(1,0,/*id*/'img14',/*url*/'button13.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img14',/*url*/'button12.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img14',/*url*/'button14.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img14',/*url*/'button13.jpg')"></a><br>
<a href="polls.htm">
<img border="0" id="img15" src="button30.jpg" height="20" width="100" alt="View Polls" onmouseover="FP_swapImg(1,0,/*id*/'img15',/*url*/'button28.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img15',/*url*/'button30.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img15',/*url*/'button29.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img15',/*url*/'button28.jpg')" fp-style="fp-btn: Metal Capsule 1" fp-title="View Polls"></a><br>
<a href="ws1.htm">
<img border="0" id="img13" src="buttonC1.jpg" height="20" width="100" alt="My Schedule" onmouseover="FP_swapImg(1,0,/*id*/'img13',/*url*/'buttonD1.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img13',/*url*/'buttonC1.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img13',/*url*/'buttonE1.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img13',/*url*/'buttonD1.jpg')" fp-style="fp-btn: Metal Capsule 1" fp-title="My Schedule"></a><br>
<a href="pics.htm">
<img border="0" id="img17" src="button2E.jpg" height="20" width="100" alt="My Pictures" onmouseover="FP_swapImg(1,0,/*id*/'img17',/*url*/'button2F.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img17',/*url*/'button2E.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img17',/*url*/'button33.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img17',/*url*/'button2F.jpg')" fp-style="fp-btn: Metal Capsule 1" fp-title="My Pictures"></a><br>
<a href="files.htm">
<img border="0" id="img18" src="button38.jpg" height="20" width="100" alt="My Files" onmouseover="FP_swapImg(1,0,/*id*/'img18',/*url*/'button34.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img18',/*url*/'button38.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img18',/*url*/'button35.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img18',/*url*/'button34.jpg')" fp-style="fp-btn: Metal Capsule 1" fp-title="My Files"></a><br>
<a href="links.htm">
<img border="0" id="img19" src="button39.jpg" height="20" width="100" alt="Links" onmouseover="FP_swapImg(1,0,/*id*/'img19',/*url*/'button36.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img19',/*url*/'button39.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img19',/*url*/'button37.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img19',/*url*/'button36.jpg')" fp-style="fp-btn: Metal Capsule 1" fp-title="Links"></a><br>
<br>
</p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="center"><br>
<font size="2"><a href="mailto:">Email Me</a></font></p>
</body>
</html>
i cant see any wrong <a> tags, by any chance, you arent using Firefox? cos i know i had this prob, till i realised id set up one of the extensions wrongly
Im using IE. It only does this to my site, not to all sites.
Ill click one of the links and it will pop-up in a new window. Then if I click another one, it will stay in the window that just opened.
Take out this code:
<base target="main">
Nope, didnt work
Ofcourse it will work. Take that code completely out.
or
put this
basically, in place of "main" type "_self"Code:<base target="_self">
Nope, neither of them worked
You sure your browser isnt cache'ing the old page ?
Press F5 a few times and remove your internet files.
It works fine in my browser if I take the code I said to take out.
try ctrl-f5 for a "hard refresh"
Yeah forgot to say CTRL !
Cheers vivitron 15 ;)
Cache-Refresh is Ctrl + R :)
Ctrl + F5 also does it (even with webstamp) but in IE only.
None of those work. I tried viewing the page with Firfox and it still does it.
Can you guys go here and tell me if it does it for you?
First of all, your home is linked to index.htm but your home is really index.html. So fix that.
And no it isnt working because you haven't taken off this line
I still see it in your code. Its above </head>Code:<BASE target=main>
either change main to "_self" or just delete it. Try putting "_self" with quotes.
Seems to have worked this time. I guess when I hit the publish button it didnt update. :blink: (feel kinda stupid :lol:)
Well thanks for the help.
Glad its fixed now. I was begining to wonder at one stage, whether in html 4 something else got deprecated. :lol:
Sometimes when I am download with bt, my connection will top out and I dont connect to the server properly. Stupid pos. :rolleyes:
I think you're ready to switch to a real website building application.
Such as Notepad.exe
Where can I get that at :oQuote:
Originally posted by Sparsely@13 May 2004 - 01:00
I think you're ready to switch to a real website building application.
Such as Notepad.exe
lol j/k :D
:D