Link to home
Start Free TrialLog in
Avatar of pgilfeather
pgilfeather

asked on

I am using a LinkButton and want to navigate to another page that opens with blank target

I am using a LinkButton and want to navigate to another page that opens with blank target (target="_blank")

I have used response.redirect(URL) to navigate to the page but the LinkButton wont accept target="_blank" property.

I am using a linkbutton because I need other code to respond to the click event.

If there is an easier way to navigate to a page, respond to the click event and have the page you navigate to open up in a target="_blank" setup then I'll be delighted to hear about it.

Thanks in advance

Paul G
Avatar of rockmansattic
rockmansattic

not sure what you mean by a link button, but this javascript may work for you

onClick="window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200')"

put it in the place of your target=...
Rockman
ASKER CERTIFIED SOLUTION
Avatar of Esopo
Esopo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial