New Window Via JavaScript Clears Parent
- by Bunch
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: ASP.Net, JavaScript