Solved

Javascript inside php echo

Posted on 2011-03-16
3
419 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 500 total points
Comment Utility
echo '<script>history.go(0)</script>';

Open in new window

0
 
LVL 4

Expert Comment

by:GeoffHarper
Comment Utility
Do you mean:

location.reload(true);
0
 

Author Closing Comment

by:error77
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now