When I visit my url, my script will get the current URL and store it in a variable with
var currentURL = (document.URL);
Here's some pseudo code:
var currentURL = (document.URL); var part = currentURL.split("/"); alert(part); // alerts "XdAs2" !!!
Woops! The pseudo code doesn't work :) though it should give you a general idea of how to get what you need.
2) for an
iframe, you need to write something like: