简体   繁体   中英

Add alert after page load - TYPO3

I have the standard bootstrap package and want to show an alert after the page is beeing laoded. May the alert will only shown at the index-site.

Anybody know how to do this?

I tried to include own javascript, but that doesnt worked for me..

TS:

page.includeJS.file1 = fileadmin/myTemplates/alert.js


alert.js:

window.onload = function () {
    alert('My Alert!');
};

Found an solution. I looked for the path of an already includes js file and paste my code in. I think it isnt the perfect solution, but it works first.

file i added my script: /typo3conf/ext/bootstrap_package/Resources/Public/JavaScript/Libs/modernizr...

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