hi,
The code u send is working what is the error u r getting
-
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
<html xmlns="http://www.w3.org/1999/xhtml">
-
<head>
-
<title>Unnamed</title>
-
<script type="text/javascript">
-
-
function nextButton() {
-
-
next = document.nexty.nexty1.value
-
-
if (next == "next")
-
{
-
document.write("lol");
-
window.location.replace("thisisnext.htm") ;
-
}
-
else if (next != "next")
-
{
-
alert("now thats bad");
-
}
-
-
}
-
</script>
-
<link rel="stylesheet" type="text/css" href="dos.css" />
-
</head>
-
-
<body>
-
<table id="table_01" border="1">
-
<tr>
-
<td height="300" width="500" valign="top">
-
Microsoft Windows XP [Versjon 5.1.2600]
-
<br />
-
(C) Copyright 1985-2001 Microsoft Corporation
-
<p></p>
-
-
<form name="nexty" id="nexty" action="">
-
C:\Windows><input type="text" name="nexty1" id="nexty1" onchange="nextButton()" autocomplete="off" />
-
</form>
-
-
</td>
-
</tr>
-
</table>
-
-
</body>
-
</html>
-
thisisnext: for example i have taken
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitl ed Page</title>
</head>
<body>
<input id="Button1" style="z-index: 100; left: 256px; position: absolute; top: 128px"
type="button" value="button" onclick="alert( 'hai');" />
</body>
</html>
This script is not done yet... but i wont finish it before i can make it work in IE...
What is the reason this script wont work in IE??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unname d</title>
<script type="text/javascript">
function nextButton() {
next = document.nexty. nexty1.value
if (next == "next")
{
document.write( "lol")
<!--
window.location .replace("thisi snext.html") ;
// -->
}
else if (next != "next")
{
alert("now thats bad");
}
}
</script>
<link rel="stylesheet " type="text/css" href="dos.css" />
</head>
<body>
<table id="table_01" border="1">
<tr>
<td height="300" width="500" valign="top">
Microsoft Windows XP [Versjon 5.1.2600]
<br />
(C) Copyright 1985-2001 Microsoft Corporation
<p></p>
<form name="nexty" id="nexty" action="">
C:\Windows>< input type="text" name="nexty1" id="nexty1" onchange="nextB utton()" autocomplete="o ff" />
</form>
</td>
</tr>
</table>
</body>
</html>