/    Sign up×
Community /Pin to ProfileBookmark

changing properties of browser after opening

I have a page that has to submit a form to a popup window. So, I have to do theform.target = “_blank”; theform.submit();. However, when it opens, I would like to remove the address bar and buttons. Is there a way to get to these properties after the window has been opened? Thanks.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CharlesMay 30.2006 — Is there a way to get to these properties after the window has been opened?[/QUOTE]No, but you can configure the window before you use it - for those who have JavaScript and those who haven't blocked pop-ups.[code=html]<form action="some-script.pl" onsubmit="window.open ('', 'child', 'height=300,width=200')" target="child">[/code]
Copy linkTweet thisAlerts:
@cakewalkr7authorMay 30.2006 — Thanks. I was trying to do something very similar in the function that submits the form. However, I was setting the new window object to a variable and trying to set the target = to the variable. I instead needed to set it to the name of the window I was opening. Thanks!
×

Success!

Help @cakewalkr7 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...