/    Sign up×
Community /Pin to ProfileBookmark

Resizing window

Hi,

i have a popup window. If the user resizes it, 1 second after the user [B]stops[/B] resizing it a function should happen.

The logic would be something like this:

<body onresizestop=”alert(‘bla bla bla’)”>

Thanks,

Neil

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliDec 06.2003 — there is no javascritp function/property called

onresizestop

what you may want to do is use the

onresize function and then use setTiemout() function to delay a bit and show a message
Copy linkTweet thisAlerts:
@neil9999authorDec 09.2003 — I know, I was just showing the logic of it, if I do as you suggested though, the user may still be resizing the window when the function is activated.

EG.

If you right click on the blue bar & click restore, then resize the window, when you first click the edge of the window it would activate the onresize the event. What I need is for the function to be activated a second after the mouse button is lifted after resizing the window.

I hope you know what i mean,

Thanks,

Neil
×

Success!

Help @neil9999 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.28,
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,
)...