views:

917

answers:

1

In a html page, i added the following code

<a href="http://www.google.com" target="_blank"><span><input type="button" value="google" /></span></a>

To achieve image button with sliding door technique, i happens to mark up like this.

Now When I click the button, google.com opens in two tabs in Firefox.

IE didn't respond at all !!!

Thanks for any help!!!

A: 

The error is with your target attribute. Replace _blank with __blank.

Also replace your input button with an image.

<img>

tag

<a href="http://www.google.com" target="__blank">
     <img src="your_image_source" alt="Google" border="0" />
</a>
rahul
Thanks phoenix. I tried with type="image". That too not working. :-((But I need input button there because my application requires it.
rajakvk
No I mean <img /> tag and not input type="image"
rahul
"__blank" solves my issue in Firefox even for <input type="button" />. But IE7 doesnot open any window at all???Thanks Phoenix
rajakvk
If you nee the style of an input button then create an image that looks like an input button and use that inside the anchor tag.
rahul
I have done almost like that only. Please check the urlhttp://www.eduvisiontest.info/schoolsignin.aspxI'm talking about Login button. Thoughout the site, i used this kind of markup. inside project at one place, i have to open a link when clicked this button.
rajakvk