Click to See Complete Forum and Search --> : < Input > and javascript


Asunder
03-02-2003, 08:03 PM
Now, I know nothing when it comes to javascript.

Here's is what I'm trying to do, I'm trying to make an Input button open outlook like < a Href="mailto:someone@here.com" >. I'm trying to do this without using a form so I'm thinking i need to use onclick. Tho I'm not sure how to fully use that because it uses javascripting.

Any help that could be provided would be greatly appreciated.

Dan Drillich
03-02-2003, 10:04 PM
Please look at -
http://forums.webdeveloper.com/showthread.php?s=&threadid=5068&highlight=ebody

Asunder
03-02-2003, 10:37 PM
Originally posted by Dave Clark
I guess I'm a bit confused -- or you are. You say you don't want to use a FORM, yet you say you want to use an INPUT button. Well, you can't have one without the other since HTML INPUT tags are required to be inside of a FORM block.

So, can you explain please? Thanks.

Dave

Well, I know I can use the input option without the form field because I have several other buttons that function by using a javascript.

here is a sample of the code for the other buttons:

function redirectButt(nume){
if(nume=="B7") open("Logout","_self");

and then input button currently used:

<input class='button' type="button" value="Logout" name="B7" onclick="javascript:redirectButt(this.name)">

Sooo....based on what I know about PHP when you click on the button, it refers to redirectButt(num) which opens logout which is prolly defined in some script that I'm not aware of. What I want to know...is if there is a way that a java script can open outlook using a similir method.

I didn't do any of the scripting for this, I'm just an HTML guy that knows how to make things look purdy. Also if your wondering why I don't just use a standard HTML Link...for some reason when I use one no matter what I do I can't get it to line up with the rest of the buttons so I figured I'd try and make an input button do something similar.

Anyway...not sure if this makes any sense....

Asunder
03-03-2003, 12:22 PM
Originally posted by Dave Clark
Never tried your page in a Netscape browser, eh? ;)
Dave

Sweetness, that worked great for me thanks!...also, the page I'm working on is specificly for IE only.

Thanks again for the help =)