Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Target="main" mysteriously appears! Please help me if you can.

Status
Not open for further replies.

dnovakoff

Programmer
Joined
Apr 3, 2002
Messages
7
Location
US
Hi,

I'm using FrontPage 2002, and I have a link to a javascript function that pops open a new window. It looks like this:

<a href=&quot;javascript:openPic('KCandStreet_400.jpg','L');&quot;>
<img [my image is here]>
</a>

In FrontPage, I set the target frame to NONE, because I'm not using frames (using SSI).

But, no matter what I do, when I reopen that html page in the editor, FrontPage puts target=&quot;main&quot; into my <a> tag!! That destroys my javascript function, as it can't have a target in order to work. The page default is even set to None for the target frame, yet it still does this. Even if I remove it by hand in the html editor, as soon as I open the file again or try to Publish, it's back!

Does FrontPage think I'm using frames for some reason?

Please help, because at this point, everywhere I use that function I have to go in by hand with an FTP software and remove the target=&quot;main&quot; manually. Ugh!

Thanks in advance,
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top