Closed Thread Icon

Topic awaiting preservation: .....gfdgdfgdf.htm?variables (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8442" title="Pages that link to Topic awaiting preservation: .....gfdgdfgdf.htm?variables (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: .....gfdgdfgdf.htm?variables <span class="small">(Page 1 of 1)</span>\

 
Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 12-17-2002 21:40

Does anyone know how to parse information from the url to js ?

This is what I have so far:

var p = document.location.href,pp=p.indexOf('?');
if(pp!=-1) document.write('<img src='+ document.location.href.substring(pp,p.length)+ ' border=0>');

I have pop.htm and I want to use it like so :

pop.htm?fsdfs.jpg

anyway to do this ? Otherwise I'll to do messy window parsing which I dont like.



Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 12-18-2002 02:53

location.search

will give you that part of the URL, including the question mark.

Hugh
Paranoid (IV) Inmate

From: Dublin, Ireland
Insane since: Jul 2000

posted posted 12-18-2002 20:51

I didnt know there was a location.search .. .thanks !

« BackwardsOnwards »

Show Forum Drop Down Menu