Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Javascript inside php echo

Posted on 2011-03-16
3
Medium Priority
?
431 Views
Last Modified: 2012-08-13
Hi all,

I need to insert a javascript refresh page into an echo:

history.go(0) in an echo ?

Anyone please?

Thanks

p.s: I basically need to reload the page by code.
0
Comment
Question by:error77
3 Comments
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 2000 total points
ID: 35149382
echo '<script>history.go(0)</script>';

Open in new window

0
 
LVL 4

Expert Comment

by:GeoffHarper
ID: 35149409
Do you mean:

location.reload(true);
0
 

Author Closing Comment

by:error77
ID: 35149469
p.s: true: location.reload(true); and it didn't reload the page but thanks anyway for the suggestion.
The jajvascript works perfect. Thanks :o)
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question