我需要javascript在点击事件上打开html页面 [英] i need javascript to open html page on click event
本文介绍了我需要javascript在点击事件上打开html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在点击事件的html页面下面打开JavaScript,如果点击文本然后打开html页面,我需要使用 document.getElementById()
< img border =0src =http://buildmydownlines.com/images/468x60getpaid.gifalign =centerwidth =468height =60alt =获取付费加入网站/>
I need JavaScript to open below html page on click event, if some one click on text then that html page should open, I need JavaScript code using document.getElementById()
<img border="0" src="http://buildmydownlines.com/images/468x60getpaid.gif" align="center" width="468" height="60" alt="Get Paid To Join Websites" />
推荐答案
你需要使用:
如果你的页面在frame中,那么Window.open( 'test.aspx','_ self')
将被重定向到同一帧内。所以通过使用
Window.open('Test.aspx','_ top')
我们可以将页面加载为新的请求。
You need to use:
If you have your pages inside "frame" then "Window.open('Test.aspx','_self')"
will be redirected inside same frame. So by using
"Window.open('Test.aspx','_top')"
we can load the page as new request.
使用 Window.Open()
- http://www.w3schools.com/jsref/met_win_open.asp [ ^ ]。
Use Window.Open()
- http://www.w3schools.com/jsref/met_win_open.asp[^].
这篇关于我需要javascript在点击事件上打开html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文