Use Input Buttons to link to another page

I'm trying to add buttons to a web page so that I can navigate to another page on my site without using any Active X controls.  If I use an Interactive Button, it works but IE prompts for an Active X plug in.  I tried to use Input buttons but I can't get the links to work.

I am new to this.  I have a ,dwt file and my buttons are in the left (uneditable) pane as shown in the code snippet.

Button 1 had a hyperlink attached to it by right clicking and adding a hyperlink in the design view, Button 2 was coded by me in the code window.

Now IE prompts me for Active X plugin and neither button works whether or not a accept the plug in!


<div id="leftnav">
<p>
				<input name="Button3" type="button" value="Home" style="width: 157px" /><form method="post">
				<a href="../News.htm">
				<input name="Button1" type="button" value="News" style="width: 157px" /></a></form>
				<input name="Button2" type="button" value="CEO Message" style="width: 157px" onclick="GotoLink(../CEO_Message.htm)"/>
</p>			
</div>

Open in new window

LVL 4
MSProjectGeekAsked:
Who is Participating?
 
MSProjectGeekConnect With a Mentor Author Commented:
I eventually found the answer myself here http://www.westciv.com/style_master/house/tutorials/quick/buttons/index.html

Remember that my question was how to have link buttons without using Active X plug ins.
0
 
HeiniHogCommented:
Instead of using the javascript "onclick" property, use the HTML a tag:

<input name="Button2" type="button" value="CEO Message" style="width: 157px" onclick="GotoLink(../CEO_Message.htm)"/> becomes

<a href="../CEO_Message.htm"><input name="Button2" type="button" value="CEO Message" style="width: 157px"/></a>
0
 
MSProjectGeekAuthor Commented:
That got rid of the prompt for ActiveX plugin but it still did nothing when I previewed in browser and clicked on the button :(

The hyperlink is good because I cant Ctrl+click on it in the .dwt file and that page opens for editing.

Am I supposed to declare something about 'block' for the button in the .css file?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
HeiniHogCommented:
It seems Internet Explorer doesn't support this. Oh well, you'll have to use javascript, then. Try this:

<input value="CEO Message" style="width: 157px type="button" onclick="document.location='../CEO_Message.htm'" />
0
 
MSProjectGeekAuthor Commented:
Thanks, I tried that code line, I think it was wrong as it had syntax errors originally.  I changed it to                         <input name="CEO Message"  type="button" value="CEO Message" "style="width: 157px onclick="document.location='../CEO_Message.htm'" style="width: 156px" />

The button looked OK but still no action when you click on the button :(
0
 
HeiniHogCommented:
You asked how to use INPUT buttons as links. I gave you the solution, using no ActiveX and only plain javascript. The solution you have given yourself does not fulfill your original question.
0
 
MSProjectGeekAuthor Commented:
Sorry HeniHog, I tried your suggestions but they didn't work. I told you this but got no response. Not sure what you mean about Javascript, I never said it HAD to use javascript.

Maybe I'm misunderstanding something but when I tried the solution I linked to, the buttons worked, and IE didn't ask permission to install an Active X plug in.  From my perspective, if you'd have given me that link, I would've given you the points.
0
 
HeiniHogCommented:
I'll rephrase: Your question was on how to use, and I quote "use input buttons to link to another page". You did not state what technology you wanted this to be done in, but your initial question was nevertheless clear. I gave you a solution that fulfilled your request and did, contrary to what IE tells you, not contain any ActiveX. You post a solution that uses P and A tags, not input buttons, as links. Therefore, it is an invalid solution to your specific question, and an invalid answer to whoever else may be interested.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.