日期:2014-05-18  浏览次数:20435 次

页面跳转相关。(急。。)
一个网页.当我点击按钮后希望先提示用户操作已成功 然后过3秒后跳转到另一页面.同时传递1个参数.. 那我应该怎么做.高手提拔..

------解决方案--------------------
HTML code

<script language="javascript">
    document.title = "操作成功";
    document.write("操作成功!正在返回,请稍候........");
    setTimeout("top.location.href = 'Index.aspx?" + 参数 + "'", 3000);
</script>

------解决方案--------------------
<meta http-equiv="refresh" content="3;URL=http://www.sohu.com">

<body onload="setTimeout('dform.submit()',3000)">
<form action="http://www.sohu.com" method=post name=dform></form>

<body onload="loadPage()">
<script>
function loadPage()
{
setTimeout('location = "http://www.sohu.com"',3000);
}
</script>


哥们你可以这样!!!!
------解决方案--------------------
你可以这样的试试
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script type="text/javascript">
function SkipToError(strDivName)
{
var strDiv = document.getElementById(strDivName);
alert("操作成功");
strDiv.innerHTML = "操作成功!正在返回,请稍候......";
setTimeout("top.location.href='WebForm1.aspx'",3000);
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div id="divMessage"></div>
<INPUT type="button" value="测试" onclick="SkipToError('divMessage')">
</form>
</body>
</HTML>