我可以创建一个不使用Javascript的HTML弹出窗口吗?或者我可以把JavaScript放入< body>部分? [英] Can I create an HTML pop up that do not use Javascript? or can I put the Javascript into the <body> section?
问题描述
我认为我无法使用Javascript,因为我没有访问权限到完整的模板,所以我不能把JavaScript放到页面的< head>< / head>
部分(我无法修改它) p>
我可以创建一个纯粹的HTML弹出不带使用Javascript,或者我可以将我的Javascript声明到< body>< / body>
我的html代码,而不是放入< head>< / head>
部分中?
Tnx
Andrea要回答第二个问题,通常可以将Javascript放在页面的< body>
部分中。
I have to create a pop up that will be show when the user click on a link.
I think that I can not use Javascript because I have no access to the full template so I can't put the javascript into the <head></head>
section of the page (I can't modify it)
Can I create a pure HTML pop up withous use Javascript or alternatively can I declare my Javascript into the <body></body>
of my html code and not into the <head></head>
section?
Tnx
Andrea
You can do this with HTML and CSS, like so.
To answer your second question, generally it's possible to put Javascript in the <body>
section of your page as well.
这篇关于我可以创建一个不使用Javascript的HTML弹出窗口吗?或者我可以把JavaScript放入< body>部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!