Lets say I have a simple php index website page.
I have a need to clear the screen depending on when certain parameters are passed to the index page. The code that checks the passed parameters could appear anywhere in the index page.
If the parameter is not passed the page loads normally, if it is passed it clears/blanks the screen or alternatively pops a blank window to echo into.
I want to do it as efficiently as possible as a one-liner leading to my echo statement (if possible).
Couldn’t you simply reference a tag in javascript to
and then set the innerhtml value from there?
For example, we can use a button that will use the
property to set the page to whatever we want like such . . .
or . . .
full code: