B
Bryan Ashby
All,
I'm looking for a way to define a "dummy" variable in JavaScript;
specifically for the window object. I would like to define a window
object that would normally be generated with window.open() but not
actually open a new window.
E.g.: normal code could look something like this:
aVar = window.open("http://www.someurl.com", ...);
aVar.location = "http://www.newlocation.com/";
document.write("made it here OK");
If I remove the aVar = window.open(... line then aVar.location will
fail and the rest of the script breaks - "made it here OK" will not be
printed, etc.
I would liek to do something like this:
vVar = create_dummy_window; // does not open a window
aVar.location = "http://www.newlocation.com/"; // this should now not
break & the rest of the script should now be OK.
document.write("made it here OK"); // should be printed this time
Is this possible? Any ideas here?
Thanks,
Bryan Ashby
I'm looking for a way to define a "dummy" variable in JavaScript;
specifically for the window object. I would like to define a window
object that would normally be generated with window.open() but not
actually open a new window.
E.g.: normal code could look something like this:
aVar = window.open("http://www.someurl.com", ...);
aVar.location = "http://www.newlocation.com/";
document.write("made it here OK");
If I remove the aVar = window.open(... line then aVar.location will
fail and the rest of the script breaks - "made it here OK" will not be
printed, etc.
I would liek to do something like this:
vVar = create_dummy_window; // does not open a window
aVar.location = "http://www.newlocation.com/"; // this should now not
break & the rest of the script should now be OK.
document.write("made it here OK"); // should be printed this time
Is this possible? Any ideas here?
Thanks,
Bryan Ashby