Return to Snippet

Revision: 10046
at December 4, 2008 18:41 by chrisaiv

Initial Code
//Here's a list of helpful items to capture
var pageURL:String      ='window.location.href.toString');
var pageHost:String     ='window.location.hostname.toString');
var pagePath:String     ='window.location.pathname.toString');
var pageProtocol:String ='window.location.protocol.toString');
var userAgent:String    ='window.navigator.userAgent.toString');
var platform:String     ='window.navigator.platform.toString');

private function getQueryString():String
     var query:String ="window.location.pathname.toString");
     return query;

Initial URL

Initial Description
Here's how I was able to capture the HREF of a page using actionscript

Initial Title
As3: Capture the HREF, Pathname, Host, userAgent

Initial Tags

Initial Language
ActionScript 3