PDA

View Full Version : questions on focus, and removing scrolbars


kwhubby
11-21-2002, 06:45 AM
I have two questions.
1. how to you give focus to a window, and is this only work when in the browser environment (meaning that it wont blur other things that arnt part of the browser, such as other programs)

2. why does this still have scrolbars even with the scrollbars=no? :

var nn = "<html><body>hi</body</html>"
var x = window.open("","asdf","alwaysRaised,height=800,width=1200,scrollbars=no,fullscreen")
x.document.write(nn)

:confused:

glenngv
11-21-2002, 06:58 AM
try this:

var nn = "<html><body scroll='no'>hi</body</html>"
var x = window.open("","asdf","alwaysRaised=yes,height=800,width=1200,scrollbars=no,fullscreen");
x.document.write(nn);
x.document.close();
x.focus();