When I enter a url in the address section, brings up a page, but does not open the url... When I click the back button, the page redirects to the url I requested... Here is the HTML... Thanks
<! Written by Angelo><HTML> <HEAD> <TITLE> NYSDOH WorkPlace SSL </TITLE> <script> window.onload = function() { document.getElementsByName("go")[0].onclick = function() { alert("going to :" + document.getElementsByName("address")[0].value); setTimeout(function() { location.href = document.getElementsByName("address")[0].value; }, 200); } } </script> </HEAD> <BODY BGCOLOR="#ececec"><FONT size="3" color="darkblue"> <P><image SRC="NYSDOH.bmp" width="100%"></P> <P ALIGN="LEFT"><B><FONT size="6">Department of Health<BR> <FONT size="4"><I>Information for a Healthy New York</I> </FONT></B></P> </FONT> <HR size="5" width="95%"> <H1 ALIGN="center">NYSDOH WorkPlace</H1> <P> NYSDOH WorkPlace provides secure access to network resources on your intranet. To access a resource, click its name from the list below. For help, email help@health.state.ny.us </P> <P></P> <H2><U>Remote Access Has A New Look</U></H2> <P> In an effort to increase user experience and to support access from mobile devices ( ipad, itouce, and iphone), the remote access platform has changed. As a result of this change, users will be required to authenticate twice when logging into Lotus Notes, which will be temporary as work is being done to resolve this </P> <P></P> <HR size="5" width="95%"> <P></P> <H3><I> Web Bookmarks </I></H3> <P></P> <P> <A href="http://applevip.health.state.ny.us/mailjump.nsf">Notes E-Mail (High-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump2.nsf">Notes E-Mail (Low-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump3.nsf">Notes E-Mail (Ultra-mobile connection)</A><BR> <A href="http://applevip.health.state.ny.us/asahomepage.nsf">Browse for a Lotus Notes Database</A><BR> <A href="https://latsweb.health.state.ny.us">LATS</A><BR> <A href="https://travel.health.state.ny.us">Travel</A><BR> <A href="https://password.health.state.ny.us">Enterprise Password</A><BR> <A href="https://portal.health.state.ny.us">NYSDOH Intranet Websites</A><BR> </P> <BR> <form name="directForm" method="post" action="http://" onsubmit="setTarget(this);"> <table cellspacing="0" cellpadding="0" border="0" class="addressbar"> <tr> <td valign="middle" style="padding-left: 5px; padding-bottom: 3px;" nowrap> <span class="intranetbodytext" style=""> <b>Intranet Address:</b> </span> </td> <td width="325" style="padding-top: 5px; padding-bottom: 4px;" valign="middle"> <input type="text" name="address" maxlength="2082" style="width: 325px;" class="intranetaddress"> </td> <td style="padding-top: 2px; padding-left: 5px;" valign="middle" nowrap> <input type="submit" name="go" value="GO" onclick="submitDirectAccess( this.form );" class="gobutton"> </td> <td valign="middle" style="padding-bottom: 3px;" nowrap> </td> </tr> </table> </form> </BODY></HTML>
Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.
all that happens now is a reload of the page... Here is an update of the config:
<! Written by Angelo><HTML> <HEAD> <TITLE> NYSDOH WorkPlace SSL </TITLE> <script> window.onload = function() { document.getElementsByName("go")[0].onclick = function() { alert("going to :" + document.getElementsByName("address")[0].value); setTimeout(function() { location.href = document.getElementsByName("address")[0].value; }, 200); } } function clearDefault(w) { w.value = ""; } function submitDirectAccess(w) { return ture } function setTarget(w) { return true; } </script> </HEAD> <BODY BGCOLOR="#ececec"><FONT size="3" color="darkblue"> <P><image SRC="NYSDOH.bmp" width="100%"></P> <P ALIGN="LEFT"><B><FONT size="6">Department of Health<BR> <FONT size="4"><I>Information for a Healthy New York</I> </FONT></B></P> </FONT> <HR size="5" width="95%"> <H1 ALIGN="center">NYSDOH WorkPlace</H1> <P> NYSDOH WorkPlace provides secure access to network resources on your intranet. To access a resource, click its name from the list below. For help, email help@health.state.ny.us </P> <P></P> <H2><U>Remote Access Has A New Look</U></H2> <P> In an effort to increase user experience and to support access from mobile devices ( ipad, itouce, and iphone), the remote access platform has changed. As a result of this change, users will be required to authenticate twice when logging into Lotus Notes, which will be temporary as work is being done to resolve this </P> <P></P> <HR size="5" width="95%"> <P></P> <H3><I> Web Bookmarks </I></H3> <P></P> <P> <A href="http://applevip.health.state.ny.us/mailjump.nsf">Notes E-Mail (High-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump2.nsf">Notes E-Mail (Low-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump3.nsf">Notes E-Mail (Ultra-mobile connection)</A><BR> <A href="http://applevip.health.state.ny.us/asahomepage.nsf">Browse for a Lotus Notes Database</A><BR> <A href="https://latsweb.health.state.ny.us">LATS</A><BR> <A href="https://travel.health.state.ny.us">Travel</A><BR> <A href="https://password.health.state.ny.us">Enterprise Password</A><BR> <A href="https://portal.health.state.ny.us">NYSDOH Intranet Websites</A><BR> </P> <BR> <form name="directForm" method="post" action="" onsubmit="setTarget(this);"> <table cellspacing="0" cellpadding="0" border="0" class="addressbar"> <tr> <td valign="middle" style="padding-left: 5px; padding-bottom: 3px;" nowrap> <span class="intranetbodytext" style=""> <b>Intranet Address:</b> </span> </td> <td width="325" style="padding-top: 5px; padding-bottom: 4px;" valign="middle"> <input type="text" name="address" maxlength="2082" style="width: 325px;" class="intranetaddress"> </td> <td style="padding-top: 2px; padding-left: 5px;" valign="middle" nowrap> <input type="submit" name="go" value="GO" onclick="submitDirectAccess( this.form );" class="gobutton"> </td> <td valign="middle" style="padding-bottom: 3px;" nowrap> </td> </tr> </table> </form> </BODY></HTML>
This line: <input type="submit" name="go" value="GO" onclick="submitDirectAccess( this.form );" class="gobutton">
should also be this line:
<input type="button" name="go" value="GO" class="gobutton">
I suppose.
You use javascript to navigate to the other page, so your form should not be submitted. Also, you change your onclick event in a function that does nothing, this has to be removed.
You have an
1. onsubmit but
2. an onclick on the submit button (which return ture instead of true, which will likely give an error) but
3. onload of the page you overwrite that onclick
Users remote access to a site with a bunch of link... At the bottom of the screen is a place to enter a url, so a user can go to another intranet site that is not on the list above
<HTML> <HEAD> <TITLE> NYSDOH WorkPlace SSL </TITLE> <script> window.onload = function() { document.getElementsByName("go")[0].onclick = go; } function clearDefault(w) { w.value = ""; } function go() { alert("going to :" + document.getElementsByName("address")[0].value); setTimeout(function() { location.href = document.getElementsByName("address")[0].value; }, 200); } function setTarget(w) { return true; } </script> </HEAD> <BODY BGCOLOR="#ececec"><FONT size="3" color="darkblue"> <P><image SRC="NYSDOH.bmp" width="100%"></P> <P ALIGN="LEFT"><B><FONT size="6">Department of Health<BR> <FONT size="4"><I>Information for a Healthy New York</I> </FONT></B></P> </FONT> <HR size="5" width="95%"> <H1 ALIGN="center">NYSDOH WorkPlace</H1> <P> NYSDOH WorkPlace provides secure access to network resources on your intranet. To access a resource, click its name from the list below. For help, email help@health.state.ny.us </P> <P></P> <H2><U>Remote Access Has A New Look</U></H2> <P> In an effort to increase user experience and to support access from mobile devices ( ipad, itouce, and iphone), the remote access platform has changed. As a result of this change, users will be required to authenticate twice when logging into Lotus Notes, which will be temporary as work is being done to resolve this </P> <P></P> <HR size="5" width="95%"> <P></P> <H3><I> Web Bookmarks </I></H3> <P></P> <P> <A href="http://applevip.health.state.ny.us/mailjump.nsf">Notes E-Mail (High-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump2.nsf">Notes E-Mail (Low-speed connection)</A><BR> <A href="http://applevip.health.state.ny.us/mailjump3.nsf">Notes E-Mail (Ultra-mobile connection)</A><BR> <A href="http://applevip.health.state.ny.us/asahomepage.nsf">Browse for a Lotus Notes Database</A><BR> <A href="https://latsweb.health.state.ny.us">LATS</A><BR> <A href="https://travel.health.state.ny.us">Travel</A><BR> <A href="https://password.health.state.ny.us">Enterprise Password</A><BR> <A href="https://portal.health.state.ny.us">NYSDOH Intranet Websites</A><BR> </P> <BR> <form method="post" action="javascript:go()"> <table cellspacing="0" cellpadding="0" border="0" class="addressbar"> <tr> <td valign="middle" style="padding-left: 5px; padding-bottom: 3px;" nowrap> <span class="intranetbodytext" style=""> <b>Intranet Address:</b> </span> </td> <td width="325" style="padding-top: 5px; padding-bottom: 4px;" valign="middle"> <input type="text" name="address" maxlength="2082" style="width: 325px;" class="intranetaddress"> </td> <td style="padding-top: 2px; padding-left: 5px;" valign="middle" nowrap> <input type="button" name="go" value="GO" class="gobutton"> </td> <td valign="middle" style="padding-bottom: 3px;" nowrap> </td> </tr> </table> </form> </BODY></HTML>
function go()
{
alert("going to :" + document.getElementsByName("address")[0].value);
setTimeout(function() { location.href = document.getElementsByName("address")[0].value; }, 200);
}
function setTarget(w)
{
return true;
}
</script>
</HEAD>
<BODY BGCOLOR="#ececec"><FONT size="3" color="darkblue">
<P><image SRC="NYSDOH.bmp" width="100%"></P>
<P ALIGN="LEFT"><B><FONT size="6">Department of Health<BR>
<FONT size="4"><I>Information for a Healthy New York</I>
</FONT></B></P>
</FONT>
<HR size="5" width="95%">
<H1 ALIGN="center">NYSDOH WorkPlace</H1>
<P>
NYSDOH WorkPlace provides secure access to network resources on your intranet. To
access a resource, click its name from the list below. For help, email
help@health.state.ny.us
</P>
<P></P>
<H2><U>Remote Access Has A New Look</U></H2>
<P>
In an effort to increase user experience and to support access from mobile devices (
ipad, itouce, and iphone), the remote access platform has changed. As a result of this
change, users will be required to authenticate twice when logging into Lotus Notes,
which will be temporary as work is being done to resolve this
</P>
<P></P>
<HR size="5" width="95%">
<P></P>
<H3><I> Web Bookmarks </I></H3>
<P></P>
<P>
<A href="http://applevip.health.state.ny.us/mailjump.nsf">Notes E-Mail (High-speed connection)</A><BR>
<A href="http://applevip.health.state.ny.us/mailjump2.nsf">Notes E-Mail (Low-speed connection)</A><BR>
<A href="http://applevip.health.state.ny.us/mailjump3.nsf">Notes E-Mail (Ultra-mobile connection)</A><BR>
<A href="http://applevip.health.state.ny.us/asahomepage.nsf">Browse for a Lotus Notes Database</A><BR>
<A href="https://latsweb.health.state.ny.us">LATS</A><BR>
<A href="https://travel.health.state.ny.us">Travel</A><BR>
<A href="https://password.health.state.ny.us">Enterprise Password</A><BR>
<A href="https://portal.health.state.ny.us">NYSDOH Intranet Websites</A><BR>
</P>
<BR>
<FONT size="4"><I>Information for a Healthy New York</I>
</FONT></B></P>
</FONT>
<HR size="5" width="95%">
<H1 ALIGN="center">NYSDOH WorkPlace</H1>
<P>
NYSDOH WorkPlace provides secure access to network resources on your intranet. To
access a resource, click its name from the list below. For help, email
help@health.state.ny.us
</P>
function go(theForm) { var val = theForm.address.value; alert("going to :" + val); setTimeout(function() { location.href = val }, 200); return false; // cancel submit }
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…