/    Sign up×
Community /Pin to ProfileBookmark

position a confirm box

Been messing around with Dialog boxes and was wondering if it was possible to position them on the page.

ie when a confirm box pops up it positions itself to the top left of the screen instead of its default position.

thanks for any help in advance.

john. ?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@konithomimoNov 09.2005 — dialogHeight: iHeight

Sets the height of the dialog window. Although a user can manually adjust the height of a dialog box to a smaller value (provided the dialog box is resizable), the minimum dialogHeight you can specify is 100 pixels. Note that the default unit of measure for dialogHeight and dialogWidth in Internet Explorer 4.0 is the "em," whereas in Internet Explorer 5 it is the "px" (pixel). For consistent results, specify the dialogHeight and dialogWidth in pixels when designing modal dialog boxes.

dialogWidth: iWidth

Sets the width of the dialog window.

dialogLeft: iXPos

Sets the left position of the dialog window relative to the upper-left corner of the desktop.

dialogTop: iYPos

Sets the top position of the dialog window relative to the upper-left corner of the desktop.

center: {yes | no | 1 | 0 }

Specifies whether to center the dialog window within the desktop. The default is "yes." To override center, even though the default for center is "yes," you can specify either dialogLeft and/or dialogTop.
Copy linkTweet thisAlerts:
@jwlnewsomeauthorNov 09.2005 — thanks for that i shall play once more

john
×

Success!

Help @jwlnewsome 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 5.20,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...