javascript窗口打开:五个按钮,每个按钮使用javascript打开单独的窗口 [英] javascript window open : Five button, every button open seperate window using javascript

查看:69
本文介绍了javascript窗口打开:五个按钮,每个按钮使用javascript打开单独的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的网页中有五个按钮.我想使用javascript在单击每个按钮时多次打开同一窗口.意味着每个按钮单击都会打开一个窗口以进行文件上传.

请给我建议.

谢谢与问候
Ganu

Hi,

I have five button in web page. i want to open same window multiple on click on every button using javascript. means every button click open one window for fileupload.

Please suggest me.

Thanks & Regards
Ganu

推荐答案

好吧,除了古老的建议来看一下w3c的javascript部分:http://www.w3schools.com/js/default.asp [ ^ ],我建议只需少量元素即可完成.
这是一个准系统页面,将显示5个上传控件.我会留给你
完成表单,尤其是类型"和动作"属性-您需要确保表单是多部分表单,需要将信息发布到后端服务器页面上ASPX,PHP,JSP等.

Well, apart from the age-old suggestion to look at the javascript section of w3c: http://www.w3schools.com/js/default.asp[^], I''d suggest that it can be done with just a handful of elements.
This is a bare-bones page that will present 5 upload controls. I''ll leave it to you to
complete the form, especially the ''type'' and ''action'' attributes - you need to make sure that the form is a multi-part form, you need to post the information to a back-end server page, be it ASPX, PHP, JSP, whatever.

<!DOCTYPE html>
<html>
<head>
<script>
</script>
</head>
<body>
<form>
 <input type='file' id='upload1'/><br>
 <input type='file' id='upload2'/><br>
 <input type='file' id='upload3'/><br>
 <input type='file' id='upload4'/><br>
 <input type='file' id='upload5'/><br>
</form>
</body>
</html>


这篇关于javascript窗口打开:五个按钮,每个按钮使用javascript打开单独的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆