What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript help

JavaScript help
Author: Message:
lordy
Senior Member
****


Posts: 853
Reputation: 24
34 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. JavaScript help
I'm trying to make a function that displays a confirm box when someone clicks on the 'submit' button of a form, then if they click ok it submits the form and if they click cancel it resets it. atm i have this:
code:
function submit_form(id) {
    var formid = getElem(id);
    if (confirm("blah")) {
    formid.submit();
    }
    else {
    formid.reset();
    }
}

But it doesn't display the confirm box at all :( can anyone help? :P
05-29-2006 12:12 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript help - by lordy on 05-29-2006 at 12:12 AM
RE: JavaScript help - by matty on 05-29-2006 at 12:50 AM
RE: JavaScript help - by lordy on 05-29-2006 at 01:20 AM
RE: JavaScript help - by lordy on 05-29-2006 at 01:31 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On