By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,945 Members | 1,354 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,945 IT Pros & Developers. It's quick & easy.

Display th IP Address on your webpage using Javascript

P: n/a
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

Dec 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/
Dec 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.