Jquery way to refresh the entire page?
Ajax requests, refresh the partial data,,,
The Internet did not find, can only set a tag in Html?
Or use the form, set the target URL to refresh the entire page, send the file?
CodePudding user response:
The
refer to the original poster weixin_46498520 response: jquery is there a way to refresh the entire page? Ajax requests, refresh the partial data,,, The Internet did not find, can only set a tag in Html? Or use the form, set the target URL to refresh the entire page, send the file? Is not a simple refresh the entire page, but hope that through JavaScript, binding a certain event, and then realize the function of jump page CodePudding user response:
Window. The location. Href="https://bbs.csdn.net/topics/target url" Such as simple click event Document. The getElementById (" BTN "). The onclick=function () { Window. The location. Href="https://www.baidu.com/"; }; </script> CodePudding user response:
Var BTN=document. GetElementById (' BTN) BTN. Onclick=function () { Window. The open (" www.baidu.com ", "_blank") } CodePudding user response:
reference 1st floor weixin_46498520 response: Quote: refer to the original poster weixin_46498520 response: jquery is there a way to refresh the entire page? Ajax requests, refresh the partial data,,, The Internet did not find, can only set a tag in Html? Or use the form, set the target URL to refresh the entire page, send the file? Is not a simple refresh the entire page, but hope that through JavaScript, binding a certain event, and then realize the function of the jump page You bind the event first, then jump pages, so why go to bind the event? Business logic is wrong? Or you didn't describe clearly? A friend is new? If so, ask questions to give you a little advice: Before you also cannot accurately describe the problem, not completely according to "the questions in your imagination" to describe; You can process the full clear, then possible to attach the code; For example: I want to achieve... And then I did... , but no way, could you tell me why? Where is wrong?