When is the '[removed]' prefix valid syntax?

后端 未结 3 1165
终归单人心
终归单人心 2020-12-15 08:33

I know that you can use a javascript: pseudo protocol for URLs in an tag. However, I\'ve noticed that Firefox and IE will both allow \'javascri

3条回答
  •  春和景丽
    2020-12-15 09:11

    You need the javascript: "protocol" when you want to put JavaScript in the href attribute of a link.

    
    link
    
    
    link
    
    
    link
    

    As far as I know (and please, if I'm wrong, someone correct me) there is no difference in scope, but there is a very important difference about this.

    
    link
    
    
    link
    
    
    link
    

提交回复
热议问题