Five ways to implement page jump by js
The first type:
<script language="javascript" type="text/javascript">
="?backurl="+;
</script>
The second type:
<script language="javascript">
alert("return");
(-1);
(-1);
</script>
The third type:
<script language="javascript">
("");
</script>
The fourth type:
<script language="JavaScript">
='';
</script>
The fifth type:
<script language="javascript">
alert("Illegal access!");
='';
</script>
Summarize:
self: The current window object (if it is in an iframe, it is the window object of the frame)
top: parent window object
window: Typically, the browser will create a corresponding window object for each open html. If this document contains multiple frameworks, the browser will create a window object for the original document and then create an additional window object for each framework. You can directly use all the properties, methods and collections of windows in the current window, that is, there is no need to attach an expression that is the current window object before. Although window can be omitted, this keyword is generally used to facilitate reading and avoid some loopholes.
location: This object contains the current url information and has multiple attributes. The default attribute is , which means the entire url, that is, if location="https://" is set, it is equivalent to ="https://".self: the current window object (if it is in an iframe, it is the window object of the frame)
("/") This method is only for IE and is not suitable for other browsers such as Firefox. In HTML DOM Window Object, this method is not listed at all, so try to use this method as little as possible.
Properties are compatible with all browsers. Therefore, this is more commonly used when implementing page redirection.
(-1) is to return to the previous page
(-1) is to refresh the previous page
The above five ways to achieve page redirection in js are all the content I share with you. I hope you can give you a reference and I hope you can support me more.