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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

go to different page based on button click

Status
Not open for further replies.

kiwieur

Technical User
Apr 25, 2006
200
GB
Hi I have a button that at the moment sends the user to a page with a form on it, however what i would like to do is when the user clicks the button a pop up window appears asking if this is a new call if so the user is sent to new.asp otherwise he is sent to old.asp

I have created this code for the if else statement but cannot work out how to achieve what I want from the button press.

Code:
Dim submitme
<%
If submitme = "True" then
<a href="new.asp" target="mainFrame" class="buttonStyleMed">Home</a>
Else
<a href="old.asp" target="mainFrame" class="buttonStyleMed">Home</a>
End If
%>
can anyone help with what i am trying to do


Regards

Paul

 
When the user clicks the button then call a javascript function that will open a new page. On the new page have say a drop down with your two options in it, then when the user chooses an option have the onchange event call a function that will redirect close the window and redirect the parent page to your destination.
 
Kss444,

Thanks for the info I will try that and see how I get on

Regards

Paul

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top