Current location: Hot Scripts Forums » General Web Coding » JavaScript » javascript grab url from url bar

javascript grab url from url bar

  #1 (permalink)  
Newbie Coder
Join Date: Jul 2010
Posts: 86
Thanks: 10
Thanked 0 Times in 0 Posts
javascript grab url from url bar

im trying to grab something from the url bar , a phrase but it wont show up ?? please help ! i want to grab only the access_token
<script type='text/javascript' src='jquery.min.js'></script>


function myFunction(sender) {

    var id = '#' + sender.getAttribute('href').split('#')[1];

    or `'#' + sender.href.split('#')[1]`

    or `'#' + $(sender).attr('href').split('#')[1]`



Copy and paste code from This page into the code box on the homepage and go claim your likes!!!<br>

Your code is <script> document.write(myFunction()) </script>
Reply With Quote

Featured Marketplace Scripts (view more)



ajax, api, javascript, json, php

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
JavaScript to send URL to Google Translation Stume JavaScript 16 09-23-09 11:35 PM
stupid question? getting allot info from the url bar pieteke PHP 6 05-07-06 10:44 AM
Auto Insert URL Tracking Via JavaScript... w2n JavaScript 24 04-14-06 07:59 AM
Windows Media Player Javascript Status Bar sixflagsga JavaScript 3 02-04-06 05:20 PM
Text bar JavaScript... Please help me find it! (Newb) msafi JavaScript 4 10-08-04 12:38 PM

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