-
cannot redirect to other pages in asp.net
hello,
I have a question about the redirect function in javascript
in code behind:
i have a link button called btnl_logout
btnl_logout.Attributes.Add("onclick", "confirm_logout();")
after click this link, the confirm_logout function will called as following
<script language="javascript">
function confirm_logout()
{
if (confirm("Are you sure you want to logout?")==true)
{
document.location ="http://hk.yahoo.com";
return;
}
else
{
alert("a");
return false;
}
}
</script>
even i change many times in document.location's value, but still cannot redirect,
why??
Please help~~
Similar Threads
-
By skipperben in forum .NET
Replies: 3
Last Post: 08-30-2005, 03:05 PM
-
By David Campbell in forum dotnet.announcements
Replies: 0
Last Post: 10-02-2002, 07:52 PM
-
Replies: 0
Last Post: 07-02-2002, 08:20 AM
-
By ASPSmith Training in forum dotnet.announcements
Replies: 0
Last Post: 06-18-2002, 03:39 AM
-
By MacDeath in forum VB Classic
Replies: 2
Last Post: 02-14-2001, 05:44 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks