473,503 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to redirect to other page when press ok on alert message

52 New Member
Hi all. How to redirect to other page when press ok button on alert message
Expand|Select|Wrap|Line Numbers
  1. function checkstatus()
  2.     {  
  3.     var status = document.getElementById("status").value;
  4.  
  5.     alert(status);
Expand|Select|Wrap|Line Numbers
  1. <input type="submit" name="Submit" value="Submit" onClick="checkstatus()">
Jul 4 '07 #1
10 2858
kovik
1,044 Recognized Expert Top Contributor
Directly after the alert, write window.location = whatever.
Jul 4 '07 #2
chaos
52 New Member
Directly after the alert, write window.location = whatever.
Volectricity thx for your code but it cant be used as error occur
Jul 4 '07 #3
pbmods
5,821 Recognized Expert Expert
Heya, chaos.

Volectricity thx for your code but it cant be used as error occur
What error?
Jul 4 '07 #4
chaos
52 New Member
Heya, chaos.



What error?
when i press the submit button , bottom of the web page occur a exclamation sign
Jul 4 '07 #5
chaos
52 New Member
Even though i redirect to other page like www.yahoo.com . The page still remain the same.
Jul 4 '07 #6
kovik
1,044 Recognized Expert Top Contributor
Check the console for the error and tell us what it is.
Jul 4 '07 #7
chaos
52 New Member
Check the console for the error and tell us what it is.
i using dreamweaver 8 but there is not error occur . But on the web page , the error occur on the button

Jul 4 '07 #8
kovik
1,044 Recognized Expert Top Contributor
The exclamation mark means there's an error (Internet Explorer, right?) I think you bring up the console in IE by either double clicking the exclamation mark, or right clicking it.
Jul 4 '07 #9
chaos
52 New Member
The exclamation mark means there's an error (Internet Explorer, right?) I think you bring up the console in IE by either double clicking the exclamation mark, or right clicking it.
i cant click on the exclamation mark as it appear too fast and gone.
Jul 4 '07 #10
kovik
1,044 Recognized Expert Top Contributor
Well, if this was posted on the correct forum, I'm sure you may have found a thread on viewing the console (though, I'm not sure if it's actually there, but it probably is).

In IE, go to Tools and then Sun Java Console (?).
Jul 4 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
5894
by: iceking | last post by:
Hi, I have a php script that checks whether the user is allowed to perform an action. If he is not allowed; I display a warning; using the alert function. After clicking away this function, I want...
1
1757
by: krian | last post by:
Hi, I need a help from anybody. My problem is here I wrote two WebApplication in ASP.net Using C#. The name of the applications are (Journal.aspx and Payment.aspx). These Two pages have DataGrids...
0
1940
by: neeraj | last post by:
Hi Everybody I have one problem in my asp.net web application. The problem is that I check the date validation in code behind; if user not gives the valid data and press save button then I fire...
1
2069
by: rockdale | last post by:
Hi, all I am coding a asp.net application as user data entry and report interface. We also have another C#.net appplication (a server) does some other stuff, my webserver can send and receive...
5
3129
by: arizal | last post by:
Hello everyone, i just saw the same thread below but was not able to get from it. Well the problem is in the userlist page i have a list of users on the database which i get from simple sql...
4
1803
by: apking | last post by:
Hi Friends, iam newbie,This is my form Authentication script.i need to redirect another page when user correctly authenticated.how to redirect anothe rpage? <?php // Include the database...
3
1742
by: gussi | last post by:
when i used <?php @header("Location:google.co.in"); ?> .. the page is not redirecting to that page,, if i remove @ sign then it is showing worning session already started(...)in...
2
2389
by: PrasathPalani | last post by:
Dear Experts, I have a Datagrid with delete options. I use to confirm from users and delete record from data grid. I give confrimation after each record has deleted when a...
0
2373
by: Anupam Jana | last post by:
Hello All, I want to redirect to some other directory page after displaying JavaScript alert message in ASP.net in a page. For that I tried bellow code in our application...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.