URL重定向中的HTML和JavaScript存在疑问 [英] Doubt in HTML and JavaScript in URL Redirecting

查看:58
本文介绍了URL重定向中的HTML和JavaScript存在疑问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



查看此代码:





 <   script    类型  =  text / javascript    src   =  111111111111111111 / pass.htm >  <  < span class =code-keyword> /   script  >  
< span class =code-keyword>< a href = 1111111111111111 11 / pass.html > 点击此处查看密码< / a >







这是我在Chennai的道德黑客研讨会上的一个测验。



在上面的HTML代码中,该页面应该重定向到111111111111111111 / pass.html(18 1)

但是,重定向到11111111111111111 / pass.html(17 1)。





他们使用了什么样的剧本?

他们使用了什么功能?




实际测验:::



当莫卧儿帝国的国王意识到他们写的威胁正在接近时你可以在()考试试卷上找到与覆盖非常类似的覆盖信息的消息,但莫卧儿认为这是一个循环的生命科学。





HINT FOR TH IS QUIS ::



您的提示
您是否意识到视力背后的神经活动?你怎么样才能看到表面下方的一双眼睛。







我知道,测验我的问题不相关。但肯定答案将存在于这个测验.. :(



很快帮助我:(

解决方案

在HTML中我们可以使用锚标签重定向到另一个页面点击



在javascript中,我们可以使用



window.location.href =111111111111111111 / pass.html;


$ b重定向到另一页$ b进入脚本标签





window.location.href =111111111111111111 / pass.html;

Dear Sir,

Check this CODE:


<script type="text/javascript" src="111111111111111111/pass.htm"></script>
<a href = "111111111111111111/pass.html">Click here for password</a>




It is an quiz for me in ethical hacking workshop on Chennai.

In the above HTML CODE, that page should be redirect to "111111111111111111/pass.html" (18 1's)
But, It is redirection to "11111111111111111/pass.html" (17 1's).


What kind of script they used?
What Function they used?


ACTUAL QUIZ IS:::

When the kings from the Mughal Empire were aware of an approaching threat they wrote a message on a scroll over message very similar to overwriting as to you would find on () exam papers, but the Mughal’s believed in the sciences of life that it was a cycle.



HINT FOR THIS QUIS::

Your Hint
Are you aware the neural activity behind vision? How about you get a pair of eyes to look beneath the surface.




I know, the quiz and my question are not relevant. But surely answer will reside into this quiz .. :(

Help me soon :(

解决方案

In HTML we can redirect to another page using the anchor tag click

In javascript, we can redirect to another page using the

window.location.href = "111111111111111111/pass.html";

into the script tag


window.location.href = "111111111111111111/pass.html";


这篇关于URL重定向中的HTML和JavaScript存在疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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