faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

I need to open a new window and pass all variables after the "?" in a url. ie. default.asp?pic=2

Apr 15th, 2002 07:50
Russ Locke, James Stubblefield,


I won't rewrite the code....
See FAQTS reference on parsing the query string (url):
http://www.faqts.com/knowledge_base/view.phtml/aid/969/fid/124
Of course you'll have to put the individual elements back into a query
string. You may want to modify the parse function to accept a url for
parsing and if the parameter is null then use the location.search.
To open a new window see FAQTS reference:
http://www.faqts.com/knowledge_base/view.phtml/aid/2127/fid/124
or see:
http://www.faqts.com/knowledge_base/search/index.phtml?search=open+window