How does js open on the current page
This article introduces the knowledge of "how to open js on the current page". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
First, open a new page implementation process on the current page:
1. You need to refresh or overwrite the current page, and the current page opens a new address.
Window.open ('http://www.baidu.com','_self');
2. If you jump in the a tag, then you are using target, and the current page opens.
Second, the specific implementation code:
This is the end of function on (html) {window.open (html,'_self')} "how to open js on the current page". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!