• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

VBScript Redirecting browser?

I have a button on my form that when clicked runs an onclick javascript function that then submits the form to run a vbscript function to add a record to my database via com objects. What i need to do is after this record is added is then automatically send the user to the next page. It adds the record no problem but then i have to get them to click a button to go to the next page. I want it to be automatic.
1 Solution
in the VBScript, use this:

response.redirect "newpage.asp"

BUT!!!! You cannot have already written anything to the screen!!!  

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.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now