Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Bax Problems

Status
Not open for further replies.

RussOSU

Technical User
Apr 16, 2001
93
US
I am creating a .asp page which is used to submit jobs to a queue. I have the fields created but now I would like when you click the submit button to have a message box pop up saying thanks for the submital. I know how to do this in Access but I am unable to use VBA in .asp pages. How would I go about this for a .asp page?
 
You can use the onload attribute in the body tag from the page where the submitbottun submits to.

<BODY onload=&quot;{window.alert('YourText');}&quot; >

An other way, if you use a link to go to another page, you can use the onclick attribute.

<a onclick=&quot;{window.alert('YourText');}&quot; href=&quot;somepage.asp&quot;>pagename</a>

Hope this will help,
Erik
 
the window.alert function I think is the one I want. How would I go about having this pop-up after the record is submitted. I don't know if an onClick would be the best. Is there a function similar to on click but is later in the process so that if something happens then it never comes up such as an onReload?

Thanks
Russ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top