What do you mean? Do you want to call a second sub from the first one, and also not run the rest of the first sub when the second sub is done? If that is what you want, I would suggest something like this:<BR><BR>Sub sub1()<BR> ... code block 1 ...<BR> <BR> Call sub2<BR> Exit Sub<BR> <BR> ... code block 2 ...<BR>End Sub<BR><BR>Sub sub2<BR> ... code block 3 ...<BR>End Sub<BR><BR><BR>When sub1 is called, code block 1 is executed, then code block 3 of sub2, and then NO code block 2.
Still not entirely clear what you want. Ae you talking about client-side vbscript (in a <script> tag) or server-side vbscript (in a <% %> tag) ?<BR><BR>Because I think you can only replace something that is allready displayed on the page when you're worjing client-side.
I'm using server-side VB.<BR>What I have is a page with 3 sub's one that displays a login page, second that displays a page once your logged in and a third that displays a page that allows you to change your password.<BR>What's happening is when I'm on the second page and want to view the third, I get both the second and third at the same time.<BR>What I want to close the second and only display the third. Then when you change your password I want to return to the second again.