简体   繁体   中英

popUp appearing on page load

Asp.net, Using a Jquery popUp when a button is clicked on the page works fine. However the popUp appears for a brief second on the inital load of the page and I can't seem to see why. Is it css? is it some attribute im not setting? any advice helpful ta.

Since the HTML of popup is not hidden on page load, it flashes for a second and then it is hidden by Javascript/jQuery library/plugin using the popup common class.

Hide the popup by CSS.

.myPopup {
    display: none;
}

some javascript is loading your popup disable it with a css code.

css is loaded first in loading of page. you need to find the popup class and disable showing.

.myPopup {
    display: none;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM