Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP & javascript

Status
Not open for further replies.

conceptmgt

IS-IT--Management
Sep 12, 2001
45
0
0
GB
Hi

I am linking to a page using javascript. I try to pass variables between pages using a querystring, but I cannot get javascript to accept the syntax. Below is what I tried:

mm_menu_0211140722_0.addMenuItem("Add Email Address","location='emailadd.asp?listnum="&thelistnum&"&curpage="&curpage&"&pagesize="&mypagesize&"'")

Thanks

Gary
 
i don't know the object you're using fro the menu but to redirect in javascript you have to use location.href='url'

try this:

mm_menu_0211140722_0.addMenuItem("Add Email Address","location.href='emailadd.asp?listnum="&thelistnum&"&curpage="&curpage&"&pagesize="&mypagesize&"'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top