Current location: Hot Scripts Forums » General Web Coding » JavaScript » Javascript Toolbar


Javascript Toolbar

Reply
  #1 (permalink)  
Old 09-17-10, 04:48 PM
ttyler333 ttyler333 is offline
New Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Javascript Toolbar

Code:
<script>var hname = window.location.hostname;
var domain = window.location.hash;
var sname=document.location.href;
alert(domain);
document.write(hname);</script>

All of those return the url of my toolbars location, im trying to return the url of the page a browser is on. How would i do that?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Senior JavaScript Developer - Full Time - Permanent - London AJAX, CSS, JSONP Chris Peacock Job Offers & Assistance 0 01-19-10 12:28 PM
Add javascript after load? <?Wille?> JavaScript 14 03-31-06 04:52 AM
Custom IE Toolbar Development for your company or Website Chadhaajay General Advertisements 0 10-28-05 01:01 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 02:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.