answersLogoWhite

0


Best Answer

Here is the code:

<head>

<html>

<script type="text/javascript" language="javascript">

function submitForm()

{

// Validation Code in here

var confirm = confirm("Are you sure you want to submit");

if(confirm==true)

{

form1.form.submit();

return true;

}

else

{

return false;

}

}

</script>

</head>

<body>

<form name="form1" action="file_name.php" method="post">

// Other form elements here

<input type="submit" name="submit" id="submit" onclick="javascript:submitForm();return false;" />

</form>

</body>

</html>

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can submit form and popup come on single submit button click at a time?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you open a jar file on a mac?

You double-click on it. You can indeed launch a jar file from the command line, with the following command: java -jar yourfile.jar As well as this you can assign "Jar Launcher" as the default app. to use when you double-click a jar file, as follows (I don't believe you need the developer tools installed for this): Click once on the .jar file in the Finder and then from the menubar in the Finder select File -&gt; Get Info". Click on "Open with" and from the popup menu select "Other". A file browser window will open. In this window, go to the /System/Library/CoreServices folder and select 'Jar Launcher'. Then make sure the "Always Open With" checkbox is checked and then click Add. Then click the "Change all" button so that any jar file will be opened automatically. Finally, close the Info window and now when you double-click any of your jar files they should run automatically.


How do you enabled javascript?

Microsoft Internet Explorer: From the Tools menu, choose Internet Options. Then click the Security tab. For IE 4.x, click Custom and Settings. For IE 5.x, click Custom Level. Scroll to the Active Scripting section of the list. Click "Enable." Close and restart your browser.Netscape: From the Edit at the top of the screen, choose Preferences. From the Category list, click Advanced. Mark Enable JavaScript. Close and restart your browser.FireFox: From the Tools menu, choose Options. Then go to the "Content" tab, check the "Enable JavaScript" checkboxOne way to determine this is by entering this into the URL/link box in your browser:javascript:alert('hi')When you press enter, a little popup saying 'hi' should show. If it does, JavaScript is on.


Write a JavaScript program showing string concatenation?

There isn't much to it:---alert("Hello " + "world!");---'alert' creates a popup, and the + does string concatenation.See related link for a Javascript tutorial.


How to convert From human language to computer language?

Depending on what you're looking at, you may not be able to. My suggestions would be to find the appropriate program used to edit the type of file you're looking at, or to try to find a decompiler for the programming language the file corresponds to.


How to check if javascript is enabled?

One way to determine this is by entering this into the URL/link box in your browser: javascript:alert('hi') When you press enter, a little popup saying 'hi' should show. If it does, JavaScript is on.

Related questions

Where can I open Explorer to Documents and Settings?

Right click on the 'Start' button, then on the popup menu left click on 'Explore All Users' or 'Open All Users'.


Do butterball turkey have popup button?

Most butterball turkeys will have a popup button that tells you when they are finished baking. However, it is best to test with a meat thermometer and not just test the popup.


How do you delete the blocked popups on your toolbar?

-Option 1: Go to "Settings" on the Toolbar. Click "Options", then click the "More" tab. Under "Popup Blocker" click "Hide Popup Count". -Option 2: Hold down "Shift" and "Alt" then click on the "Pop-up Blocker" button on the toolbar. A text box will pop up and ask if you want to set the pop-up blocker back to zero, click yes.


How do you cange your animal on moshi monsters?

Click on your monster, a sidebar will popup, click on change monster.


How can you get Google Chrome to always remember your passwords?

When you type your password, a popup opens on the top right. You can click save password in that popup to allow it.


What is the steps in deleting a folder?

1. Right click on the folder 2. Click delete If there is a popup, 3. Click Yes


How do you create a new draft on Gmail?

When you click on a compose mail, you get a new popup. The popup should be filled with some information. When you discard this information, it is saved as a draft.


No right clicks on imvu page?

http://www.imvucodes.net/code/block-right-click-with-popup


How do i download iTunes onto a flashdrive?

click save when it asks for run/save/cancel, in the popup click the arrow pointing down, go down to your flashdrive and click it then click save


How do you clear certain cache or history from Firefox?

Clean your Cache and Cookies in Firefox (In case you also have Firefox installed): * Go to Tools &gt; Options. * Click Privacy in the menu.. * Click the Clear now button below.. A new window will popup what to clear. * Select all and click the Clear button again. * Click OK to close the Options window Detailed Step-by-Step http://www.groovypost.com/howto/firefox/clear-firefox-browsing-history-and-private-data/


Your Free Realms username and password?

when you opn free realms you will see a page popup and in the middle there will be a new user and a existing button if u r returning use existing button if you are new hit that button than make ur person and make there name and then a password witch you will use and a username too. than a new window will popup and a play now button will show good luck!!


How do you make every popup on Internet Explorer 7 open as a new tab as default IE 7 has popup blocker?

On the right-hand side of the IE 7 window, click on Tools &gt;&gt; Internet Options &gt;&gt; General tab &gt;&gt; look on general tab to where it says Tabs &amp; click Settings &gt;&gt; go down to "When a popup is encountered" &gt;&gt; select "always open popups in new tab.