Bunch's Blog

One day I'll have a catchy subtitle, one day
posts - 87 , comments - 126 , trackbacks - 0

New Window Via JavaScript Clears Parent

This is not a new item at all but I came across it recently. For an app I had been using some JavaScript like:

javascript:window.open(someurl.aspx here)

to open a new window via a button. That bit of code had been working great in several other apps. Then in one app that same code decided to open the new window correctly while clearing the parent of everything but [object]. The fix ended up being simple, change the javascript to:

javascript:void(window.open(someurl.aspx here);

Then it worked like I thought it should.

Tags: ,

Print | posted on Friday, May 25, 2012 1:28 PM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: