Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 07-10-2007, 06:00 AM   #1
Default problem with javascript


I am using ASP.NET 2.0, C# and javascript to open a new browser window and encounter the following problem:

On Page1.aspx I have a button with the following click event:

Response.Write("<script>window.open('Page2.aspx',' _new');</script>");

This works as expected.

On Page2.aspx I have again a button with the following click event:

Response.Write("<script>window.open('Page3.aspx',' _new');</script>");

This is my problem; Page3.aspx does not open in a new window, instead it opens in the same window. I want a new window and when a user finishes with Page3, the new window closes and the user is back in Page2.aspx.

Thank you in advance for your help.


dootam
dootam is offline   Reply With Quote
Old 07-10-2007, 06:38 AM   #2
dootam
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default
Problem solved by replacing '_new' with '_blank'.
Thanks for the help from
Phil Weber
Microsoft MVP
http://www.philweber.com


dootam
dootam is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial Up Problem smackedass A+ Certification 3 02-02-2007 11:59 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Pioneer DVR3100S problem with Satellite receiver Samsung DCR 9500 Fredrik Bengtsson DVD Video 0 12-12-2003 02:32 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM
Re: Serious Computer Problem Bret A+ Certification 0 11-19-2003 12:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46