• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Script to open telnet

I've received a script from Microsoft that can open up a telnet session, it goes as follow:

<html>
<head>
<title>Telnet Script</title>
</head>
<http><body>
<script>
<!---
parent.location.href="telnet://host.com"
-->
</script>
</body></html>

The host is the server that I am trying to open up a telnet with.  I was wondering if this is a Javascript?  If not, can I do something like this with Javascript instead?  I need to do this with Javascript because I need to send the Javascript a variable from my Java application.

joe73
0
joe73
Asked:
joe73
1 Solution
 
kollegovCommented:
<html>
   <head>
   <title>Telnet Script</title>
   </head>
   <http><body>
   <script>
   <!---
   parent.location.href="telnet://host.com"
   //-->
   </script>
   </body></html>

Yes,it's JavaScript, I just corrected missed // in above
cloacking code.
It will works in case of browser have Telnet helpers
registered in preferences
(I checked it with NN4 and MIE4 and it works fine :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now