Home > front end >  Javascript according to the value of the text to reload
Javascript according to the value of the text to reload

Time:12-30

Window. The onl oad=function () {

}

Load function
Made a text button and double click the button, according to the content of the text to reload, how to do?
The function addload () {
Var viewToken=document. GetElementById (" text "). The value;
//the window. The alert (viewToken);
window.location.reload();

}

Where is it?

CodePudding user response:

Based on the content what meaning you this click reload

CodePudding user response:

You want to reload the entire page?
You want to achieve the effect of local load, it should be with ajax

CodePudding user response:

reference 1st floor chenrynet response:
based on the content what meaning you this click is overloaded
according to the content of the text to display

CodePudding user response:

.
The function addload () {
Var url=document. GetElementById (" text "). The value;
//the window. The alert (viewToken);
The location. The href=https://bbs.csdn.net/topics/url;
}


Is that what you mean?
  • Related