Forum Moderators: open

Message Too Old, No Replies

onSubmit="open()

         

jk3210

2:12 pm on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to get this onSubmit to open "foo.htm" in a normal, fullscreen window with normal toolbar, normal scrollbar, location, etc.

But it is now opening fullscreen WITHOUT toolbars, scrollbars, location, etc. I think the "fullscreen" thing is wrong, but I don't know what else to try.

Any ideas? Thanks

onSubmit="open('images/foo.htm','Checking','fullscreen,toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes')

korkus2000

2:19 pm on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try window. before the open.

jk3210

2:35 pm on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>Try window. before the open<<

I just now tried it with "window.open," but it still opens fullscreen with nothing else showing.

(added...)

Is there a way to set the "width=" and "height=" without giving exact values? Normally I see something like "width=800","height=600" but I can't recall ever seeing a max setting.

jk3210

9:21 pm on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, I found the answer. The answer is it can't be done with "onSubmit" or onClick." :(

mikejson

9:21 pm on Nov 28, 2003 (gmt 0)

10+ Year Member



I asked a similar question way back in the day and I got this response....
When tryin to get control over a new window opening, you may not get it, some browsers restrict access to the window control because you could do something malicious with it.

Ie, an ad site can open a window way off the viewable area, and simulate a click through of a bannar repeatedly.

as for using the .open in javascript, look it up and you should be able to find what arguments have to be to get it to open the way you want.