When applying the framework, why is it still redirected to the previous website despite changing the href? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:06:53
Original
1118 people have browsed it

  • Opportunity Creation

  •                                                                                                                   href="http://www.baidu.com" target="main">Opportunity View
    Click on opportunity creation, and you will still be redirected to Baidu.


    Reply to discussion (solution)

    How did you write it

    Test as follows

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><script >window.onload=function(){	var oA=document.getElementById('test');	var oBtn=document.getElementById('btn');	oBtn.onclick=function()	{		oA.href='http://www.163.com';	}	}</script></head><body><a href="http://www.baidu.com" id="test">测试</a><input type="button" value="改变" id="btn" /></body></html>
    Copy after login

    Me I redeployed it, and it worked. Intermittent failure, sometimes just restarting myeclipse works, sometimes it still doesn't work, sometimes it gets better after a while. Originally, the URLs were all set to Baidu. Later, when I changed them one by one as needed, the changed URLs would still jump to Baidu. Thank you

    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template