HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

How do I stop IE and firefox opening two of the same window?
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> HTML Form
View previous topic :: View next topic  
Author Message
nagoyapete



Joined: 02 Oct 2009
Posts: 3

Posted: Tue Oct 06, 2009 8:15 pm     How do I stop IE and firefox opening two of the same window?  

Hello,

I have made buttons that link to a new page and it worked fine in Safari. But as soon as I try it in IE or Firefox I get the new page. But the browser opens two of the new windows showing exactly the same information.

what is wrong with my button?

<A HREF="BOOK2/ACT/ACT314.pdf" TARGET="_blank" ><INPUT TYPE=BUTTON NAME="PushButton1" VALUE="ACT# 314" STYLE="width: 1.37in; height: 0.2in"></A>

Any help and advice would be much appreciated.

Thank you

Peter
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4235
Location: MS

Posted: Wed Oct 07, 2009 7:53 am      

Do you have a form that the button is using when clicked since it has a name="" attribute? Are you using a frame page or HTML 4.01 Transitional doctype since you have used the target="" attribute?

Can't check button's action without an online link to it or a full URL in link tag.
nagoyapete



Joined: 02 Oct 2009
Posts: 3

Posted: Wed Oct 07, 2009 2:59 pm      

Thankyou for replying

I don't have a form attached to the button, just the href.

I using HTML as a way of navigating around a CD-ROM containing a lot of pdf documents. I want it to feel like a website, but all the links / hrefs will point to a certain file on the CD-ROM, not to a website / web page

Hope this helps.

Peter
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4235
Location: MS

Posted: Wed Oct 07, 2009 7:40 pm      

Well, that's going to be hard to troubleshoot. Using the target="_bank" is going to cause a new page to open, but why two from certain browsers is a poser. Without all the other code you are using, I am just going to suggest that you remove the target attribute and see what the reactions are for Firefox and IE. Both must be looking at something else in the coding that I can't see here. All browsers will be calling the PDF reader if there is one listed in the browser's list of associated programs. Possibly this may be triggering that call to the PDF reader plus the link's target is causing a separate call. Just a guess.
nagoyapete



Joined: 02 Oct 2009
Posts: 3

Posted: Thu Oct 15, 2009 6:36 pm      

Thank you for your suggestion. I took it out but then it just opened in the same window!!

I went searching around, maybe another problem was that the Href was creating a window and the button was as well. However I did find the following


<form action="BOOK2/ACT/ACT314.pdf" method="post"
target="_blank">
<input type="submit" value="ACT# 314" STYLE="width: 1.37in; height: 0.2in" />
</form>


Which took care of the problem
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4235
Location: MS

Posted: Fri Oct 16, 2009 1:54 am      

You're welcome. Nothing like a success post. Glad to hear you got it working.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> HTML Form
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group