JS gevorderde |
|
nja begrijp nog niet precies de bedoeling maar ik geloof dat je hierna op zoek bent:
var parent_url = new String(window.parent.location);
var domain_only = parent_url.match(/^.+?[\/]{2,3}(.+?)[\/]{1}/i)[1];
var path_only = parent_url.match(/^.+?[\/]{2,3}.+?[\/]{1}(.+?$)/i)[1];
var parent_url = new String(window.parent.location); var domain_only = parent_url.match(/^.+?[\/]{2,3}(.+?)[\/]{1}/i)[1]; var path_only = parent_url.match(/^.+?[\/]{2,3}.+?[\/]{1}(.+?$)/i)[1];
|