Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Display th IP Address on your webpage using Javascript

Reply
Thread Tools

Display th IP Address on your webpage using Javascript

 
 
111111z
Guest
Posts: n/a
 
      12-16-2005
Display th IP Address on your webpage using Javascript

<script src="http://sendmyip.com/ipjs.php" </script></script>
<p><font face="Arial Narrow">Your IP is </font>
<SCRIPT LANGUAGE="JavaScript">
document.title = "Your IP is "+ip;
document.write(ip)
</script>

see http://www.sendmyip.com/ipjava.htm

 
Reply With Quote
 
 
 
 
Lee
Guest
Posts: n/a
 
      12-16-2005
111111z said:
>
>Display th IP Address on your webpage using Javascript
>
><script src="http://sendmyip.com/ipjs.php" </script></script>
><p><font face="Arial Narrow">Your IP is </font>
><SCRIPT LANGUAGE="JavaScript">
>document.title = "Your IP is "+ip;
>document.write(ip)
></script>
>
>see http://www.sendmyip.com/ipjava.htm


I don't see my IP address.
I see the IP address of a machine in a different state.

 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      12-16-2005
111111z said the following on 12/16/2005 11:33 AM:
> Display th IP Address on your webpage using Javascript


Bah humbug. Or, do you simply mean that javascript is used to display it
or are you attempting to con some people into believing that JS can get
my IP Address? It can't.

> <script src="http://sendmyip.com/ipjs.php" </script></script>
> <p><font face="Arial Narrow">Your IP is </font>
> <SCRIPT LANGUAGE="JavaScript">
> document.title = "Your IP is "+ip;
> document.write(ip)
> </script>


Where did you copy that junk code from?

> see http://www.sendmyip.com/ipjava.htm


JS doesn't get that IP Address, PHP Attempts to get it. I say
"attempts" because that is what it did - attempted - and failed to give
me my proper IP Address.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
 
Reply With Quote
 
Waqas Waqas is offline
Junior Member
Join Date: Aug 2012
Posts: 4
 
      08-22-2012
Hi try this also for PHP...http://www.codingresolved.com/discus...-script-in-php
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cause webpage one to reload when webpage two is closed. Paul ASP .Net 14 06-19-2008 03:02 PM
Clipping a remote webpage with Javascript/XPath and including in a "local" webpage soren625 Javascript 2 12-12-2006 02:09 PM
check if a webpage is forwarding to a other webpage martijn@gamecreators.nl Python 1 09-06-2005 02:27 PM
Email contents of webpage or Form on webpage w/o using Server scripting sifar Javascript 5 08-24-2005 05:47 PM
How to search a particular word in xml and display all the result in webpage by using asp or... zheetee XML 0 08-05-2004 07:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57