[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • Last Modified:

appending location.reload to url with javascript

i'm using jquery.

Right now i'm calling a url with a button click.

something like this

            // *********** Button click event ***********
            $('#Button1').click(function () {

                // new window
                window.open('http://www.mypage1.html', '_blank', 'width=200, height=200');

            });
            // *********** Button click event ***********

Is there a way to append this   location.reload();  to my url using javascript

See what I want is as the url launches in its web browser window, the first thing I want it to do is do a page refresh with location.reload () and then load the content of my page.
0
maqskywalker
Asked:
maqskywalker
  • 2
1 Solution
 
James BilousSoftware EngineerCommented:
You want to reload the page in the new window or in your current window that opened the new window?
0
 
Dave BaldwinFixer of ProblemsCommented:
Is there a way to append this   location.reload();  to my url using javascript
No.  The reload code must be in the new page, not in a link on the old page.
1
 
maqskywalkerAuthor Commented:
thanks
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now