HTML - Input Button Also A Link? (works In Ff, Not In Ie)
I'm trying to have an input event also hyperlink to a page! Right now- this is what is happening:
-Visitor hovers over an input-button image, this image changes -A second image on a different part of the page also changes when the visitor hovers what I want it to also do: -Visitor can click the button, and then go to a new page. Here is my code: HTML Code: <a href="http://google.com"><input id="A" type=image onmouseover="swap(this , srcA2 , srcXA)" onmouseout="swap(this , srcA , srcX)" value=" "></a> As you can see, I'm using both onmouseover & onmouseout tags. Right now, I'm also using a basic <a href=""></a> hyperlink in order to allow the visitor to click & go to a new page. This works in firefox just fine- but IE does not recognize the input button as a link. Are there any ways to solve this? I'm thinking I should use an OnClick event, but I don't know how to do this! Help would be greatly appreciated! Similar TutorialsHi, Is it possible in HTML to have a link that takes you back to the previous page you visited. But here's the catch....i want the back link on my pages to behave exactly as the BACK button in Internet Explorer (hope that makes sense). I have a link on my pages which is this: <font size="2"><a href="javascript: window.history.go(-1)">BACK</a></font> but this works in such a way that if you go to Page1, then Page2, then Page 3, then you click on BACK in page3...that takes you to Page2...if you then click on the BACK link on Page2, it takes you back to Page 3...when in fact I want it to go to Page 1.... Please urgently help. Thanks at the page http://www.lubbockonline.com/RSS/index.shtml, I've added myYahoo! buttons and igoogle buttons to add our RSS feeds to yahoo and google respectively. however, I'm noticing a bit of odd behavior. In IE 6 it all works splendidly, but in Firefox 2.0.0.12, if the images are set to border: 0px; then the images are suddenly not clickable. If the border is not set, it shows a 1px black border and only the bottom border of the image seems to be clickable. Hi im not sure if this can be done i have created some buttons to use as links and once i put the a href code in a box appears around the button can i remove this and how plz you can see example of what i mean on my website i have made Home and Contact clickable but i want to remove the box thats around the button if possible http://dreamteam0708.co.uk/ for info: im coding my own html in notepad, not using any programs or anything and my hosting doesnt support php etc The following webpage uses an a href to turn the chunk of java code into a link to the bottom of the page, while this works in Safari it doesn ot in FireFox v2/3 (I have not got IE, can somebody confirm). How can I make the java applet link work under FF? http://lovelago.googlepages.com/java_button_2.html Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><!-- charset must remain utf-8 to be handled properly by Processing --> <meta http-equiv="content-type" content="text/html; charset=utf-8"><title>java_button_eg : Built with Processing</title> <style type="text/css"> /* <![CDATA[ */ body { margin: 60px 0px 0px 55px; font-family: verdana, geneva, arial, helvetica, sans-serif; font-size: 11px; background-color: #ddddcc; text-decoration: none; font-weight: normal; line-height: normal; } a { color: #3399cc; } a:link { color: #3399cc; text-decoration: underline; } a:visited { color: #3399cc; text-decoration: underline; } a:active { color: #3399cc; text-decoration: underline; } a:hover { color: #3399cc; text-decoration: underline; } /* ]]> */ </style></head><body> <a href="#Bottom"> <div id="content"> <div id="java_button_eg_container"> <!--[if !IE]> --> <object classid="java:java_button_eg.class" type="application/x-java-applet" archive="java_button_eg.jar" standby="Loading Processing software..." height="100" width="100"> <param name="archive" value="java_button_eg.jar"> <param name="mayscript" value="true"> <param name="scriptable" value="true"> <param name="image" value="loading.gif"> <param name="boxmessage" value="Loading Processing software..."> <param name="boxbgcolor" value="#FFFFFF"> <param name="test_string" value="outer"> <!--<![endif]--> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_15-windows-i586.cab" standby="Loading Processing software..." height="100" width="100"> <param name="code" value="java_button_eg"> <param name="archive" value="java_button_eg.jar"> <param name="mayscript" value="true"> <param name="scriptable" value="true"> <param name="image" value="loading.gif"> <param name="boxmessage" value="Loading Processing software..."> <param name="boxbgcolor" value="#FFFFFF"> <param name="test_string" value="inner"> <p> <strong> This browser does not have a Java Plug-in. <br> <a href="http://java.sun.com/products/plugin/downloads/index.html" title="Download Java Plug-in"> Get the latest Java Plug-in here. </a> </strong> </p> </object></a> <!--[if !IE]> --> </object> <!--<![endif]--> </div> <p> </p> <p> Source code: <a href="http://lovelago.googlepages.com/java_button_eg.pde">java_button_eg</a> </p> <p> Built with <a href="http://processing.org/" title="Processing.org">Processing</a> </p> </div> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><a name="Bottom">Bottom</a> </body></html> hi all if i click a button the other html page should be opened in particular frameset. ex: Code: <html> <frameset border="0" frameborder="0" framespacing="0" rows="*,20%" > <frameset border="0" frameborder="0" framespacing="0" rows="20%,*" > <frame noresize scrolling="no" src="view_options.htm" name="showframe2"> <frame noresize="noresize" src="GNOME-Curves.png" align="middle" width="100" height="200" > </frameset> <frame noresize="noresize" src="main_button.htm" > </frameset> </html> Code: <html> <body> <script type="text/JavaScript"> function confirmation() { window.location = "frame.html"; } </script> <!--<form name="input" action="frame.html" METHOD=GET onSubmit="document.myform.target = 'showframe2'"> <input type="submit" target ="showframe2" value="Image1">//--> <input type="button" onclick="confirmation()" target ="showframe2" value="Image"> <input type="button" target ="showframe2" onClick="window.location='frame1.html'" value="Network"> <input type="button" onclick="" value="System"> <input type="button" onclick="" value="Application"> <input type="button" onclick="" value="SD Card"> <!--</form>//--> </body> </html> i have seen alot of place on web that sometimes programmers are using :- <input type="button" / > and sometimes <input type="button" > Is there any difference between the two? What is correct way of using <input> tag, is it with end slash '/' or not ? This is probably the simplest thing in the world but I can't figure out what to do to make it happen... I need to have an "enter zip code" box with submit button, that opens a link in a new window...where the zip code entered is passed into the link... So, I enter my zip code: 28052 and get this link in a new window when pressing submit: thesiteaddresshere.com/ login/ minisearchpost.cfm? something=1&zipcode=28052 &signup=ouraffiliatecode Thanks in advance for any and all help! David T. At the least you need to use a scripting language like javascript to achieve what you are trying to do. For complicated reasons having to do with getting some Javascript to submit a form properly, which I won't get into here, I need to create a "do nothing" input button, whose mere presence lets the Javascript function work. Since this button does not do anything when you press it, I want it to be invisible. In IE I can get it to be invisible just by setting its width to zero using the line below. However, Firefox insists on giving it some finite width, even if there is no label on it (see below). How do I create a zero width button in Firefox - and is there any other way to hide input buttons? <input type="submit" name="control" value=" " style="width: 0px" title="No function" /> Hey, I'm jst starting to learn html and I was someone could give me an example of how to create a a simple form with 2 input fields which are set to a value say "hello" in first field and "World" in second field when the button is clicked. Thanks I want a link on the button. Means in my site I have a button Register and I want a link on the Button. How it could be possible. Thanks in advance Hello, I posted this on another forum, but didn't get a conclusive response... Is it possible to make an HTML <button> act as a link without using Javascript's onClick handler, or indeed any Javascript at all? I was thinking something like: <a href="some link"><button>GO!</button></a> would work, but it doesn't seem to. Thanks, Can someone tell me why the "View Cart/Checkout" button on this page works in Mozilla but not IE7? http://www.usautomated.com/catalog/catalog.asp Thanks! Hello there, This is my first post and I'm no pro at web developement, so I would appreciate any help that you guys can offer! Basically I have made a pretty cool button in Flash, and it works fine -- I have inserted in into my Dreamweaver document fine, but I can't seem to figure out how to make this a link -- I want to make it that when people click the button, they are taken to another page of my site, so I just want to add a link to the SWF object I've inserted. Please could anyone shed some light on this for me please? How do I add a link? I know it can be done as you see Flash buttons that are links all over the internet (mainly ads!) -- so how do I do it (*using Dreamweaver)? Thanks in advance! Mike Hello i need help getting a button to work in my website. It will be a link to another page. I have this html. I have three images.They are gifs. I also have three more in .png. I can make just about any kind of file. When i made the files i used transparency and interlaced. I'll attach images. I want one to appear when to mouse goes over it and one to appear when it's clicked. The attached ones are .png's. thanks Hey, i want to have a button which when pressed notifies me, it is to tell me if a link is broken. I dont want it to open a new page though. Thanks in advance. Hi guys, I have a drop down box via the <select> tag and then a submit button next to it. I want it so that if the drop-down shows "page 1" or something and then you hit "submit" it links to page 1. Same for "page 2" etc.. Is this possible, and how can I do it please! Thank you for any replies posted! Hi guys, As a person with VERY little HTML knowledge I getting very frustrated with a situation "I'm sure its a simple fix" that I hope you can help me with - there are 2 issues:- 1 - when you click on the Orange button on my website in IE the link doesnt work "it works when you right click - open link in a new tab" 2 - when you click on the Orange button on my website in Firefox - 2 tabs open instead of 1?? Any help would be very much appreciated - the link is http://www.twessential.com/newhome.html. If any files are need please let me know Many thanks Hi all, I would like to ask for your help here. How can I first have a few radio buttons on my page and when the user select one of those, a text box with a submit button will appear. The text box is for the user to key in some kind of code/password so that it will prompt the user to a url according to the code/password. Example: Code: YAH URL: www.yahoo.com Code: GOO URL: www.google.com And if the user keys the wrong code it will prompt a message box asking them to try again. If the user key the code wrongly for 3 times it will prompt to another url. Ive also attach an example of how it should look like. I would appreciate for your help. Thanks a lot! Hi anyone who could help ! In the following code by clicking on the right bottom corner of the image, a link to the destination site occurs. <img src="images/4ticket.jpg" border="0" usemap="#Map" width="203" height="90"> <map name="Map"> <area href="www.destination/play.php" shape="rect" coords="72, 56, 185, 77"> </map Now I would like to replace the link with a form submit button, as I need the value of the submit button (Play FREE!) to be posted to the destination site. Thanks for any help or hint |