Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read full URL text from browser window

Status
Not open for further replies.

vinayak

Technical User
Sep 17, 2001
50
IN
Hi,
Is there any way to read the full URL typed in the browser URL field. Whether such is a technique is consistent in all browsers?
 

try using this...

***
<input type=button value=go onclick=alert(window.location)>
***

does that work?

- g
 
Hello,

I'm not quite sure if I know exactly what you are asking for, but I think I may.

I currently incorporate this method in my 404 page, and directory listings; for examples of what I am talking about here are some links:

^ Is an example 404 error, since the page does not exist ^
^ Is an example of fancy directory listing I perfom ^

All is done with simple javascript ;-)
Code Example:
Code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;> 
loc = document.location.href; 
ref = document.referrer;


document.write(&quot;<P>The resource: <b>&quot;+loc+&quot;</b> is not present.<br>If you feel this message is in error, please contact the webmaster. Apache 404 Error.<br>&quot;);
document.write(&quot;<i>Referring Document:<b> &quot;+ref+&quot;</b></i></P>&quot;);
</SCRIPT>
 
Hi again,

In addition to the above post,

If you need a FREE ftp client visit and right-click the ftpx_client.exe link and save it to your hard drive.

If your ftp port is blocked by a firewall, or if you can't install an ftp client on a terminal you are using then you can use our WebFTP service, which works on port 80 the standard http port. This service is also FREE.


Good luck, and let me know if this helps :) ___________________________________________________

bpvlogo.gif

mysig_small1.gif

Brian Velkavrh
Sr. Consultant - BPV Webdesigns
Network+ Certified Engineer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top