Solved

appending location.reload to url with javascript

Posted on 2016-09-29
4
75 Views
Last Modified: 2016-09-29
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
Comment
Question by:maqskywalker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:James Bilous
ID: 41822712
You want to reload the page in the new window or in your current window that opened the new window?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41822733
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
 
LVL 1

Author Closing Comment

by:maqskywalker
ID: 41822757
thanks
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41822818
You're welcome.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

756 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